CN111010688B - Data transmission method and system - Google Patents
Data transmission method and system Download PDFInfo
- Publication number
- CN111010688B CN111010688B CN201911418942.0A CN201911418942A CN111010688B CN 111010688 B CN111010688 B CN 111010688B CN 201911418942 A CN201911418942 A CN 201911418942A CN 111010688 B CN111010688 B CN 111010688B
- Authority
- CN
- China
- Prior art keywords
- client
- interface
- serial number
- data
- identification pair
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/60—Context-dependent security
- H04W12/69—Identity-dependent
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种数据的传输方法及系统,涉及智能手环技术领域,主要目的在于解决现有穿戴设备与客户端之间数据传输效率低,不安全的问题。包括:第一客户端向第二客户端发送数据连通指令;当第二客户端接收到所述数据连通指令时,查找与第一标识对匹配的第二标识对;若存在时,第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与第一客户端进行数据传输的接口序号;若存在,则第二客户端反馈所述接口序号,第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向第二客户端发送接通信号;第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至第一客户端。
The invention discloses a data transmission method and system, relates to the technical field of smart bracelets, and aims to solve the problems of low data transmission efficiency and insecurity between existing wearable devices and clients. Including: the first client sends a data connection instruction to the second client; when the second client receives the data connection instruction, it searches for a second identification pair that matches the first identification pair; if it exists, the second client The terminal loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client; if it exists, the second client feeds back the interface serial number, and the first client receives the interface serial number number, establish a data connection between the interfaces that match the serial number of the interface, and send a connection signal to the second client; after receiving the connection signal, the second client passes the monitoring data through the The above interface is sent to the first client.
Description
技术领域technical field
本发明涉及一种智能手环技术领域,特别是涉及一种数据的传输方法及系统。The invention relates to the technical field of smart bracelets, in particular to a data transmission method and system.
背景技术Background technique
智能手环是用于监测用户身体状态,或者特殊用户人群位置的穿戴设备,例如,通过手环对幼儿或者限制自由人群进行定位监控。A smart bracelet is a wearable device used to monitor the user's physical state or the location of a special user group, for example, to monitor the location of a child or a group of people with restricted freedom through the bracelet.
目前,现有佩戴手环的人只能通过自己连接的终端查看自己的身体状态,对于具有亲密关系的其他人身体状态无法获知,或者他人想要知道佩戴者的身体状态只能利用佩戴者的终端查看,例如,父母希望查看孩子的身体状态,只能唯一的绑定孩子的手环,但是,若孩子有自己的使用终端,并绑定了手环,则无法得到孩子手环中的身体状态,若夫妻之间有一人期望获取对方的身体状态,只能通过查看对方的使用终端,数据无法进行传输,若对方身体状态发生了任何情况,无法及时获知,降低了监控效率,另外,若通过服务端来进行数据传输,存在数据的滞后性,无法准确获取到对应时间的数据,或者利用扫描蓝牙设备直接加载手环的数据,使得每次加载都需要配置对应的加载码,操作繁琐,降低了数据传输的效率,且无法确保数据传输的安全性,增大了数据丢失的风险,因此,急需一种数据的传输方法来解决上述问题。At present, people who currently wear bracelets can only check their own physical status through the terminal they are connected to. They cannot know the physical status of other people who have close relationships, or others want to know the physical status of the wearer can only use the wearer's Terminal viewing, for example, if parents want to check the child's physical status, they can only bind the child's bracelet uniquely. However, if the child has his own terminal and binds the bracelet, he cannot get the body status in the child's bracelet. Status, if one of the husband and wife expects to obtain the physical status of the other party, they can only check the other party's terminal, and the data cannot be transmitted. Data transmission through the server, there is a data lag, and the data corresponding to the time cannot be accurately obtained, or the data of the bracelet is directly loaded by scanning the Bluetooth device, so that the corresponding loading code needs to be configured for each loading, and the operation is cumbersome. The efficiency of data transmission is reduced, the security of data transmission cannot be ensured, and the risk of data loss is increased. Therefore, a data transmission method is urgently needed to solve the above problems.
发明内容Contents of the invention
有鉴于此,本发明提供一种数据的传输方法及系统,主要目的在于解决现有穿戴设备与客户端之间数据传输效率低,不安全的问题。In view of this, the present invention provides a data transmission method and system, the main purpose of which is to solve the problems of low data transmission efficiency and insecurity between existing wearable devices and clients.
依据本发明一个方面,提供了一种数据的传输方法,包括:According to one aspect of the present invention, a data transmission method is provided, including:
第一客户端向第二客户端发送数据连通指令,所述数据连通指令中携带有所述第一客户端的第一标识对;The first client sends a data connection instruction to the second client, and the data connection instruction carries the first identification pair of the first client;
当所述第二客户端接收到所述数据连通指令时,从所述第二客户端中查找与所述第一标识对匹配的第二标识对;When the second client receives the data connection instruction, search for a second identification pair that matches the first identification pair from the second client;
若存在所述第二标识对时,所述第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与所述第一客户端进行数据传输的接口序号;If there is the second identification pair, the second client loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client;
若存在,则所述第二客户端反馈所述接口序号,所述第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向所述第二客户端发送接通信号;If it exists, the second client feeds back the serial number of the interface, and after receiving the serial number of the interface, the first client establishes a data connection between the interfaces matching the serial number of the interface, and sends a data connection to the The second client sends a connection signal;
所述第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至所述第一客户端。After receiving the connection signal, the second client sends the monitoring data to the first client through the interface.
进一步地,所述方法还包括:Further, the method also includes:
通过蓝牙连接通道建立第一客户端与第二客户端之间的首次数据传输通道,所述数据传输通道用于所述第一客户端向所述第二客户端发送第一标识对;Establishing the first data transmission channel between the first client and the second client through the Bluetooth connection channel, the data transmission channel is used for the first client to send the first identification pair to the second client;
所述第二客户端根据接收到的第一标识对生成匹配的第二标识对,所述第二标识对用于指示所述第二客户端加载所述穿戴设备的监控数据,其中,所述第二标识对存储于按照第一预设时间间隔进行清空的第一数据库中。The second client generates a matching second identification pair according to the received first identification pair, and the second identification pair is used to instruct the second client to load the monitoring data of the wearable device, wherein the The second identification pair is stored in the first database which is emptied according to the first preset time interval.
进一步地,所述方法还包括:Further, the method also includes:
当检测到生成所述第二标识对时,根据所述第二客户端中用于所述监控数据传输的多个接口确定所述第一客户端匹配的接口序号,并存储至按照第二预设时间间隔进行清空的第二数据库中。When it is detected that the second identification pair is generated, determine the serial number of the interface matched by the first client according to the multiple interfaces used for the monitoring data transmission in the second client, and store the sequence number in accordance with the second preset Set the time interval for clearing the second database.
进一步地,所述第一标识对与所述第二标识对组成唯一匹配的身份关系。Further, the first identity pair and the second identity pair form a unique matching identity relationship.
进一步地,所述第一预设时间间隔大于第二预设时间间隔,所述方法还包括:Further, the first preset time interval is greater than the second preset time interval, and the method further includes:
当所述第二数据库清空后,根据所述第二客户端中用于所述监控数据传输的多个接口重新随机确定所述第一客户端匹配的接口序号。After the second database is cleared, randomly determine the sequence number of the interface matched by the first client according to the multiple interfaces used for the monitoring data transmission in the second client.
进一步地,所述方法还包括:Further, the method also includes:
当所述第一客户端接收到所述第二客户端发送的监控数据后,切断所述接口的数据连接,并清空所述接口数据连接过程中产生的临时存储文件。After the first client receives the monitoring data sent by the second client, it cuts off the data connection of the interface, and clears the temporary storage files generated during the data connection of the interface.
依据本发明另一个方面,提供了一种数据的传输系统,包括:第一客户端、第二客户端、穿戴设备,According to another aspect of the present invention, a data transmission system is provided, including: a first client, a second client, a wearable device,
所述第一客户端与所述第二客户端通过接口进行数据连接,用于向第二客户端发送第一标识对,并接收反馈的监控数据;The first client is connected to the second client through an interface, and is used to send the first identification pair to the second client and receive feedback monitoring data;
所述第二客户端与所述第一客户端通过接口进行数据连接,以及与穿戴设备通过蓝牙通信方式进行连接,用于根据所述第一客户端发送的第一标识对确定是否存在第二标识对,以及若存在第二标识对,则根据存在的接口号对应的接口与第一客户端进行数据通信;The second client performs data connection with the first client through an interface, and connects with the wearable device through Bluetooth communication, and is used to determine whether there is a second identifier according to the first identification pair sent by the first client. An identification pair, and if there is a second identification pair, performing data communication with the first client according to the interface corresponding to the existing interface number;
所述穿戴设备,用于实时监测用户的状体信息。The wearable device is used to monitor the user's state information in real time.
借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:With the above technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:
本发明提供了一种数据的传输方法及系统,与现有技术相比,本发明实施例通过第一客户端向第二客户端发送数据连通指令,所述数据连通指令中携带有所述第一客户端的第一标识对;当所述第二客户端接收到所述数据连通指令时,从所述第二客户端中查找与所述第一标识对匹配的第二标识对;若存在所述第二标识对时,所述第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与所述第一客户端进行数据传输的接口序号;若存在,则所述第二客户端反馈所述接口序号,所述第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向所述第二客户端发送接通信号;所述第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至所述第一客户端,实现监控数据的及时传输,以及数据对特定人的权限输出,提高数据传输的安全性,确保数据传输的安全性,保密性,从而实现数据的高效传输及安全性。The present invention provides a data transmission method and system. Compared with the prior art, the embodiment of the present invention sends a data connection instruction to the second client through the first client, and the data connection instruction carries the first A first identification pair of a client; when the second client receives the data connection instruction, search for a second identification pair matching the first identification pair from the second client; if there is any When the second identification is paired, the second client loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client; if it exists, the second client The terminal feeds back the serial number of the interface, and after receiving the serial number of the interface, the first client establishes a data connection between the interfaces matching the serial number of the interface, and sends a connection signal to the second client; After the second client receives the connection signal, it sends the monitoring data to the first client through the interface, so as to realize the timely transmission of the monitoring data and the output of the authority of the data to a specific person, thereby improving The security of data transmission ensures the security and confidentiality of data transmission, so as to realize the efficient transmission and security of data.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了本发明实施例提供的一种数据的传输方法流程图;FIG. 1 shows a flowchart of a data transmission method provided by an embodiment of the present invention;
图2示出了本发明实施例提供的一种数据的传输系统的结构示意图。Fig. 2 shows a schematic structural diagram of a data transmission system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本发明实施例提供了一种数据的传输方法,如图1所示,该方法包括:The embodiment of the present invention provides a data transmission method, as shown in Figure 1, the method includes:
101、第一客户端向第二客户端发送数据连通指令。101. The first client sends a data connection instruction to the second client.
本发明实施例中,所述第一客户端为需要获取手环数据的一端,第二客户端为手环绑定的佩戴者的一端,例如,作为安装有手环匹配数据加载的应用程序的第一客户端的父母,希望获取孩子的手环数据,即通过向作为安装有手环匹配数据加载应用程序的第二客户端发送数据连通指令,如父母通过手机中的手环APP向孩子手机中的手环APP发送数据连通指令。其中,所述数据连通指令中携带有所述第一客户端的第一标识对,第一标识对用于第二客户端判断是否进行数据传输,本发明实施例中,第一客户端发送的第一标识对与第二客户端中存储的第二标识对为预先进行建立的,以便在第二客户端根据第一标识对与第二标识对进行判断是否有权限进行数据传输,以确保数据的安全性。例如,第一标识对为母亲,第二标识对为儿子;第一标识对为丈夫、第二标识对为妻子等。In the embodiment of the present invention, the first client is the end that needs to obtain the data of the bracelet, and the second client is the end of the wearer bound to the bracelet, for example, as an application program loaded with matching data of the bracelet installed The parents of the first client want to obtain the data of the child's bracelet, that is, by sending a data connection instruction to the second client as the application program for loading the matching data of the bracelet installed, such as the parent through the bracelet APP in the mobile phone to the child's mobile phone. The bracelet APP sends a data connection command. Wherein, the data connection instruction carries the first identification pair of the first client, and the first identification pair is used by the second client to determine whether to perform data transmission. In the embodiment of the present invention, the first identification pair sent by the first client An identification pair and the second identification pair stored in the second client are pre-established, so that the second client can judge whether there is permission to transmit data according to the first identification pair and the second identification pair, so as to ensure data security. safety. For example, the first identification pair is the mother, the second identification pair is the son; the first identification pair is the husband, the second identification pair is the wife, and so on.
需要说明的是,由于第一客户端与第二客户端进行发送的数据连通指令是终端设备中安装的APP中进行发送的指令,因此,数据连通指令可以通过服务端进行转发,也可以当第一客户端与第二客户端符合预设范围时,通过蓝牙进行发送指令,本发明实施例不做具体限定。It should be noted that since the data connection instruction sent by the first client and the second client is an instruction sent by the APP installed in the terminal device, the data connection instruction can be forwarded by the server, or can be used as the second When the first client and the second client meet the preset range, the instruction is sent via bluetooth, which is not specifically limited in this embodiment of the present invention.
102、当所述第二客户端接收到所述数据连通指令时,从所述第二客户端中查找与所述第一标识对匹配的第二标识对。102. When the second client receives the data connection instruction, search for a second identification pair that matches the first identification pair from the second client.
对于本发明实施例,所述第一标识对与所述第二标识对组成唯一匹配的身份关系,例如,夫妻、母子、母女、父女、父子、祖父与孙子等,本发明实施例不做具体限定。For the embodiment of the present invention, the first identification pair and the second identification pair form a unique matching identity relationship, for example, husband and wife, mother and child, mother and daughter, father and daughter, father and son, grandfather and grandson, etc., the embodiment of the present invention does not Be specific.
103、若存在所述第二标识对时,所述第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与所述第一客户端进行数据传输的接口序号。103. If the second identification pair exists, the second client loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client.
对于本发明实施例,若第二客户端查找到存在匹配的第二标识对时,说明第一客户端与第二客户端为预先建立有唯一匹配的身份关系的,因此,第二客户端可以加载已绑定的穿戴设备中的监控数据,如手环、脚环中的睡眠时间、心率情况,体温等数据。另外,为了以特定方式进行数据传输,且增加安全性,加载监控数据的同时,判断第二客户端中是否存在可以与第一客户端进行数据传输的接口序号,以便根据此接口序号对应的接口进行数据传输。For the embodiment of the present invention, if the second client finds a matching second identification pair, it means that the first client and the second client have pre-established a unique matching identity relationship. Therefore, the second client can Load the monitoring data in the bound wearable device, such as sleep time, heart rate, body temperature and other data in the wristband and anklet. In addition, in order to perform data transmission in a specific way and increase security, while loading monitoring data, it is judged whether there is an interface serial number in the second client that can perform data transmission with the first client, so that the interface corresponding to this interface serial number for data transfer.
104、若存在,则所述第二客户端反馈所述接口序号,所述第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向所述第二客户端发送接通信号。104. If it exists, the second client feeds back the interface serial number, and after receiving the interface serial number, the first client establishes a data connection between the interfaces that match the interface serial number, and sends The second client sends a connection signal.
本发明实施例中,第二客户端中判断出存在对应的接口序号,则说明第二客户端可以指定接口与第二客户端进行数据连接。另外,由于本发明实施例中的接口序列号为随机生成的,因此,需要向第一客户端进行发送,以指示第一客户端与第二客户端对应的接口进行数据连接。In the embodiment of the present invention, if it is determined in the second client that there is a corresponding interface serial number, it means that the second client can designate an interface to perform data connection with the second client. In addition, since the interface serial number in the embodiment of the present invention is randomly generated, it needs to be sent to the first client to instruct the first client to perform data connection with the corresponding interface of the second client.
需要说明的是,第一客户端接收到接口序列号后,通过与接口序列号对应的接口建立数据连接,以进行数据传输,并为了使第二客户端获知完成数据连接,可以进行监控数据的传输,需要向第二客户端发送接通信号。另外,本发明实施例中的接口进行数据传输为通过无线网络的接口进行无线数据的传输。It should be noted that after the first client receives the interface serial number, it establishes a data connection through the interface corresponding to the interface serial number for data transmission, and in order for the second client to know that the data connection is completed, it can monitor the data. transmission, it is necessary to send a connection signal to the second client. In addition, the interface performing data transmission in the embodiment of the present invention refers to performing wireless data transmission through an interface of a wireless network.
105、所述第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至所述第一客户端。105. After receiving the connection signal, the second client sends the monitoring data to the first client through the interface.
对于本发明实施例,当第二客户端接收到第一客户端反馈的接通信号后,将监控数据通过对应的接口发送至第一客户端,以实现数据的快速传输,及数据的安全传输,提高了数据的传输效率。For the embodiment of the present invention, after the second client receives the connection signal fed back by the first client, it sends the monitoring data to the first client through the corresponding interface, so as to realize the fast transmission of data and the safe transmission of data , improving the data transmission efficiency.
进一步地,为了使第一标识对与第二标识对的匹配为特定身份关系的人之间的匹配,本发明实施例还包括:通过蓝牙连接通道建立第一客户端与第二客户端之间的首次数据传输通道,所述数据传输通道用于所述第一客户端向所述第二客户端发送第一标识对;所述第二客户端根据接收到的第一标识对生成匹配的第二标识对,所述第二标识对用于指示所述第二客户端加载所述穿戴设备的监控数据,其中,所述第二标识对存储于按照第一预设时间间隔进行清空的第一数据库中。Further, in order to make the matching between the first identification pair and the second identification pair a match between people with a specific identity relationship, the embodiment of the present invention further includes: establishing a connection between the first client and the second client through a Bluetooth connection channel The first data transmission channel, the data transmission channel is used for the first client to send the first identification pair to the second client; the second client generates a matching first identification pair according to the received first identification pair Two identification pairs, the second identification pair is used to instruct the second client to load the monitoring data of the wearable device, wherein the second identification pair is stored in the first in the database.
对于本发明实施例,第一客户端与第二客户端在第一次进行首次蓝牙连接时,第一客户端通过蓝牙数据传输的方式将第一标识对传输至第二客户端,以确保不会丢失。第二客户端接收到第一客户端发送的第一标识对后生成匹配的第二标识对,例如,第一客户端发送老公12324,第二客户端生成与老公12324匹配的第二标识对老婆12324。For the embodiment of the present invention, when the first client and the second client make the first Bluetooth connection for the first time, the first client transmits the first identification pair to the second client through Bluetooth data transmission, so as to ensure that no will be lost. After the second client receives the first identification pair sent by the first client, it generates a matching second identification pair. For example, the first client sends husband 12324, and the second client generates a second identification pair that matches husband 12324. Wife 12324.
另外,为了使第一标识对与第二标识对在进行匹配生成时更为安全保密,因此,存储第二标识对的第一数据库按照第一预设时间间隔进行清空,以确保第二标识对的实时性及安全性,避免被盗用。例如,第一数据库按照一个月一次进行清空,清空后第一客户端与第二客户端再次通过蓝牙连接进行首次数据传输通道的建立,以重新匹配第一标识对对应的第二标识对,其中,第一标识对可以进行更新,从而确保第二标识对的更新,增强保密性。In addition, in order to make the matching between the first identification pair and the second identification pair more secure and confidential, therefore, the first database storing the second identification pair is cleared at the first preset time interval to ensure that the second identification pair Real-time and security, to avoid theft. For example, the first database is cleared once a month. After clearing, the first client and the second client establish the first data transmission channel through the Bluetooth connection again, so as to re-match the second identification pair corresponding to the first identification pair, wherein , the first identification pair can be updated, thereby ensuring the update of the second identification pair and enhancing confidentiality.
进一步地,为了使数据传输更为快速,且增强保密性,本发明实施例还包括:当检测到生成所述第二标识对时,根据所述第二客户端中用于所述监控数据传输的多个接口确定所述第一客户端匹配的接口序号,并存储至按照第二预设时间间隔进行清空的第二数据库中。Further, in order to make data transmission faster and enhance confidentiality, the embodiment of the present invention further includes: when it is detected that the second identification pair is generated, according to the monitoring data transmission used in the second client The multiple interfaces determine the serial number of the interface matched by the first client, and store it in a second database that is cleared at a second preset time interval.
由于第二客户端中包含有多个可以进行数据传输的接口,且每个接口数据传输的状态也不统一,因此,当检测生成第二标识对时,根据监控数据确定对应的接口序号,并将确定的接口序号存储至按照第二预设时间间隔进行清空的第二存储数据库中,以使传输监控数据的接口序号匹配的接口为最优、最适合、最安全进行数据传输的接口,增加数据传输的效率,也增加了数据传输的保密性。Since the second client includes multiple interfaces capable of data transmission, and the data transmission status of each interface is not uniform, therefore, when the second identification pair is detected and generated, the corresponding interface serial number is determined according to the monitoring data, and Store the determined interface serial number in the second storage database that is emptied according to the second preset time interval, so that the interface that matches the interface serial number that transmits monitoring data is the optimal, most suitable, and safest interface for data transmission, increasing The efficiency of data transmission also increases the confidentiality of data transmission.
需要说明的是,由于监控数据中包含有不同的监控参数,如心率、温度等,因此,确定接口序号的方法即通过序号分配公式进行确定,序号分配公式为,其中,/>为接口状态,包括被占用=1、闲置=2,/>为接口总数,/>为监控参数对应序号,如心率对应序号为2,/>为监控时长,计算出的/>即为接口序号。It should be noted that since the monitoring data contains different monitoring parameters, such as heart rate, temperature, etc., the method of determining the serial number of the interface is determined by the serial number allocation formula. The serial number allocation formula is , where /> It is the state of the interface, including occupied=1, idle=2, /> is the total number of interfaces, /> The serial number corresponding to the monitoring parameter, for example, the serial number corresponding to the heart rate is 2, /> For the monitoring duration, the calculated /> It is the serial number of the interface.
进一步地,为了确保第二数据库在进行权限限制清空时仍可以进行数据的传输,不会引起数据传输的无法加载,所述第一预设时间间隔大于第二预设时间间隔,即第二标识对对应的清空时间间隔要大于接口序列号的清空时间间隔,本发明实施例还包括:当所述第二数据库清空后,根据所述第二客户端中用于所述监控数据传输的多个接口重新随机确定所述第一客户端匹配的接口序号。从而使第一客户端在接口序号因接口传输效率而丢失接口序列号时,仍可以按照随机生成的任意一个接口序列号对应的接口进行数据传输,此时会降低因特定接口进行传输的保密性。Further, in order to ensure that the second database can still transmit data when the authority restriction is cleared, and will not cause data transmission failure to load, the first preset time interval is greater than the second preset time interval, that is, the second identification For the corresponding clearing time interval that is greater than the clearing time interval of the interface serial number, the embodiment of the present invention further includes: after the second database is cleared, according to the multiple monitoring data transmission in the second client The interface randomly determines the interface sequence number matched by the first client again. Therefore, when the interface serial number of the first client is lost due to interface transmission efficiency, the first client can still perform data transmission according to the interface corresponding to any interface serial number randomly generated, which will reduce the confidentiality of transmission due to a specific interface .
进一步地,为了确保数据传输的安全性,以及监控数据的保密性,本发明实施例还包括:当所述第一客户端接收到所述第二客户端发送的监控数据后,切断所述接口的数据连接,并清空所述接口数据连接过程中产生的临时存储文件。Further, in order to ensure the security of data transmission and the confidentiality of monitoring data, the embodiment of the present invention further includes: after the first client receives the monitoring data sent by the second client, cutting off the interface data connection, and clear the temporary storage files generated during the data connection process of the interface.
其中,临时存储文件包括查找第二标识对、确定接口序列号对应的操作流程文件等,这些文件中隐含包括了可以进行监控数据传输的表示对、接口等信息,因此需要进行清空,以确保安全性。Among them, the temporary storage files include searching for the second identification pair, determining the operation process files corresponding to the interface serial number, etc. These files implicitly include information such as representation pairs and interfaces that can be used for monitoring data transmission, so they need to be cleared to ensure safety.
本发明提供了一种数据的传输方法,本发明实施例通过第一客户端向第二客户端发送数据连通指令,所述数据连通指令中携带有所述第一客户端的第一标识对;当所述第二客户端接收到所述数据连通指令时,从所述第二客户端中查找与所述第一标识对匹配的第二标识对;若存在所述第二标识对时,所述第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与所述第一客户端进行数据传输的接口序号;若存在,则所述第二客户端反馈所述接口序号,所述第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向所述第二客户端发送接通信号;所述第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至所述第一客户端,实现监控数据的及时传输,以及数据对特定人的权限输出,提高数据传输的安全性,确保数据传输的安全性,保密性,从而实现数据的高效传输及安全性。The present invention provides a data transmission method. In the embodiment of the present invention, the first client sends a data connection instruction to the second client, and the data connection instruction carries the first identification pair of the first client; when When the second client receives the data connection instruction, it searches for a second identification pair that matches the first identification pair from the second client; if the second identification pair exists, the The second client loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client; if it exists, the second client feeds back the interface serial number, and the After receiving the serial number of the interface, the first client establishes a data connection between the interfaces matching the serial number of the interface, and sends a connection signal to the second client; the second client receives the After the signal is connected, the monitoring data is sent to the first client through the interface to realize the timely transmission of the monitoring data and the output of the data to a specific person, thereby improving the security of data transmission and ensuring data transmission Security and confidentiality, so as to realize the efficient transmission and security of data.
进一步的,作为对上述图1所示方法的实现,本发明实施例提供了一种数据的传输系统,如图2所示,该系统包括: 第一客户端21、第二客户端22、穿戴设备23,Further, as an implementation of the method shown in FIG. 1 above, an embodiment of the present invention provides a data transmission system. As shown in FIG. 2 , the system includes: a
所述第一客户端21与所述第二客户端22通过接口进行数据连接,用于向第二客户端22发送第一标识对,并接收反馈的监控数据;The
所述第二客户端22与所述第一客户端21通过接口进行数据连接,以及与穿戴设备23通过蓝牙通信方式进行连接,用于根据所述第一客户端21发送的第一标识对确定是否存在第二标识对,以及若存在第二标识对,则根据存在的接口号对应的接口与第一客户端21进行数据通信;The
所述穿戴设备23,用于实时监测用户的状体信息。The
本发明提供了一种数据的传输系统,与现有技术相比,本发明实施例通过第一客户端向第二客户端发送数据连通指令,所述数据连通指令中携带有所述第一客户端的第一标识对;当所述第二客户端接收到所述数据连通指令时,从所述第二客户端中查找与所述第一标识对匹配的第二标识对;若存在所述第二标识对时,所述第二客户端加载绑定穿戴设备的监控数据,并判断是否已存在与所述第一客户端进行数据传输的接口序号;若存在,则所述第二客户端反馈所述接口序号,所述第一客户端接收所述接口序列号后,建立与所述接口序列号匹配的接口之间的数据连接,并向所述第二客户端发送接通信号;所述第二客户端接收到所述接通信号后,将所述监控数据通过所述接口发送至所述第一客户端,实现监控数据的及时传输,以及数据对特定人的权限输出,提高数据传输的安全性,确保数据传输的安全性,保密性,从而实现数据的高效传输及安全性。The present invention provides a data transmission system. Compared with the prior art, the embodiment of the present invention sends a data connection instruction to the second client through the first client, and the data connection instruction carries the first client The first identification pair of the terminal; when the second client receives the data connection instruction, search for the second identification pair matching the first identification pair from the second client; if there is the first identification pair When the two identifications are correct, the second client loads the monitoring data bound to the wearable device, and judges whether there is an interface serial number for data transmission with the first client; if it exists, the second client feeds back The serial number of the interface, after the first client receives the serial number of the interface, establishes a data connection between the interfaces matching the serial number of the interface, and sends a connection signal to the second client; After receiving the connection signal, the second client sends the monitoring data to the first client through the interface to realize the timely transmission of the monitoring data and the output of the data to a specific person, thereby improving data transmission The security ensures the security and confidentiality of data transmission, so as to realize the efficient transmission and security of data.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911418942.0A CN111010688B (en) | 2019-12-31 | 2019-12-31 | Data transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911418942.0A CN111010688B (en) | 2019-12-31 | 2019-12-31 | Data transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111010688A CN111010688A (en) | 2020-04-14 |
CN111010688B true CN111010688B (en) | 2023-06-06 |
Family
ID=70120124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911418942.0A Active CN111010688B (en) | 2019-12-31 | 2019-12-31 | Data transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010688B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491655A (en) * | 2013-09-30 | 2014-01-01 | 深圳前海君浩银通科技发展有限公司 | Multi-mode communication system and method between terminal devices |
CN104620514A (en) * | 2012-09-10 | 2015-05-13 | 三星电子株式会社 | Method and device for executing application |
CN105323223A (en) * | 2014-07-18 | 2016-02-10 | 中国电信股份有限公司 | Point-to-point transaction data transmitting processing method and system of mobile terminals |
CN105407455A (en) * | 2015-12-15 | 2016-03-16 | 天脉聚源(北京)传媒科技有限公司 | Method and device for interacting information between mobile equipment |
CN106569412A (en) * | 2016-10-28 | 2017-04-19 | 深圳市中柏电脑技术有限公司 | Data management method of intelligent nursing system |
CN106562769A (en) * | 2016-10-28 | 2017-04-19 | 深圳市中柏电脑技术有限公司 | Home intelligent nursing method |
CN109951424A (en) * | 2017-12-20 | 2019-06-28 | 北京三星通信技术研究有限公司 | Sharing method and corresponding equipment |
-
2019
- 2019-12-31 CN CN201911418942.0A patent/CN111010688B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104620514A (en) * | 2012-09-10 | 2015-05-13 | 三星电子株式会社 | Method and device for executing application |
CN103491655A (en) * | 2013-09-30 | 2014-01-01 | 深圳前海君浩银通科技发展有限公司 | Multi-mode communication system and method between terminal devices |
CN105323223A (en) * | 2014-07-18 | 2016-02-10 | 中国电信股份有限公司 | Point-to-point transaction data transmitting processing method and system of mobile terminals |
CN105407455A (en) * | 2015-12-15 | 2016-03-16 | 天脉聚源(北京)传媒科技有限公司 | Method and device for interacting information between mobile equipment |
CN106569412A (en) * | 2016-10-28 | 2017-04-19 | 深圳市中柏电脑技术有限公司 | Data management method of intelligent nursing system |
CN106562769A (en) * | 2016-10-28 | 2017-04-19 | 深圳市中柏电脑技术有限公司 | Home intelligent nursing method |
CN109951424A (en) * | 2017-12-20 | 2019-06-28 | 北京三星通信技术研究有限公司 | Sharing method and corresponding equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111010688A (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102149587B1 (en) | Identity authentication method and device | |
CN109496403B (en) | Method and system for dynamic searchable symmetric encryption with forward privacy and delegated verifiability | |
US20250119412A1 (en) | System and method for secure remote control of a medical device | |
US7891557B2 (en) | System and method for managing multiple smart card sessions | |
US9330514B2 (en) | Systems and methods for locking device management | |
EP1850255B1 (en) | System and method for managing multiple smart card sessions | |
CN105391682A (en) | Authentication method and apparatus using biometric information and context information | |
CN105933852B (en) | A kind of telecommunication system and method by bluetooth equipment realization | |
US10484363B2 (en) | Method and apparatus for authenticating a device using Bluetooth technology | |
JP6092425B2 (en) | Near field communication method and device | |
JP6708958B2 (en) | Information processing terminal, information processing system, program, and control method | |
CN112347184A (en) | Bifurcation processing method and block link point | |
US20190207880A1 (en) | Techniques for data reads from secondary stores | |
CN111010688B (en) | Data transmission method and system | |
WO2015117362A1 (en) | Method and device for sharing personal information on terminal | |
US10356666B2 (en) | Communication device and communication control method | |
WO2025107432A1 (en) | Method for wireless communication between devices, and communication apparatus | |
CN106571845A (en) | Intelligent fitband wechat communication system | |
WO2022206123A1 (en) | Blockchain chaining method and apparatus, and electronic device and storage medium | |
CN102196044A (en) | Data transmission method and system | |
CN112787972B (en) | System, method and device for near-end maintenance authentication in Internet of things | |
US10706089B2 (en) | Techniques for time intersection | |
CN113676878A (en) | Method and equipment for acquiring data of multiple intelligent wearable devices | |
CN102497273A (en) | Method, apparatus and system for entity authentication | |
EP4325812A1 (en) | Packet transmission method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |