CN113438261A - Connection method and device of wearable massage instrument, computer equipment and storage medium - Google Patents

Connection method and device of wearable massage instrument, computer equipment and storage medium Download PDF

Info

Publication number
CN113438261A
CN113438261A CN202010208577.7A CN202010208577A CN113438261A CN 113438261 A CN113438261 A CN 113438261A CN 202010208577 A CN202010208577 A CN 202010208577A CN 113438261 A CN113438261 A CN 113438261A
Authority
CN
China
Prior art keywords
connection request
identification signal
signal code
wearable
equipment identification
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.)
Pending
Application number
CN202010208577.7A
Other languages
Chinese (zh)
Inventor
刘杰
王储
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SKG Health Technologies Co Ltd.
Original Assignee
SKG Health Technologies Co Ltd.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SKG Health Technologies Co Ltd. filed Critical SKG Health Technologies Co Ltd.
Priority to CN202010208577.7A priority Critical patent/CN113438261A/en
Publication of CN113438261A publication Critical patent/CN113438261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H1/00Apparatus for passive exercising; Vibrating apparatus ; Chiropractic devices, e.g. body impacting devices, external devices for briefly extending or aligning unbroken bones
    • A61H1/008Apparatus for applying pressure or blows almost perpendicular to the body or limb axis, e.g. chiropractic devices for repositioning vertebrae, correcting deformation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H2205/00Devices for specific parts of the body
    • A61H2205/04Devices for specific parts of the body neck

Abstract

The application relates to a connection method and a connection device of a wearable massager, computer equipment and a storage medium, wherein the wearable massager detects whether an equipment identification signal code carried in a first connection request received firstly is legal or not after receiving connection requests sent by a plurality of main equipment, if the equipment identification signal code carried in the first connection request is legal, the wearable massager sends a connection success response to first main equipment corresponding to the first connection request, and if the equipment identification signal code carried in the first connection request is illegal, the wearable massager sends a connection success response to second main equipment corresponding to a second connection request, wherein the receiving time of the second main equipment is later than the receiving time of the first connection request and carries the legal equipment identification signal code. The method avoids the situation that the intelligent device which receives the connection request firstly cannot be connected with the main device at the current stage when the safety verification of the intelligent device cannot pass, and improves the reliability of the connection between the main device and the massage instrument.

Description

Connection method and device of wearable massage instrument, computer equipment and storage medium
Technical Field
The application relates to the technical field of massage instruments, in particular to a connection method and device of a wearable massage instrument, computer equipment and a storage medium.
Background
At present, more and more devices can be controlled in function through intelligent devices, for example, for convenience, the massage instrument can be controlled or managed in data through a mobile phone while the massage instrument is used.
The intelligent device can interact with the massage instrument after being connected, in the prior art, the same massage instrument can be controlled through a plurality of main devices, the intelligent devices can initiate connection requests to the massage instrument, but the massage instrument can only be connected with the intelligent device which receives the connection requests firstly, other intelligent devices can not be connected at the current stage, and in order to guarantee the safety of the massage instrument, safety verification can be set when the massage instrument is connected with the intelligent device, and only the safety verification can be connected with the intelligent device through the intelligent device.
However, if the security verification of the smart device that the massage apparatus first receives the connection request fails, the massage apparatus cannot be successfully connected to the smart device at the current stage, and only waits for the connection request of another smart device, which results in low reliability of connection between the main device and the massage apparatus.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for connecting a wearable massage apparatus, a computer device, and a storage medium, which can improve the reliability of connection between the wearable massage apparatus and a main device.
In a first aspect, the present application provides a method for connecting a wearable massage apparatus, the method comprising:
the wearable massage device receives connection requests sent by a plurality of main devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
the wearable massager detects whether the equipment identification signal code carried in the first received connection request is legal or not;
if the equipment identification signal code carried in the first connection request is legal, the wearable massager sends a connection success response to the first main equipment corresponding to the first connection request;
if the equipment identification signal code carried in the first connection request is illegal, the wearable massager sends a connection success response to the second main equipment corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In one embodiment, the detecting, by the wearable massage apparatus, whether the device identification code carried in the first connection request received first is legal includes:
the wearable massager compares the equipment identification signal code carried in the first connection request with a standard equipment identification signal code stored in the wearable massager;
if the equipment identification signal code carried in the first connection request is consistent with the standard equipment identification signal code, determining that the equipment identification signal code carried in the first connection request is legal;
and if the equipment identification signal code carried in the first connection request is not consistent with the standard equipment identification signal code, determining that the equipment identification signal code carried in the first connection request is illegal.
In one embodiment, the wearable massage apparatus detecting whether the device identification signal code carried in the first received connection request is legal or not includes:
the wearable massager requests the cloud server of the wearable massager to verify whether the equipment identification signal code carried in the first connection request is legal or not;
the wearable massage instrument receives a verification result returned by the cloud server; the verification result includes that the equipment identification signal code carried in the first connection request is legal, or the equipment identification signal code carried in the first connection request is illegal.
In one embodiment, the cloud server is determined according to a comparison result between the device identification signal code carried in the first connection request and an original device identification signal code of the wearable massage apparatus stored in the cloud server; the original equipment identification signal code is determined according to an equipment identification code which uniquely corresponds to the original equipment identification signal code.
In one embodiment, after determining that the device identification code carried in the first connection request is illegal, the method further includes:
wearable massage appearance receives the record instruction that cloud server sent, and the record instruction is used for instructing wearable massage appearance to store as illegal equipment identification signal code the equipment identification signal code that carries in the first connection request.
In a second aspect, the present application provides a method for connecting a wearable massage apparatus, the method comprising:
connection requests sent by the plurality of main devices to the wearable massage apparatus; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
if the equipment identification signal code carried in the first connection request which reaches the wearable massager at first is legal, the first main equipment corresponding to the first connection request receives a connection success response sent by the wearable massager;
if the equipment identification signal code carried in the first connection request is illegal, the second main equipment corresponding to the second connection request receives a connection success response sent by the wearable massage instrument; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In one embodiment, before the first master device corresponding to the first connection request receives a connection success response sent by the wearable massage apparatus, the method further includes:
the method comprises the steps that a first main device receives a device identification code request of the wearable massage apparatus, which is sent by a cloud server of the wearable massage apparatus; the equipment identification code represents an identity of the wearable massage apparatus;
the method comprises the steps that a first main device sends a device identification code of a wearable massage instrument to a cloud server;
the equipment identification code is used for indicating the cloud server to determine an original equipment identification signal code of the wearable massager according to the equipment identification code, and determining the legality of the equipment identification signal code carried in the first connection request according to the comparison result of the original equipment identification signal code and the equipment identification signal code carried in the first connection request.
In one embodiment, after the first master device sends the device identification code to the cloud server, the method includes:
the first main device receives a refusal response sent by the cloud server; the refusal response indicates that the equipment identification code is incorrect or the equipment identification signal code carried in the first connection request is illegal;
or the first main device receives a legal response returned by the cloud server; the legitimate response is used to instruct the first master device to re-establish a connection with the wearable massager.
In one embodiment, the first master device reestablishes a connection with the wearable massage apparatus, including:
the first main device repeatedly sends a device identification signal code to the wearable massager until a connection success response returned by the wearable massager is received; alternatively, the first and second electrodes may be,
the first main device sends a maintenance request to a service platform of the wearable massage instrument, and connection with the wearable massage instrument is established according to a maintenance result of the service platform.
In one embodiment, after the first master device or the second master device receives a connection success response sent by the wearable massage apparatus, the method further includes:
the first main equipment or the second main equipment sends a data reading instruction to the wearable massage instrument according to a preset period; the data reading instruction is used for indicating the wearable massage instrument to acquire state data;
the first main device or the second main device receives state data returned by the wearable massage apparatus.
In one embodiment, after the first master device or the second master device sends a data reading instruction to the wearable massage apparatus according to a preset cycle, the method further includes:
and if the first main equipment or the second main equipment does not receive the state data returned by the wearable massage instrument after exceeding the preset time, determining that the wearable massage instrument is off-line.
In a third aspect, the present application provides a connection device for a wearable massage apparatus, the device comprising:
a connection request receiving module, configured to receive connection requests sent by multiple master devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
the validity detection module is used for detecting whether the equipment identification signal code carried in the first received connection request is valid;
the connection success module is used for sending a connection success response to the first main device corresponding to the first connection request if the device identification signal code carried in the first connection request is legal; if the equipment identification signal code carried in the first connection request is illegal, sending a connection success response to second main equipment corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In a fourth aspect, the present application provides a connection device of a wearable massage apparatus, the device comprising:
the connection request sending module is used for sending a connection request to the wearable massage instrument; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
the first connection request corresponding module is used for receiving a connection success response sent by the wearable massage instrument if an equipment identification signal code carried in a first connection request which firstly reaches the wearable massage instrument is legal;
the second connection request corresponding module is used for receiving a connection success response sent by the wearable massage instrument if the equipment identification signal code carried in the first connection request is illegal; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In a fifth aspect, the present application provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method in any of the first or second aspects when executing the computer program.
In a sixth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method in any of the embodiments of the first or second aspect described above.
The embodiment of the application provides a connection method and device for a wearable massager, a computer device and a storage medium, wherein the wearable massager detects whether a device identification signal code carried in a first received connection request is legal or not after receiving connection requests sent by a plurality of main devices, if the device identification signal code carried in the first connection request is legal, the wearable massager sends a connection success response to a first main device corresponding to the first connection request, and if the device identification signal code carried in the first connection request is illegal, the wearable massager sends a connection success response to a second main device corresponding to a second connection request, wherein the receiving time of the second main device is later than the receiving time of the first connection request and carries the legal device identification signal code. According to the method, after the wearable massage instrument receives a plurality of connection requests, the legality of the equipment identification signal code carried in the first received connection request is detected, and under the condition that the equipment identification signal code carried in the first connection request is not legal, the second main equipment which is later than the receiving time of the first connection request and corresponds to the second connection request carrying the legal equipment identification signal code is selected to be connected, so that the condition that the intelligent equipment which receives the connection request firstly cannot be connected with the main equipment at the current stage when the safety verification of the intelligent equipment cannot pass is avoided, and the reliability of connection between the main equipment and the massage instrument is improved.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a wearable massager attachment method;
FIG. 1a is a diagram illustrating an internal structure of a host device in one embodiment;
FIG. 2 is a schematic flow chart illustrating a method of connecting the wearable massage apparatus according to an embodiment;
FIG. 3 is a schematic flow chart illustrating a method for connecting the wearable massage apparatus according to another embodiment;
FIG. 4 is a schematic flow chart illustrating a method for connecting the wearable massage apparatus according to another embodiment;
FIG. 5 is a schematic flow chart illustrating a method for connecting the wearable massage apparatus according to another embodiment;
FIG. 6 is a schematic flow chart illustrating a method for connecting the wearable massage apparatus according to another embodiment;
FIG. 7 is a schematic flow chart illustrating a method for connecting the wearable massage apparatus according to another embodiment;
FIG. 8 is an interactive schematic diagram of a connection method of the wearable massage apparatus according to an embodiment;
FIG. 9 is a block diagram of a connection device of the wearable massage apparatus according to an embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, the present application provides an application environment of a connection method for a wearable massage apparatus, including a plurality of main devices 01, a cloud server 02, and a wearable massage apparatus 03; wherein, the main devices 01 and the wearable massage apparatus 03 can communicate with each other after establishing connection; the cloud server 02 and the wearable massage instrument 03 can communicate normally; after being connected, the master devices 01 and the cloud server 02 can communicate with each other; each of the main devices 01 may be an electronic device such as a personal computer, a notebook computer, a desktop computer, a media player, an intelligent television, an intelligent terminal, a tablet computer, and a portable wearable device, and the type of the main device 01 is not limited in the embodiment of the present application. Wherein, the wearable massage apparatus 03 can be a wearable neck massage apparatus, a wearable eye massage apparatus, a wearable waist massage apparatus, etc. The cloud server 02 includes, but is not limited to, a tower server, a rack server, a blade server, a high-density server, a single-path server, a two-path server, a multi-path server, and the like, and the type of the cloud server is not particularly limited.
The internal structure of the master device 01 is shown in fig. 1 a. Fig. 1a includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor is configured to provide computational and control capabilities. The memory comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database is used for storing data of a connection method of the wearable massage apparatus. The network interface is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of connecting a wearable massager. It is to be understood that the internal structure shown in fig. 1a is only an example of the internal structure of the master device 01, and is not intended to be limiting.
The embodiment of the application provides a connection method and device of a wearable massage apparatus, a computer device and a storage medium, which can improve the reliability of connection between the wearable massage apparatus and a main device. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. In the connection method of the wearable massage apparatus provided by the present application, the execution main body in fig. 2 to 5 is the wearable massage apparatus, and the execution main body in fig. 6 to 7 is the main device. The executing bodies in fig. 2 to fig. 7 may also be a connecting device of a wearable massage apparatus, wherein the device may be implemented as part or all of the wearable massage apparatus or the main device by software, hardware, or a combination of software and hardware.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
An embodiment in which the execution subject is a wearable massage apparatus will be described below.
In an embodiment, fig. 2 provides a connection method for a wearable massage apparatus, where the embodiment relates to a specific process in which, after receiving connection requests sent by a plurality of main devices, the wearable massage apparatus first detects validity of a device identification signal code carried in a first connection request, and if the device identification signal code is legal, establishes a connection with the main device corresponding to the first connection request, but if the device identification signal code is illegal, establishes a connection with a second main device corresponding to a device identification signal code that is carried and that receives another connection request later, as shown in fig. 2, the method includes:
s101, the wearable massage instrument receives connection requests sent by a plurality of main devices; wherein, carry an equipment identification signal code in every connection request, equipment identification signal code is used for verifying whether each main equipment has the authority of being connected with wearable massage appearance.
The application aims at a scene that a plurality of main devices control the same wearable massage apparatus, and in practical application, the plurality of main devices can be the same electronic device, for example, all the main devices are smart phones; or different electronic devices, e.g., some smartphones and some tablet computers; in this regard, the present embodiment is not limited as long as each master device can control the wearable massage apparatus.
Each main device in the plurality of main devices can send a connection request to the wearable massager, and each connection request carries a device identification signal code. The device identification signal code herein indicates a code for verifying whether each master device has the right to connect with the wearable massager, and the device identification signal code has a one-to-one correspondence with the device identification code. That is, if a connection is to be established with the wearable massager to call the wearable massager data, the connection is possible only after the device identification code and the device identification signal code are corresponded. Wherein the device identification code is an identification code representing the identity of the wearable massager.
The device identification signal code and the device identification code may be numbers, letters, or a combination thereof, which is not limited in this embodiment. It is understood that the device identification code of the wearable massager and the device identification signal code cannot be the same for safety. In practical application, the equipment identification signal code of the wearable massage instrument can be set and stored in an official address when the wearable massage instrument leaves a factory, for example, the equipment identification signal code is stored in an official cloud storage, and when the equipment identification signal code needs to be acquired, the equipment identification signal code corresponding to the equipment identification signal code in a one-to-one mode is acquired through the equipment identification code. The equipment identification code record of wearable massage appearance is on wearable massage appearance, and the user can be transferred from high in the clouds memory to the equipment identification signal code of wearable massage appearance through the equipment identification code of wearable massage appearance.
Optionally, a wearable massage apparatus controller, a wearable massage apparatus communication module, a wearable massage apparatus comparator, a wearable massage apparatus memory, and a wearable massage apparatus massage circuit are arranged in the wearable massage apparatus, the wearable massage apparatus controller is respectively connected with the wearable massage apparatus communication module, the wearable massage apparatus comparator, the wearable massage apparatus memory, and the wearable massage apparatus massage circuit, and when a signal code of any request call data received by the wearable massage apparatus is consistent with an equipment identification code of the wearable massage apparatus in the wearable massage apparatus comparator, the call of the wearable massage apparatus data is allowed.
The connection request for sending the portable device identification signal code to the wearable massage apparatus by each master device may be that each master device aligns with the wearable massage apparatus, and sends the acquired wearable massage apparatus identification signal code to the wearable massage apparatus through a signal (e.g., bluetooth or infrared signal), which is not limited in this embodiment.
And S102, the wearable massage apparatus detects whether the equipment identification signal code carried in the first received connection request is legal or not.
For the wearable massage apparatus, connection requests sent by a plurality of main devices generate different receiving sequences when the wearable massage apparatus receives the connection requests, and the connection request of the main device with the highest transmission rate reaches the wearable massage apparatus firstly. Then, the wearable massage apparatus preferentially processes the first received connection request, and uses the first received connection request as the first connection request, that is, detects whether the device identification signal code carried in the first received connection request is legal or not.
Wherein, whether the equipment identification signal code that the wearable massage appearance carried in detecting first connection request is legal can pass through the equipment identification signal code that carries in with first connection request and correct equipment identification signal code contrast, also can detect through the algorithm model that predetermines, and this embodiment does not restrict this.
And detecting whether the equipment identification signal code carried in the first connection request is legal or not, and then, having two results, namely, detecting that the equipment identification signal code carried in the first connection request is legal, and detecting that the equipment identification signal code carried in the first connection request is illegal, if the equipment identification signal code carried in the first connection request is legal, executing the step S103, and if the equipment identification signal code carried in the first connection request is illegal, executing the step S104.
S103, the wearable massage device sends a connection success response to the first main device corresponding to the first connection request.
This step is the case where the device identification signal code carried in the first connection request is legitimate. This situation indicates that the first master device corresponding to the first connection request has the right to connect with the wearable massage apparatus, and the wearable massage apparatus sends a connection success response to the first master device corresponding to the first connection request. The connection success response here refers to a response that the wearable massage apparatus establishes a connection relationship with the first master device and feeds back the connection relationship to the first master device after receiving the device identification signal code sent by the first master device and determining that the device identification signal code is correct.
The first main device receives a connection success response returned by the wearable massage apparatus, and the control authority of the first main device is passed, so that the first main device is successfully connected with the wearable massage apparatus, for example, the main device is connected with the wearable massage apparatus in a Bluetooth mode, a near field communication mode, a wifi mode or a mobile communication signal mode.
S104, the wearable massager sends a connection success response to the second main device corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In this step, the device identification signal code carried in the first connection request is illegal, which indicates that the device identification signal code of the first main device belongs to an illegal device identification signal code, so that the wearable massage apparatus can refuse the first main device to connect, i.e., it is determined that the first main device does not have the permission to establish connection with the wearable massage apparatus.
After the first main device is refused to be connected, the wearable massage apparatus searches for a second connection request from the rest connection requests, wherein the receiving time of the second connection request is later than that of the first connection request and carries a legal device identification signal code. The wearable massage apparatus selects the first connection request, which reaches the wearable massage apparatus first and carries the connection request of the legal device identification signal code as the second connection request.
Based on the determined second connection request, the wearable massage apparatus sends a connection success response to the second main device corresponding to the second connection request so as to establish connection with the second main device corresponding to the second connection request. It should be noted that the types of the first master device and the second master device may be the same or different, but their functions are definitely the same, and here, the first and second devices are only used for distinguishing the two master devices and are not limited to their functions.
In the connection method of the wearable massager provided in this embodiment, after receiving connection requests sent by a plurality of main devices, the wearable massager detects whether the device identification signal code carried in the first received connection request is legal or not, if the device identification signal code carried in the first connection request is legal, the wearable massager sends a connection success response to a first main device corresponding to the first connection request, and if the device identification signal code carried in the first connection request is illegal, the wearable massager sends a connection success response to a second main device corresponding to a second connection request, the reception time of which is later than the reception time of the first connection request and which carries the legal device identification signal code. According to the method, after the wearable massage instrument receives a plurality of connection requests, the legality of the equipment identification signal code carried in the first received connection request is detected, and under the condition that the equipment identification signal code carried in the first connection request is not legal, the second main equipment which is later than the receiving time of the first connection request and corresponds to the second connection request carrying the legal equipment identification signal code is selected to be connected, so that the condition that the intelligent equipment which receives the connection request firstly cannot be connected with the main equipment at the current stage when the safety verification of the intelligent equipment cannot pass is avoided, and the reliability of connection between the main equipment and the massage instrument is improved.
In other scenes, when the wearable massager detects that the equipment identification signal code carried in the first connection request is legal, the first main equipment corresponding to the first connection request is connected, the second main equipment corresponding to the second connection request can be continuously used as a backup, then in the normal interaction process of the first main equipment and the wearable massager, if the first main equipment is suddenly disconnected, the first main equipment can be switched to be connected with the second main equipment, and effective data interaction between the wearable massager and the main equipment is ensured.
In one embodiment, as shown in fig. 3, the step S102 includes:
s201, the wearable massage apparatus compares the equipment identification signal code carried in the first connection request with the standard equipment identification signal code stored by the wearable massage apparatus. If yes, go to step S202, and if not, go to step S203.
S202, determining that the equipment identification signal code carried in the first connection request is legal.
S203, determining that the equipment identification signal code carried in the first connection request is illegal.
For wearable massager need not with the help of external force in this embodiment, oneself just can judge the legitimacy of the equipment identification signal code that carries in the first connection request, be about to the equipment identification signal code that carries in the first connection request and self stored standard equipment identification signal code carry out the comparison, the equipment identification signal code that self stored here refers to the correct value of the equipment identification signal code of prestoring in wearable massager, if the comparison result is both unanimous, confirm that the equipment identification signal code that carries in the first connection request is legal, if both are inconsistent, confirm that the equipment identification signal code that carries in the first connection request is illegal.
Wearable massage appearance carries out the comparison through equipment identification signal code and the standard equipment identification signal code that carries in with first connection request in this embodiment, has improved the equipment identification signal code validity verification's that carries in the first connection request rate of accuracy.
In one embodiment, as shown in fig. 4, the step S201 includes:
and S301, the wearable massage instrument requests the cloud server of the wearable massage instrument to verify whether the equipment identification signal code carried in the first connection request is legal or not.
The embodiment is a process that the wearable massage apparatus verifies the validity of the device identification signal code carried in the first connection request through the cloud server. Specifically, the wearable massager sends a verification request to the cloud server, and sends the equipment identification signal code I carried in the received first connection request to the cloud server.
S302, the wearable massage instrument receives a verification result returned by the cloud server; the verification result includes that the equipment identification signal code carried in the first connection request is legal, or the equipment identification signal code carried in the first connection request is illegal.
After receiving the equipment identification signal code carried in the first connection request, the cloud server verifies the equipment identification signal code carried in the first connection request, and a verification result is obtained and returned to the wearable massage apparatus, wherein the verification result comprises that the equipment identification signal code carried in the first connection request is legal or that the equipment identification signal code carried in the first connection request is illegal.
In an embodiment, an implementation manner is provided for a cloud server to verify the validity of an equipment identification signal code carried in a first connection request, and specifically includes: the cloud server is determined according to a comparison result of the equipment identification signal code carried in the first connection request and an original equipment identification signal code of the wearable massage apparatus stored in the cloud server; the original equipment identification signal code is determined according to an equipment identification code which uniquely corresponds to the original equipment identification signal code.
In this embodiment, the device identification code represents the identification of the wearable massage apparatus, and the form of the device identification code may be a number, an alphabet, or a combination of the two, and this embodiment does not limit this, and it is different from the device identification signal code that needs to be noticed, optionally, the device identification code of the wearable massage apparatus is recorded on the wearable massage apparatus, and the device identification signal code of the wearable massage apparatus can be called from the cloud storage by the user of the main device through the device identification code of the wearable massage apparatus. Of course, the device identification code may also be obtained in other ways, which is not limited in this embodiment.
And the cloud server determines an original equipment identification signal code of the wearable massager according to the equipment identification code. Wherein the original device identification signal code refers to an original and official device identification signal code of the wearable massager stored in the cloud server. It can be understood that the original device identification signal code may be the same as or different from the standard device identification signal code stored in the wearable massage apparatus, and if different, it indicates that the device identification signal code of the wearable massage apparatus has been tampered during use.
For example, after the host device loads and displays a login interface of the cloud server, the user is required to input a device identification code, and the user inputs the device identification code, there are two situations, namely, the input device identification code is wrong, which indicates that the host device does not have the authority to establish a connection with the wearable massage apparatus, then the cloud server may interrupt the access of the host device to the cloud server, and optionally, the cloud server may feed back a response to the host device to indicate the access result. In another case, if the device identification code input by the user is correct, the user can normally log in the cloud server, and then the cloud server checks whether the original device identification signal code stored in the cloud server is consistent with the device identification signal code carried in the first connection request; and if the equipment identification signal codes are not consistent, the equipment identification signal codes carried in the first connection request are illegal. Like this, correspond through the equipment identification code and determine original equipment identification signal code, compare original equipment identification code and the equipment identification signal code that carries in the first connection request again, guaranteed the accuracy of the equipment identification signal code of the wearable massage appearance of affirmation.
In one embodiment, the method further comprises: wearable massage appearance receives the record instruction that cloud server sent, and the record instruction is used for instructing wearable massage appearance to store as illegal equipment identification signal code the equipment identification signal code that carries in the first connection request.
If the equipment identification signal code carried in the first connection request is illegal, the equipment identification signal code sent by the first main equipment corresponding to the first connection request is an illegal equipment identification signal code, then the cloud server can send the illegal equipment identification signal code to the wearable massage instrument, for example, the cloud server sends the communication module of the wearable massage instrument through the cloud communication module, in this way, the wearable massage instrument records the illegal equipment identification signal code in the wearable massage instrument comparator, the wearable massage instrument can receive the recording instruction sent by the cloud server, and the recording instruction is used for indicating the wearable massage instrument to store the equipment identification signal code carried in the first connection request as the illegal equipment identification signal code. Like this, when having the illegal equipment identification signal code of the same again and sending for wearable massage appearance, wearable massage appearance can directly refuse to correspond the main equipment and call the request of wearable massage appearance data, has improved the security of wearable massage appearance.
An embodiment in which the execution main body is a main device is explained below. It should be noted that, since the present application is directed to a scenario in which a plurality of master devices are provided, in an embodiment in which the master devices are execution masters, different steps are executed by different master devices, but since the functions of the master devices are identical and are all devices for controlling and operating the wearable massage apparatus, the operations executed by the different master devices are the same, which will be described in the following embodiments.
In one embodiment, as shown in fig. 5, the present application provides a method of connecting a wearable massage apparatus, the method comprising:
s401, a plurality of main devices send connection requests to the wearable massage instrument; wherein, carry an equipment identification signal code in every connection request, equipment identification signal code is used for verifying whether each main equipment has the authority of being connected with wearable massage appearance.
S402, if the equipment identification signal code carried in the first connection request which reaches the wearable massager at first is legal, the first main equipment corresponding to the first connection request receives a connection success response sent by the wearable massager.
S403, if the equipment identification signal code carried in the first connection request is illegal, receiving a connection success response sent by the wearable massage instrument by the second main equipment corresponding to the second connection request; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In this embodiment, it should be noted that, when sending a connection request to a wearable massager, each master device is sending, and when receiving a connection success response, different master devices are executing, that is, the connection request is the master device that is received by the wearable massager first, and if a device identification signal code carried in the connection request sent by the master device is legal, the master device that corresponds to the connection request received by the wearable massager first receives the connection success response; however, if the device identification signal code carried in the connection request sent by the wearable massage apparatus is illegal, the main device receiving the connection successful response is replaced by the carried device identification signal code which is legal, and the time for receiving the connection request by the wearable massage apparatus is later.
For the principle and implementation manner of each step in this embodiment are the same as the process of the embodiment executed by the main device, reference may be made to the description in the embodiment executed by the main device, and the repeated process is not described herein again.
In the connection method for the wearable massage apparatus provided in this embodiment, the plurality of master devices send connection requests to the wearable massage apparatus, and if the device identification signal code carried in the first connection request that reaches the wearable massage apparatus first is legal, the first master device corresponding to the first connection request will receive the connection success response sent by the wearable massage apparatus, but if the device identification signal code carried in the first connection request is illegal, the second master device corresponding to the second connection request that has a reception time later than the reception time of the first connection request and carries the legal device identification signal code will receive the connection success response sent by the wearable massage apparatus. According to the method, after the wearable massage instrument receives a plurality of connection requests, the legality of the equipment identification signal code carried in the first received connection request is detected, and under the condition that the equipment identification signal code carried in the first connection request is not legal, the second main equipment which is later than the receiving time of the first connection request and corresponds to the second connection request carrying the legal equipment identification signal code is selected to be connected, so that the condition that the intelligent equipment which receives the connection request firstly cannot be connected with the main equipment at the current stage when the safety verification of the intelligent equipment cannot pass is avoided, and the reliability of connection between the main equipment and the massage instrument is improved.
In one embodiment, as shown in fig. 6, the method further comprises:
s501, receiving a device identification code request of the wearable massage instrument, which is sent by a cloud server of the wearable massage instrument, by first main equipment; the equipment identification code represents the identity of the wearable massage apparatus.
S502, the first main device sends a device identification code of the wearable massage instrument to a cloud server; the equipment identification code is used for indicating the cloud server to determine an original equipment identification signal code of the wearable massager according to the equipment identification code, and determining the legality of the equipment identification signal code carried in the first connection request according to the comparison result of the original equipment identification signal code and the equipment identification signal code carried in the first connection request.
In this embodiment, the connection request is sent to the wearable massage apparatus by the first master device, and the validity of the device identification signal code carried in the first connection request sent by the first master device is verified.
The first master device receives a device identification code request sent by the cloud server, for example, the cloud server sends a login interface loading request to the first master device, and after the first master device loads a login interface of the cloud server according to the loading request, a user needing the first master device is prompted to input a device identification code of the wearable massager. For the description of the device identification code, reference may be made to the description in the foregoing embodiments, and details are not repeated here.
After the first main device sends the device identification code of the wearable massage instrument to the cloud server, the cloud server is instructed to determine the original device identification signal code of the wearable massage instrument according to the device identification code. Here, the cloud server determines the original device identification signal code of the wearable massager according to the device identification code, and determines a detailed process of validity of the device identification signal code carried in the first connection request according to a comparison result between the original device identification signal code and the device identification signal code carried in the first connection request, which is also referred to in the description of the foregoing embodiment and is not described herein again.
In one embodiment, the first master device receives a rejection response sent by the cloud server; the refusal response indicates that the equipment identification code is incorrect or the equipment identification signal code carried in the first connection request is illegal; or the first main device receives a legal response returned by the cloud server; the legitimate response is used to instruct the first master device to re-establish a connection with the wearable massager.
After the cloud server receives the device identification code, two conditions exist, namely the device identification code is wrong, the first main device does not have the authority of establishing connection with the wearable massager, then the cloud server can interrupt the access of the first main device to the cloud server, and the cloud server feeds back a rejection response to the first main device so that the device identification code is incorrect.
In another case, if the input device identification code is correct, the user can normally enter the cloud server, and then the cloud server checks whether the original device identification signal code stored in the cloud server is consistent with the device identification signal code carried in the first connection request; if the device identification signal codes carried in the first connection request are not legal, the cloud server also feeds back a refusal response to the first main device to indicate that the device identification signal codes carried in the first connection request are illegal. If the original equipment identification signal code is consistent with the equipment identification signal code carried in the first connection request, the equipment identification signal code carried in the first connection request is legal, and in this case, the cloud server returns a legal response; for the first master device, after receiving the legal response sent by the cloud server, the first master device can establish connection with the wearable massage apparatus again. In this embodiment, confirm equipment identification signal code through equipment identification code, guaranteed the accuracy of the equipment identification signal code of the wearable massage appearance of confirming.
If the device identification signal code carried in the connection request of the first master device is legal, but the first master device does not receive a connection success response sent by the wearable massage apparatus, the first master device may reestablish a connection with the wearable massage apparatus, and in one embodiment, the reestablishing a connection between the first master device and the wearable massage apparatus includes: the first main device repeatedly sends a device identification signal code to the wearable massager until a connection success response returned by the wearable massager is received; or the first main device sends a maintenance request to a service platform of the wearable massage apparatus, and establishes connection with the wearable massage apparatus according to a maintenance result of the service platform.
In this embodiment, the manner in which the first master device and the wearable massage apparatus reestablish the connection includes two manners, one is that the first master device repeatedly sends the device identification signal code to the wearable massage apparatus until receiving a connection success response returned by the wearable massage apparatus. In another mode, the first main device sends a maintenance request to the service platform to request background maintenance or manual service, and after maintenance, connection is established with the wearable massage instrument according to a maintenance result. Therefore, under the condition that the equipment identification signal code is legal, a new way is adopted to continue to be connected with the wearable massager, and the connection efficiency is improved.
After the main device is connected with the wearable massage apparatus, the main device and the wearable massage apparatus can normally perform data interaction, as shown in fig. 7, in an embodiment, the embodiment includes:
s601, the first main device or the second main device sends a data reading instruction to the wearable massage apparatus according to a preset period; the data reading instruction is used for indicating the wearable massage instrument to acquire the state data.
As the first master device or the second master device receives the connection success response, the step is that the first master device or the second master device sends a data reading instruction to the wearable massage apparatus, and the data reading instruction is used for indicating the wearable massage apparatus to acquire state data; optionally, the state data includes operation state data of the wearable massage apparatus, physiological characteristic information of the user, and environment data, for example, the physiological characteristic information of the user includes heartbeat, blood pressure, body temperature, skin impedance, electrocardiogram, position information of the user, and the like of the user respectively measured by sensors, and may also be step number measured by a gyroscope sensor, and the like, the environment data includes whether the wearable massage apparatus is currently located indoors or outdoors, or air humidity, and the like, and the operation state data of the massage apparatus includes current operation parameters, operation time, and the like of the wearable massage apparatus; the present embodiment does not limit the state data to be collected.
The wearable massager can acquire state data through a sensor arranged in the massager, for example, environmental data can be acquired through an environmental sensor, such as a light sensor, for example, light and shade, and a humidity sensor acquires humidity in the air; for example, a vibration sensor may be used to collect the heartbeat of the user, and a locatable sensor may be used to collect the position information, which is not limited in this embodiment.
When the first main device or the second main device sends a data reading instruction to the wearable massage instrument, the data reading instruction is sent to the wearable massage instrument in a preset cycle mode, so that real-time state data of the wearable massage instrument can be monitored.
And S602, the first main device or the second main device receives state data returned by the wearable massage apparatus.
Optionally, if the first main device or the second main device does not receive the status data returned by the wearable massage apparatus over a preset time period, it is determined that the wearable massage apparatus is offline.
The first main device or the second main device receives state data returned by the wearable massage instrument, or if the state data returned by the wearable massage instrument is not received in a preset time period, the first main device or the second main device determines that the wearable massage instrument is offline. The preset time period may be determined according to actual conditions, for example, 15s, 30s, 1min, and the like, which is not limited in this embodiment.
In this embodiment, after the first main device or the second main device is connected with the wearable massage apparatus, data interaction between the first main device and the wearable massage apparatus can be performed, so that effective communication between the main device and the wearable massage apparatus is realized.
Referring to the interaction diagram shown in fig. 8, the present application further provides a connection method of a wearable massage apparatus, and the sequence of the steps in this embodiment is only an example, and may be adjusted in practical applications. The embodiment comprises the following steps:
s1, a plurality of main devices send connection requests to the wearable massage apparatus;
s2, the wearable massage apparatus requests the cloud server to verify whether the equipment identification signal code carried in the first connection request is legal or not;
s3, the cloud server sends a device identification code request of the wearable massage apparatus to the first main device corresponding to the first connection request;
s4, the first main device sends the device identification code of the wearable massage instrument to the cloud server;
s5, the cloud server determines an original equipment identification signal code of the wearable massage instrument according to the equipment identification code, compares whether the original equipment identification signal code is consistent with the equipment identification signal code, and verifies the validity of the equipment identification signal code according to the comparison result;
s6, the cloud server sends the verification result to the wearable massage instrument;
s7, if the device identification signal code carried in the first connection request is legal, the wearable massage apparatus sends a connection success response to the first main device corresponding to the first connection request,
s8, if the equipment identification signal code carried in the first connection request is illegal, the wearable massage instrument sends a connection success response to the second main equipment corresponding to the second connection request;
s9, the cloud server determines that the equipment identification signal code is an illegal equipment identification signal code and sends the illegal equipment identification signal code to the wearable massage instrument;
s10, recording illegal codes by the wearable massage instrument;
s11, the first main device or the second main device sends a data reading instruction to the wearable massage apparatus according to a preset period;
s12, sending the state data returned by the wearable massage instrument to the first main device or the second main device;
and S13, if the first main device or the second main device does not receive the state data returned by the wearable massage apparatus after exceeding the preset time, determining that the wearable massage apparatus is off-line.
The implementation principle and technical effect of the steps in the connection method of the wearable massage apparatus provided by the above embodiment are similar to those of the previous connection method of the wearable massage apparatus, and are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 9, there is provided a connection device of a wearable massage apparatus, including: a connection request receiving module 10, a validity detecting module 11 and a connection success module 12, wherein:
a connection request receiving module 10, configured to receive connection requests sent by multiple master devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
a validity detection module 11, configured to detect whether an equipment identification signal code carried in the first received connection request is valid;
a connection success module 12, configured to send a connection success response to the first master device corresponding to the first connection request if the device identification signal code carried in the first connection request is legal; if the equipment identification signal code carried in the first connection request is illegal, sending a connection success response to second main equipment corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In one embodiment, the validity detecting module 11 includes:
the comparison unit is used for comparing the equipment identification signal code carried in the first connection request with a standard equipment identification signal code stored in the comparison unit;
the determining unit is used for determining that the equipment identification signal code carried in the first connection request is legal if the equipment identification signal code carried in the first connection request is consistent with the standard equipment identification signal code; and if the equipment identification signal code carried in the first connection request is not consistent with the standard equipment identification signal code, determining that the equipment identification signal code carried in the first connection request is illegal.
In one embodiment, the comparison unit is specifically configured to request the cloud server of the wearable massage apparatus to verify whether the device identification signal code carried in the first connection request is legal; receiving a verification result returned by the cloud server; the verification result includes that the equipment identification signal code carried in the first connection request is legal, or the equipment identification signal code carried in the first connection request is illegal.
In one embodiment, the cloud server is determined according to a comparison result between the device identification signal code carried in the first connection request and an original device identification signal code of the wearable massage apparatus stored in the cloud server; the original equipment identification signal code is determined according to an equipment identification code which uniquely corresponds to the original equipment identification signal code.
In one embodiment, the apparatus further comprises: and the recording receiving module is used for receiving a recording instruction sent by the cloud server, and the recording instruction is used for indicating the wearable massage apparatus to store the equipment identification signal code carried in the first connection request as an illegal equipment identification signal code.
In one embodiment, the present application provides a wearable massager attachment, comprising:
the connection request sending module is used for sending a connection request to the wearable massage instrument; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
the first connection request corresponding module is used for receiving a connection success response sent by the wearable massage instrument if an equipment identification signal code carried in a first connection request which firstly reaches the wearable massage instrument is legal;
the second connection request corresponding module is used for receiving a connection success response sent by the wearable massage instrument if the equipment identification signal code carried in the first connection request is illegal; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
In one embodiment, the apparatus further comprises:
the identification request receiving module is used for receiving a device identification code request of the wearable massage apparatus, which is sent by a cloud server of the wearable massage apparatus; the equipment identification code represents an identity of the wearable massage apparatus;
the identification sending module is used for sending the equipment identification code of the wearable massage instrument to the cloud server;
the equipment identification code is used for indicating the cloud server to determine an original equipment identification signal code of the wearable massager according to the equipment identification code, and determining the legality of the equipment identification signal code carried in the first connection request according to the comparison result of the original equipment identification signal code and the equipment identification signal code carried in the first connection request.
In one embodiment, the apparatus comprises: the response receiving module is used for receiving a refusal response sent by the cloud server; the refusal response indicates that the equipment identification code is incorrect or the equipment identification signal code carried in the first connection request is illegal; or receiving a legal response returned by the cloud server; the legitimate response is used to instruct the first master device to re-establish a connection with the wearable massager.
In one embodiment, the response receiving module includes a reconnection unit, where the reconnection unit is configured to repeatedly send the device identification signal code to the wearable massage apparatus by the first master device until a connection success response returned by the wearable massage apparatus is received; or the first main device sends a maintenance request to a service platform of the wearable massage apparatus, and establishes connection with the wearable massage apparatus according to a maintenance result of the service platform.
In one embodiment, the apparatus further comprises:
the command sending module is used for sending a data reading command to the wearable massage instrument according to a preset period; the data reading instruction is used for indicating the wearable massage instrument to acquire state data;
and the data receiving module is used for receiving the state data returned by the wearable massage instrument.
In one embodiment, the apparatus further comprises: and the offline determining module is used for determining that the wearable massage instrument is offline if the state data returned by the wearable massage instrument is not received after the preset time length is exceeded.
The implementation principle and technical effect of the connection device of all wearable massage apparatuses provided by the above embodiments are similar to those of the connection method embodiments of the wearable massage apparatuses, and are not described herein again.
For specific limitations of the connection device of the wearable massage apparatus, reference may be made to the above limitations of the connection method of the wearable massage apparatus, which are not described herein again. The modules in the connection device of the wearable massage apparatus can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The Communication interface of the computer device is used for performing wired or wireless Communication with an external terminal, and the wireless Communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a method of connecting a wearable massager. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the above-described architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the present solution, and does not constitute a limitation on the computing devices to which the present solution applies, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving connection requests sent by a plurality of main devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
detecting whether the equipment identification signal code carried in the first received connection request is legal or not;
if the equipment identification signal code carried in the first connection request is legal, sending a connection success response to the first main equipment corresponding to the first connection request;
if the equipment identification signal code carried in the first connection request is illegal, sending a connection success response to second main equipment corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
Alternatively, the processor implements the following steps when executing the computer program:
a connection request sent to the wearable massager; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
if the equipment identification signal code carried in the first connection request which reaches the wearable massager at first is legal, the first main equipment corresponding to the first connection request receives a connection success response sent by the wearable massager;
if the equipment identification signal code carried in the first connection request is illegal, the second main equipment corresponding to the second connection request receives a connection success response sent by the wearable massage instrument; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving connection requests sent by a plurality of main devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
detecting whether the equipment identification signal code carried in the first received connection request is legal or not;
if the equipment identification signal code carried in the first connection request is legal, sending a connection success response to the first main equipment corresponding to the first connection request;
if the equipment identification signal code carried in the first connection request is illegal, sending a connection success response to second main equipment corresponding to the second connection request; the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
Alternatively, the computer program when executed by a processor implements the steps of:
a connection request sent to the wearable massager; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the right to be connected with the wearable massage instrument;
if the equipment identification signal code carried in the first connection request which reaches the wearable massager at first is legal, the first main equipment corresponding to the first connection request receives a connection success response sent by the wearable massager;
if the equipment identification signal code carried in the first connection request is illegal, the second main equipment corresponding to the second connection request receives a connection success response sent by the wearable massage instrument; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A method of connecting a wearable massager, the method comprising:
the wearable massage device receives connection requests sent by a plurality of main devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the authority of being connected with the wearable massage instrument;
the wearable massager detects whether the equipment identification signal code carried in the first received connection request is legal or not;
if the equipment identification signal code carried in the first connection request is legal, the wearable massager sends a connection success response to the first main equipment corresponding to the first connection request;
if the equipment identification signal code carried in the first connection request is illegal, the wearable massager sends the connection success response to the second main equipment corresponding to the second connection request; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
2. The method of claim 1, wherein the wearable massager detects whether the device identification number carried in the first received connection request is legal, and comprises:
the wearable massager compares the equipment identification signal code carried in the first connection request with a standard equipment identification signal code stored in the wearable massager;
if the equipment identification signal code carried in the first connection request is consistent with the standard equipment identification signal code, determining that the equipment identification signal code carried in the first connection request is legal;
and if the equipment identification signal code carried in the first connection request is inconsistent with the standard equipment identification signal code, determining that the equipment identification signal code carried in the first connection request is illegal.
3. The method of claim 1, wherein the wearable massager detects whether the device identification number carried in the first received connection request is legal, and comprises:
the wearable massager requests a cloud server of the wearable massager to verify whether the equipment identification signal code carried in the first connection request is legal or not;
the wearable massager receives a verification result returned by the cloud server; the verification result includes that the equipment identification signal code carried in the first connection request is legal, or the equipment identification signal code carried in the first connection request is illegal.
4. The method according to claim 3, wherein the cloud server is determined according to a comparison result between a device identification signal code carried in the first connection request and an original device identification signal code of the wearable massager stored in the cloud server; the original equipment identification signal code is determined according to an equipment identification code which uniquely corresponds to the original equipment identification signal code.
5. The method according to claim 3 or 4, wherein after determining that the device identification signal code carried in the first connection request is illegal, the method further comprises:
and the wearable massager receives a recording instruction sent by the cloud server, wherein the recording instruction is used for indicating the wearable massager to store the equipment identification signal code carried in the first connection request as an illegal equipment identification signal code.
6. A method of connecting a wearable massager, the method comprising:
connection requests sent by the plurality of main devices to the wearable massage apparatus; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the authority of being connected with the wearable massage instrument;
if the equipment identification signal code carried in the first connection request which reaches the wearable massager at first is legal, the first main equipment corresponding to the first connection request receives a connection success response sent by the wearable massager;
if the equipment identification signal code carried in the first connection request is illegal, the second main equipment corresponding to the second connection request receives a connection success response sent by the wearable massage instrument; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
7. The method of claim 6, wherein before the first master device corresponding to the first connection request receives a connection success response sent by the wearable massage apparatus, the method further comprises:
the first master device receives a device identification code request of the wearable massage apparatus, which is sent by a cloud server of the wearable massage apparatus; the equipment identification code represents an identity of the wearable massage apparatus;
the first master device sends a device identification code of the wearable massager to the cloud server;
the equipment identification code is used for indicating the cloud server to determine an original equipment identification signal code of the wearable massager according to the equipment identification code, and determining the legality of the equipment identification signal code carried in the first connection request according to a comparison result of the original equipment identification signal code and the equipment identification signal code carried in the first connection request.
8. The method of claim 7, wherein after the first master device sends the device identification code to the cloud server, the method comprises:
the first master device receives a refusal response sent by the cloud server; the rejection response indicates that the equipment identification code is incorrect or the equipment identification signal code carried in the first connection request is illegal;
or, the first master device receives a legal response returned by the cloud server; the legal response is used for instructing the first master device to establish connection with the wearable massager again.
9. The method of claim 8, wherein the first master device reestablishes a connection with the wearable massager, comprising:
the first main device repeatedly sends the device identification signal code to the wearable massager until a connection success response returned by the wearable massager is received; alternatively, the first and second electrodes may be,
and the first main equipment sends a maintenance request to a service platform of the wearable massage instrument and establishes connection with the wearable massage instrument according to a maintenance result of the service platform.
10. The method of any one of claims 6-9, wherein after the first master device or the second master device receives a connection success response sent by the wearable massager, the method further comprises:
the first main equipment or the second main equipment sends a data reading instruction to the wearable massager according to a preset period; the data reading instruction is used for indicating the wearable massage instrument to acquire state data;
the first main device or the second main device receives state data returned by the wearable massage apparatus.
11. The method of claim 10, wherein after the first master device or the second master device sends a data reading instruction to the wearable massager according to a preset period, the method further comprises:
and if the first main equipment or the second main equipment does not receive the state data returned by the wearable massage instrument after exceeding the preset time, determining that the wearable massage instrument is off-line.
12. A connection device of a wearable massage apparatus, the device comprising:
a connection request receiving module, configured to receive connection requests sent by multiple master devices; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the authority of being connected with the wearable massage instrument;
the validity detection module is used for detecting whether the equipment identification signal code carried in the first received connection request is valid;
a connection success module, configured to send a connection success response to the first master device corresponding to the first connection request if the device identification signal code carried in the first connection request is legal; if the equipment identification signal code carried in the first connection request is illegal, sending a connection success response to second main equipment corresponding to a second connection request; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
13. A connection device of a wearable massage apparatus, the device comprising:
the connection request sending module is used for sending a connection request to the wearable massage instrument; each connection request carries an equipment identification signal code which is used for verifying whether each main equipment has the authority of being connected with the wearable massage instrument;
the first connection request corresponding module is used for receiving a connection success response sent by the wearable massager if an equipment identification signal code carried in a first connection request which reaches the wearable massager at first is legal;
the second connection request corresponding module is used for receiving a connection success response sent by the wearable massage instrument if the equipment identification signal code carried in the first connection request is illegal; and the receiving time of the second connection request is later than that of the first connection request and carries a legal equipment identification signal code.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 11 when executing the computer program.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 11.
CN202010208577.7A 2020-03-23 2020-03-23 Connection method and device of wearable massage instrument, computer equipment and storage medium Pending CN113438261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010208577.7A CN113438261A (en) 2020-03-23 2020-03-23 Connection method and device of wearable massage instrument, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010208577.7A CN113438261A (en) 2020-03-23 2020-03-23 Connection method and device of wearable massage instrument, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113438261A true CN113438261A (en) 2021-09-24

Family

ID=77752583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010208577.7A Pending CN113438261A (en) 2020-03-23 2020-03-23 Connection method and device of wearable massage instrument, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113438261A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445850A (en) * 2016-11-24 2017-02-22 北京爱接力科技发展有限公司 Connection method and device for intelligent hardware
CN107221982A (en) * 2017-07-05 2017-09-29 佛山市盈智轩科技有限公司 A kind of shared power supply, power supply shared system and charging method
CN108833342A (en) * 2018-04-27 2018-11-16 深圳市网心科技有限公司 device authentication method, authentication server and computer readable storage medium
CN108959167A (en) * 2018-07-03 2018-12-07 威创集团股份有限公司 A kind of seat system management method, device and seat system
CN109947081A (en) * 2019-03-25 2019-06-28 钛马信息网络技术有限公司 Net connection control method for vehicle and device
CN110139261A (en) * 2019-06-06 2019-08-16 深圳诺康医疗设备股份有限公司 Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445850A (en) * 2016-11-24 2017-02-22 北京爱接力科技发展有限公司 Connection method and device for intelligent hardware
CN107221982A (en) * 2017-07-05 2017-09-29 佛山市盈智轩科技有限公司 A kind of shared power supply, power supply shared system and charging method
CN108833342A (en) * 2018-04-27 2018-11-16 深圳市网心科技有限公司 device authentication method, authentication server and computer readable storage medium
CN108959167A (en) * 2018-07-03 2018-12-07 威创集团股份有限公司 A kind of seat system management method, device and seat system
CN109947081A (en) * 2019-03-25 2019-06-28 钛马信息网络技术有限公司 Net connection control method for vehicle and device
CN110139261A (en) * 2019-06-06 2019-08-16 深圳诺康医疗设备股份有限公司 Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly

Similar Documents

Publication Publication Date Title
US11038879B2 (en) Identity authentication method and apparatus, and user equipment
KR102598613B1 (en) System and method for providing vehicle information based on personal certification and vehicle certification
US11716774B2 (en) Device pairing system and method, and device communication control system and method
US9635018B2 (en) User identity verification method and system, password protection apparatus and storage medium
US20160241548A1 (en) Electronic device and method for processing secure information
KR20180072389A (en) Method for providing content corresponding to an accessory and electronic device thereof
KR20180041532A (en) Method and apparatus for connecting between electronic devices
TW201516914A (en) Method and related apparatus for safety payment and system thereof
US11237636B2 (en) System and method for network configuration and behavior control by proximity enabled devices
KR102544488B1 (en) Electronic apparatus and method for performing authentication
CN105337974A (en) Account authorization method, account login method, account authorization device and client end
WO2017076051A1 (en) Method and apparatus for acquiring superuser permission
US20160294835A1 (en) Initiating a Secure Action Via Physical Manipulation
EP3312759A1 (en) Secure element (se), a method of operating the se, and an electronic device including the se
EP3021250B1 (en) Electronic device and method for suggesting response manual in occurrence of denial
US11934247B2 (en) Information processing apparatus and information processing method
CN107346392B (en) Terminal system change identification method and device and readable storage medium
CN110958234B (en) Application login control method and device and storage medium
CN106656985A (en) Backup account login method, device and system
KR20170098112A (en) Electronic apparatus and operating method thereof
CN113438264A (en) Wearable massage instrument connection method and device, computer equipment and storage medium
WO2016187966A1 (en) Terminal and method for protecting data security of terminal
CN113438261A (en) Connection method and device of wearable massage instrument, computer equipment and storage medium
JP2023053362A (en) Management system, control device, management method and program
CN113438260B (en) Connection method and device of wearable massage instrument, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication