CN113438265B - Data transmission method, system and device of wearable massager and computer equipment - Google Patents

Data transmission method, system and device of wearable massager and computer equipment Download PDF

Info

Publication number
CN113438265B
CN113438265B CN202010209635.8A CN202010209635A CN113438265B CN 113438265 B CN113438265 B CN 113438265B CN 202010209635 A CN202010209635 A CN 202010209635A CN 113438265 B CN113438265 B CN 113438265B
Authority
CN
China
Prior art keywords
wearable
transmission
wearable massage
data
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010209635.8A
Other languages
Chinese (zh)
Other versions
CN113438265A (en
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 CN202010209635.8A priority Critical patent/CN113438265B/en
Publication of CN113438265A publication Critical patent/CN113438265A/en
Application granted granted Critical
Publication of CN113438265B publication Critical patent/CN113438265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Epidemiology (AREA)
  • Pain & Pain Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Rehabilitation Therapy (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Massaging Devices (AREA)

Abstract

The application relates to a data transmission method, a system, a device and computer equipment of a wearable massager. The method comprises the following steps: after receiving a data reading instruction sent by a main device, the wearable massage device generates a data packet from acquired body measurement data and a response instruction corresponding to the data reading instruction, detects the transmission rate between the wearable massage device and each receiving device, determines a target receiving device according to the transmission rate and the transmission rate requirements between each receiving device and the transmission priority sequence of the wearable massage device and each receiving device, and sends the data packet to the target receiving device for storage. In the method, the preset transmission strategy characterizes the transmission priority sequence, so that when the wearable massage device transmits the data packets to different target receiving devices according to the transmission rate and the preset transmission strategy, the transmission paths are reasonably distributed, the multiplexing transmission of the data packets of the wearable massage device is realized, and the transmission efficiency of the data packets of the wearable massage device is improved.

Description

Data transmission method, system and device of wearable massager and computer equipment
Technical Field
The application relates to the technical field of massage apparatuses, in particular to a data transmission method, a system, a device and computer equipment of a wearable massage apparatus.
Background
With the development of the internet, more and more intelligent electronic devices are in life of people. In the medical care industry, intelligent electronic equipment, such as an intelligent massage instrument, can realize that the intelligent electronic equipment is controlled to be started, stopped and closed through a mobile terminal and the application of a functional module, meanwhile, the intelligent electronic equipment can also communicate with the mobile terminal, and the body measurement data is sent to the mobile terminal by collecting some basic body measurement data of a user so that the user can know the change condition of the body measurement data in the experience process and provide high-quality service for the user.
Taking an intelligent massage instrument as an example, the intelligent massage instrument can collect some basic body measurement data of a user, such as data of heartbeat frequency, skin information, use duration of the user and the like, and send the collected data to a mobile terminal, such as a mobile phone or other intelligent wearable equipment. Generally, the data transmission mode is that the intelligent massage instrument sends collected data to the mobile terminal, and the mobile terminal stores the data in the cloud platform memory.
In the prior art, the data acquired by the intelligent electronic device needs to answer the reading instruction of the mobile terminal at all times, and the mobile terminal uploads the data packet to the cloud platform memory after receiving the answer. When a plurality of intelligent massagers exist or generate a plurality of data packets, the data transmission mode occupies a large amount of data transmission resources, and transmission line congestion is easy to cause, so that the transmission efficiency is lower.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a data transmission method, a system, a device and a computer device of the wearable massager.
In a first aspect, a data transmission method of a wearable massager is provided, the method comprising:
after receiving a data reading instruction sent by the main equipment, the wearable massage instrument generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction;
the wearable massage device detects the transmission rate between the wearable massage device and each receiving device;
the wearable massage device determines target receiving equipment according to the transmission rate and a preset transmission strategy; the transmission strategy comprises the transmission rate requirement between the wearable massage device and each receiving device and the transmission priority order of the wearable massage device and each receiving device;
The wearable massage device sends the data packet to the target receiving device for storage.
In one embodiment, the determining, by the wearable massager, the target receiving device according to the transmission rate and the preset transmission policy includes:
the wearable massage device determines a first receiving device according to the transmission priority sequence of the wearable massage device and each receiving device; the transmission priority of the wearable massager and the first receiving device is highest;
the wearable massage device judges whether the transmission rate between the wearable massage device and the first receiving device meets the transmission rate requirement of the wearable massage device and the first receiving device;
if so, the wearable massager determines the first receiving device as a target receiving device.
In one embodiment, the method further comprises:
if the transmission priority order of the wearable massage device and each receiving device is not met, the wearable massage device determines a second receiving device according to the transmission priority order of the wearable massage device and each receiving device; the transmission priority of the wearable massage instrument and the second receiving device is smaller than the transmission priority of the wearable massage instrument and the first receiving device and larger than the transmission priority of the wearable massage instrument and the other receiving devices;
the wearable massage device judges whether the transmission rate between the wearable massage device and the second receiving device meets the transmission rate requirement of the wearable massage device and the second receiving device;
If so, the wearable massager determines the second receiving device as the target receiving device.
In one embodiment, the method further comprises:
if the transmission rates between the wearable massage device and all the receiving devices do not meet the corresponding transmission rate requirements, the wearable massage device stores the data packet in a memory of the wearable massage device;
the wearable massage device detects the transmission rate between the wearable massage device and each receiving device, and determines a target receiving device according to the transmission rate and the transmission strategy;
the data packets in the memory of the wearable massager are sent to the target receiving device.
In one embodiment, after the data packet in the memory of the wearable massage apparatus is sent to the target receiving device, the method further includes:
the wearable massage device deletes the data packet from the memory of the wearable massage device.
In one embodiment, the receiving device is a cloud platform device or a master device;
the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
In a second aspect, a data transmission method of a wearable massager is provided, the method comprising:
the main equipment sends a data reading instruction to the wearable massager; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction;
the main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager.
In one embodiment, the receiving device is a cloud platform device or a master device;
the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
In one embodiment, the detecting a response instruction corresponding to the data reading instruction of the wearable massager includes:
in a preset time period, if a response instruction of a data reading request sent by the wearable massage instrument is received, the main equipment stores a data packet corresponding to the response instruction into a local memory;
And in a preset time period, if a response instruction of a data reading request sent by the wearable massager is not received, the main equipment inquires whether a data packet corresponding to the response instruction in the cloud platform equipment is complete.
In one embodiment, the master device queries whether a data packet corresponding to the response instruction in the cloud platform device is complete, including:
the method comprises the steps that a main device obtains a data packet corresponding to a response instruction in cloud platform equipment;
the master device inquires whether the time nodes of the data packets corresponding to the response instructions are continuous or not;
if the time nodes of the data packets are continuous, the main equipment determines that the data packets corresponding to the response instructions are complete, and the wearable massage instrument is normally or normally offline;
if the data packet time nodes are discontinuous, the main equipment determines that the data packet corresponding to the response instruction is incomplete, the wearable massager is offline abnormally, and abnormal information is displayed on a display interface of the main equipment.
In one embodiment, the method further comprises:
and the main equipment sends the data packet to the cloud platform equipment according to a preset time period.
In a third aspect, there is provided a data transmission system for a wearable massage device, the system comprising: the wearable massage device comprises a wearable massage device, a main device and a cloud platform device, wherein the wearable massage device, the main device and the cloud platform device are connected in a two-by-two communication mode;
The wearable massage device is used for executing the method of the first aspect;
the master device is configured to perform the method according to the second aspect.
In a fourth aspect, there is provided a data transmission device for a wearable massage device, the device comprising:
the receiving module is used for generating a data packet from the acquired body measurement data and a response instruction corresponding to the data reading instruction after the wearable massage instrument receives the data reading instruction sent by the main equipment;
the detection module is used for detecting the transmission rate between the wearable massage device and each receiving device by the wearable massage device;
the determining module is used for determining target receiving equipment by the wearable massager according to the transmission rate and a preset transmission strategy; the transmission strategy comprises the transmission rate requirement between the wearable massage device and each receiving device and the transmission priority order of the wearable massage device and each receiving device;
and the sending module is used for sending the data packet to target receiving equipment by the wearable massage instrument for storage.
In a fifth aspect, there is provided a data transmission device for a wearable massage device, the device comprising:
the main sending module is used for sending a data reading instruction to the wearable massage device by the main equipment; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction;
The detection module is used for detecting a response instruction corresponding to the data reading instruction of the wearable massager by the main equipment.
In a sixth aspect, the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the data transmission method of the wearable massager provided by any one of the embodiments of the first and second aspects when the processor executes the computer program.
In a seventh aspect, the present application provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the data transmission method of the wearable massage device provided by any one of the embodiments of the first and second aspects.
According to the data transmission method, the system, the device and the computer equipment of the wearable massage instrument, after the wearable massage instrument receives the data reading instruction sent by the main equipment, the data packet is generated by the acquired body measurement data and the response instruction corresponding to the data reading instruction, the transmission rate between the wearable massage instrument and each receiving equipment is detected, the target receiving equipment is determined according to the transmission rate and the transmission rate requirement between each receiving equipment and the transmission priority sequence of the wearable massage instrument and each receiving equipment, and the data packet is sent to the target receiving equipment for storage. In the method, the preset transmission strategy characterizes the transmission priority sequence, so that when the wearable massage device transmits the data packets to different target receiving devices according to the transmission rate and the preset transmission strategy, the transmission paths are reasonably distributed, the multiplexing transmission of the data packets of the wearable massage device is realized, the transmission efficiency of the data packets of the wearable massage device is improved, and the maximum utilization of the bandwidth performance is realized.
Drawings
FIG. 1 is an application environment diagram of a data transmission method of a wearable massager in one embodiment;
FIG. 2 is a flow chart of a method of data transmission of a wearable massage device in one embodiment;
fig. 3 is a flow chart of a data transmission method of the wearable massager in another embodiment;
fig. 4 is a flow chart of a data transmission method of the wearable massager in another embodiment;
FIG. 5 is a flow chart of a method of data transmission of a wearable massage device according to another embodiment;
FIG. 6 is a flow chart of a method of data transmission of a wearable massage device according to another embodiment;
fig. 7 is a flowchart of a data transmission method of the wearable massager in another embodiment;
fig. 8 is a flow chart of a data transmission method of the wearable massager in another embodiment;
fig. 9 is a flowchart of a data transmission method of the wearable massager in another embodiment;
FIG. 10 is a block diagram of a data transmission device of the wearable massage device in one embodiment;
FIG. 11 is a block diagram of a data transmission device of the wearable massage device in one embodiment;
FIG. 12 is a block diagram of a data transmission device of the wearable massage device in one embodiment;
FIG. 13 is a block diagram of a data transmission device of the wearable massage device in one embodiment;
FIG. 14 is a block diagram of a data transmission device of the wearable massage device in one embodiment;
fig. 15 is an internal structural view of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The data transmission method of the wearable massager can be applied to an application environment shown in fig. 1. The wearable massager 101, the main device 102 and the cloud platform device 103 are connected in a two-by-two communication mode. After the wearable massage device 101 receives the data reading instruction sent by the main device 102, a data packet is generated by the acquired body measurement data and a response instruction corresponding to the data reading instruction, the transmission rate between the wearable massage device 101 and the main device 102 or the cloud platform device 103 is detected, and a target receiving device is determined according to the transmission rate, the transmission rate requirement between the wearable massage device 101 and the main device 102 or the cloud platform device 103, and the transmission priority order between the wearable massage device 101 and the main device 102 or the cloud platform device 103, so that the wearable massage device 101 sends the data packet to the target receiving device for storage. The wearable massager 101 is an intelligent wearable massager with at least a communication function, a storage function, a data acquisition function and a control function; the main device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and other mobile or fixed terminals, where the main device 102 has at least a communication function, a control function, and a storage function; the cloud platform device 103 may be a server cluster formed by a plurality of servers or an independent server, and the cloud platform device 103 has at least a communication function and a storage function.
The following will specifically describe the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by means of examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the data transmission method of the wearable massage apparatus provided in the embodiments of fig. 2 to 5 of the present application, the execution main body is the wearable massage apparatus 101, and may also be a data transmission device of the wearable massage apparatus, where the data transmission device of the wearable massage apparatus may be part or all of the wearable massage apparatus 101 in a manner of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is the wearable massage machine 101 will be described as an example.
In one embodiment, as shown in fig. 2, a data transmission method of a wearable massage device is provided, and in particular, the data transmission method relates to a process that after receiving a data reading instruction sent by a main device, the wearable massage device generates a data packet according to a transmission rate and a preset transmission policy by using collected body measurement data and a response instruction corresponding to the data reading instruction, and sends the data packet to a target receiving device for storage, and the method includes the following steps:
S201, after receiving a data reading instruction sent by the main equipment, the wearable massage instrument generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction.
The body measurement data comprise electrocardiograph data, skin information, information of using time length, temperature, humidity, pressure and the like of a user, and the wearable massage instrument can call a data acquisition module of the wearable massage instrument to acquire corresponding body measurement data through a built-in sensor of a corresponding type.
Optionally, before the wearable massage device receives the data reading instruction sent by the main device, the wearable massage device may also receive a connection request sent by the main device, that is, after the wearable massage device establishes a connection with the main device, transmission of the corresponding instruction or transmission of the data packet may be performed. In this embodiment, the wearable massager and the main device may establish wireless connection by establishing WiFi, bluetooth, local area network, or the like.
Preferably, the data reading instruction sent by the main device may also carry time information corresponding to the instruction; when the wearable massage device receives a data reading instruction carrying time information, the self time can be corrected according to the time information, so that the formed data packet has a unique time stamp corresponding to the data reading instruction. Therefore, the data packet generated by the wearable massage device at least comprises various body measurement data acquired by the data acquisition module, a response instruction corresponding to the data reading instruction and time information corresponding to the current data packet.
In this embodiment, the wearable massage device receives a connection request sent by the main device, when the wearable massage device and the main device establish a connection request, which indicates that the wearable massage device performs a normal operation state, at this time, the wearable massage device may perform collection of body measurement data of a user, and in the collection process or after collection, the wearable massage device receives a data reading instruction sent by the main device, where the data reading instruction includes corresponding time information, and since the time information has uniqueness, the time information may be used as a unique identifier of a data packet, and the wearable massage device fuses the time information, the collected body measurement data and a corresponding response instruction generated to the data reading instruction to form a data packet corresponding to the current data reading instruction, which is not limited in this embodiment.
S202, the wearable massager detects the transmission rate between the wearable massager and each receiving device.
Each receiving device comprises a terminal device or a server device with a data packet storage function, such as a main device and a cloud platform device.
In this embodiment, the transmission rate requirements between the wearable massage device and each receiving device are different, and before the receiving device is selected, the wearable massage device may determine the corresponding receiving device according to the transmission rate and the transmission policy by detecting and acquiring the transmission rate between the wearable massage device and each receiving device, so as to complete the transmission of the data packet.
S203, the wearable massager determines target receiving equipment according to the transmission rate and a preset transmission strategy; the transmission policy includes a transmission rate requirement between the wearable massage device and each receiving device, and a transmission priority order of the wearable massage device and each receiving device.
The transmission strategy comprises the transmission rate requirement of the wearable massager and the main equipment and the transmission priority sequence of the wearable massager and the main equipment; the transmission rate requirement of the wearable massager and the cloud platform equipment and the transmission priority order of the wearable massager and the cloud platform equipment; if there are other devices for data storage, the transmission policy may also include transmission rate requirements with other devices and transmission priority order.
In this embodiment, after the wearable massager detects and obtains the transmission rate of each receiving device, the wearable massager can detect whether the data transmission rate of the wearable massager connected with the cloud platform device meets the corresponding transmission requirement, and if so, the wearable massager determines to target the cloud platform device to the receiving device; if the data transmission rate of the connection between the wearable massage instrument and the cloud platform device does not meet the corresponding transmission rate requirement, the wearable massage instrument can then detect whether the data transmission rate of the connection between the wearable massage instrument and the main device meets the corresponding rate transmission requirement, and if so, the wearable massage instrument determines that the main device is a target receiving device; if the data transmission rate of the connection between the wearable massage instrument and the main equipment does not meet the corresponding rate transmission requirement, the wearable massage instrument determines the self memory as the target storage equipment.
And S204, the wearable massage instrument sends the data packet to target receiving equipment for storage.
In this embodiment, the wearable massager may invoke its own communication module to send the data packet to the target receiving device, so that the target receiving device stores the data packet. Optionally, the target receiving device may further store the data packets in time sequence according to time information carried in the data packets, when receiving and storing a plurality of data packets for a period of time, a function of querying according to time information corresponding to each data packet may be implemented, preferably, each data packet is stored in the target receiving device according to the time information, and the target receiving device may further detect whether the data packet is completed or not and whether there is a packet loss according to continuity of the time information, which is not limited in this embodiment.
In the data transmission method of the wearable massage device, after the wearable massage device receives the data reading instruction sent by the main device, the data packet is generated by the collected body measurement data and the response instruction corresponding to the data reading instruction, the transmission rate between the wearable massage device and each receiving device is detected, the target receiving device is determined according to the transmission rate and the transmission rate requirement between each receiving device and the transmission priority sequence of the wearable massage device and each receiving device, and the data packet is sent to the target receiving device for storage. In the method, the preset transmission strategy characterizes the transmission priority sequence, so that when the wearable massage device transmits the data packets to different target receiving devices according to the transmission rate and the transmission strategy, the transmission paths are reasonably distributed, the multiplexing transmission of the data packets of the wearable massage device is realized, the transmission efficiency of the data packets of the wearable massage device is improved, and the maximum utilization of the bandwidth performance is realized.
In order to improve the transmission efficiency of the wearable massage device, the wearable massage device may perform selective transmission of the target receiving device according to a transmission rate and a preset transmission policy, where in one scenario, in an embodiment, as shown in fig. 3, the wearable massage device determines the target receiving device according to the transmission rate and the preset transmission policy, and includes:
s301, the wearable massager determines a first receiving device according to the transmission priority sequence of the wearable massager and each receiving device; the wearable massager has the highest transmission priority with the first receiving device.
The preset transmission priority sequence with each receiving device may include: the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
In this embodiment, the first receiving device refers to a cloud platform device, and a transmission priority between the wearable massager and the cloud platform device is highest.
S302, the wearable massager judges whether the transmission rate between the wearable massager and the first receiving device meets the transmission rate requirement of the wearable massager and the first receiving device.
The transmission rate between the wearable massage device and different receiving devices is required, so that before data transmission, whether the current transmission rate meets the corresponding transmission rate requirement is also required to be judged. Optionally, the transmission rate requirement between the receiving device with high transmission priority and the wearable massager is also highest.
In this embodiment, after the wearable massager determines the first receiving device according to the transmission priority, it needs to determine whether data transmission with the first receiving device is possible, where the basis for determining is the transmission rate between the wearable massager and the first receiving device; for example, when the first receiving device is a cloud platform device, the wearable massager may determine whether a transmission rate between itself and the cloud platform device meets a corresponding transmission rate requirement, thereby determining whether the cloud platform device is a target receiving device.
And S303, if the first receiving device is satisfied, the wearable massager determines that the first receiving device is a target receiving device.
In this embodiment, the current transmission rate of the wearable massage device and the first receiving device meets the corresponding transmission rate requirement, that is, the wearable massage device may perform data packet transmission with the first receiving device, and at this time, the wearable massage device may determine that the first receiving device is the target receiving device. The first receiving device is cloud platform device, the current transmission rate of the wearable massage device and the cloud platform device meets the corresponding transmission rate requirement, that is, the wearable massage device can transmit a data packet with the cloud platform device, at this time, the wearable massage device can determine that the cloud platform device is the target receiving device, and the embodiment does not limit the transmission rate.
In this embodiment, the determination of the target transmission device is performed according to the transmission priority of each receiving device and the transmission rate of each receiving device, and the judgment of the priority preference is performed, so as to optimize the line distribution and improve the transmission efficiency of the data packet.
There is another scenario, and in one embodiment, as shown in fig. 4, the method further includes:
s401, if the transmission priority order of the wearable massage device and each receiving device is not met, the wearable massage device determines a second receiving device; the transmission priority of the wearable massage device and the second receiving device is smaller than the transmission priority of the wearable massage device and the first receiving device, and is larger than the transmission priority of the wearable massage device and the other receiving devices.
In this embodiment, the current transmission rate of the wearable massager and the first receiving device does not meet the corresponding rate requirement, which indicates that the wearable massager cannot perform data transmission with the first receiving device, and at this time, the wearable device may determine the second receiving device according to the transmission priority order. In this embodiment, the second receiving device may be a master device. It should be noted that, when the wearable massage device cannot perform data transmission with the first receiving device, the determination of the second receiving device is performed, that is, the transmission priority of the wearable massage device and the second receiving device is smaller than the transmission priority of the wearable massage device and the first receiving device, for example, the transmission priority of the wearable massage device and the main device is smaller than the transmission priority of the wearable massage device and the cloud platform device, and meanwhile, the transmission priority of the wearable massage device and the main device is larger than the transmission priority of the wearable massage device and other devices.
S402, the wearable massager judges whether the transmission rate between the wearable massager and the second receiving device meets the transmission rate requirement of the wearable massager and the second receiving device.
In this embodiment, after the wearable massager determines the second receiving device according to the transmission priority, it needs to determine whether data transmission with the second receiving device is possible, where the basis for determining is the transmission rate between the wearable massager and the second receiving device; for example, when the second receiving device is the master device, the wearable massager may determine whether the transmission rate between itself and the master device meets the corresponding transmission rate requirement, thereby determining whether the master device is the target receiving device.
And S403, if the second receiving device is satisfied, the wearable massager determines that the second receiving device is the target receiving device.
In this embodiment, the current transmission rates of the wearable massage device and the second receiving device meet the corresponding transmission rate requirements, that is, the wearable massage device may perform data packet transmission with the second receiving device, and at this time, the wearable massage device may determine that the second receiving device is the target receiving device. The second receiving device is the main device, and the current transmission rate of the wearable massage device and the main device meets the corresponding transmission rate requirement, that is, the wearable massage device can transmit the data packet with the main device, and at this time, the wearable massage device can determine that the main device is the target receiving device, which is not limited in this embodiment.
In this embodiment, when the wearable massager cannot perform data transmission with the receiving device of the first priority, the receiving device of the second priority may still be determined by the target transmitting device according to the transmission priority of the receiving device and the transmission rate of the receiving device, so as to optimize the line distribution and improve the transmission efficiency of the data packet.
There is also a scenario, and in one embodiment, as shown in fig. 5, the method further includes:
s501, if the transmission rates between the wearable massager and all the receiving devices do not meet the corresponding transmission rate requirements, the wearable massager stores the data packet in a memory of the wearable massager.
In this embodiment, the current transmission rate between the wearable massage device and each receiving device does not meet the corresponding transmission rate requirement, that is, when the data packet of the wearable massage device cannot be sent out, the wearable massage device may store the data packet into its own memory, so as to ensure that the data packet is not lost.
S502, the wearable massager detects the transmission rate between the wearable massager and each receiving device, and determines the target receiving device according to the transmission rate and the transmission strategy.
In this embodiment, after the wearable massage device stores the data packet in the self memory, the data packet still needs to be sent to the receiving device, at this time, the wearable massage device may detect in real time whether the transmission rate between the wearable massage device and each receiving device meets the transmission rate requirement corresponding to each transmission line, for example, if the current transmission rates of the current wearable massage device and the first receiving device meet the transmission rate requirement corresponding to each transmission line, it is determined that the first receiving device is the target receiving device for transmitting the data packet.
And S503, sending the data packet in the memory of the wearable massager to the target receiving device.
In this embodiment, after the wearable massage device determines the target receiving device, the wearable massage device may invoke its own memory to send the data packet to the target receiving device, and optionally, the wearable massage device may also send the data packet in the memory to the receiving device through its own communication module.
In this embodiment, when the wearable massage device cannot perform data transmission with any receiving device, the data packet may be stored in the memory of the wearable massage device, and when the wearable massage device reaches the transmission rate required by any receiving device, the data packet may be sent to the target receiving device according to the determined target receiving device, so that the transmission efficiency of the data packet is improved.
After the wearable massage device sends the data packet in the memory of the wearable massage device to the target receiving device, preferably, in one embodiment, after the data packet in the memory of the wearable massage device is sent to the target receiving device, the method further includes:
the wearable massage device deletes the data packet from the memory of the wearable massage device.
In this embodiment, after the wearable massage device sends the data packet in the self-memory to any one of the receiving devices, the wearable massage device may clear the data packet in the self-memory to release the storage resource in the self-memory.
In this embodiment, the wearable massage device may clear the data packet in the self memory, releasing the storage resource in the self memory, and saving the storage space in the memory of the wearable massage device.
The following will specifically describe the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by means of examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the data transmission method of the wearable massage apparatus provided in the embodiments of fig. 6 to 8 of the present application, the execution main body of the data transmission method may be the main device 102, or may be a data transmission device of the wearable massage apparatus, where the data transmission device of the wearable massage apparatus may be part or all of the main device 102 in a manner of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is the master device 102.
In one embodiment, as shown in fig. 6, a data transmission method of a wearable massage apparatus is provided, which relates to a specific process that a main device sends a data reading instruction to the wearable massage apparatus, so that the wearable massage apparatus sends a data packet to a target receiving device for storage according to a transmission rate between the wearable massage apparatus and each receiving device and a preset transmission policy, and after sending the data reading instruction, the main device further detects whether a response instruction corresponding to the data reading instruction of the wearable massage apparatus is received, including the following steps:
s601, a main device sends a data reading instruction to a wearable massager; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction.
In this embodiment, the master device may send a data reading instruction to the wearable massage device in real time or periodically, and for example, the master device may send one data reading instruction to the wearable massage device every 5 s. Optionally, the receiving device is a cloud platform device or a master device; the preset transmission strategy at least comprises that the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
Optionally, before sending the data reading instruction to the wearable massager, the master device may also send a connection establishment request to the wearable massager, so that the master device establishes wireless connection with the wearable massager, such as WiFi, bluetooth, and a local area network, which is not limited in this embodiment.
S602, the main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager.
In this embodiment, after sending the data reading instruction to the wearable massage apparatus, the master device may further detect whether the wearable massage apparatus returns a response instruction corresponding to the data reading instruction to itself, so as to determine whether the wearable massage apparatus is to send the data packet to itself, or determine a target receiving device that the wearable massage apparatus sends the data packet.
In this embodiment, since the wearable massage device corresponds to different receiving devices, there is a high possibility that no location is available after the data packet is lost due to the fact that the data packet cannot be tracked during the transmission process of the data packet. At this time, the main device can determine the destination of the data packet according to the response instruction corresponding to the data reading instruction of the wearable massager, thereby indirectly realizing real-time tracking of the transmission process of the data packet.
When the master device detects whether a response instruction corresponding to the data reading instruction of the wearable massager is received, in one embodiment, as shown in fig. 7, the detecting the response instruction corresponding to the data reading instruction of the wearable massager includes:
and S701, if a response instruction of a data reading request sent by the wearable massager is received in a preset time period, the main equipment stores a data packet corresponding to the response instruction into a local memory.
The preset time period refers to a time period preset according to actual transmission conditions, and the time period may be 15 seconds or 20 seconds, for example.
In this embodiment, within 15 seconds when the main device sends a data reading request to the wearable massage device, if the main device receives a response instruction that the wearable massage device sends the data reading request, it is indicated that the wearable massage device determines that the main device is a target receiving device, and the data packet is to be sent to the main device, at this time, the main device may receive the data packet sent by the wearable massage device and store the data packet in the local memory.
S702, if a response instruction of a data reading request sent by the wearable massager is not received in a preset time period, the main equipment inquires whether a data packet corresponding to the response instruction in the cloud platform equipment is complete.
In this embodiment, for example, within 15 seconds when the main device sends a data reading request to the wearable massage device, if the main device does not receive a response instruction that the wearable massage device sends the data reading request, it indicates that the wearable massage device does not determine the main device as a target receiving device, and indicates that the wearable massage device may determine the cloud platform device as the target receiving device, at this time, the main device may send a request to the cloud platform device to query whether the data packet is complete, so as to achieve tracking of the data packet in the transmission process.
Specifically, in one embodiment, as shown in fig. 8, the master device queries whether a data packet corresponding to a response instruction in the cloud platform device is complete, including:
s801, the main equipment acquires a data packet corresponding to the response instruction in the cloud platform equipment.
In this embodiment, the master device needs to first obtain a data packet corresponding to the response instruction that is not received, and then complete query and judgment on the integrity of the data packet. The host device may send a request for acquiring the data packet to the cloud platform device, where the acquired information may be the entire data packet, or may be time information and data information carried in the data packet, which is not limited in this embodiment.
S802, the master device inquires whether time nodes of the data packet corresponding to the response instruction are continuous or not; if the data packet time node is continuous, executing step S803; if the packet time node is discontinuous, step S804 is performed.
Whether the time node of the data packet is continuous or not refers to whether the time information of the data packet and the time information of the historical data packet are continuous or not, if the time node of the data packet is continuous, the main equipment determines that the data packet corresponding to the response instruction is complete, and the wearable massage instrument is normally or normally offline; if the time nodes of the data packets are discontinuous, the main equipment determines that the data packets corresponding to the response instructions are incomplete, the wearable massage instrument is offline abnormally, and abnormal information is displayed on a display interface of the main equipment.
S803, the main equipment determines that the data packet corresponding to the response instruction is complete, and the wearable massager is normally or normally offline.
The data packet integrity means that the time information of the data packet has continuity with the time information of the historical data packet, the condition of transmission interruption in the middle does not exist, and the information carried in the data packet is complete, including body measurement data is complete.
In this embodiment, the master device determines that the data packet corresponding to the response instruction is complete, which indicates that the wearable massager successfully sends the data packet corresponding to the response instruction to the cloud platform device, and at this time, the master device determines that the wearable massager is normal. Optionally, at this time, the main device may also send a shutdown instruction to the wearable massager, so that the wearable massager is powered off and shutdown, and meanwhile, the wireless connection of the wearable massager is disconnected, so that the wearable massager is in a normal offline state.
Optionally, in one embodiment, the method further comprises:
and the main equipment sends the data packet to the cloud platform equipment according to a preset time period.
The preset time period may be one time a day or one time a week.
In this embodiment, the master device may send the data packet stored in the local memory of the master device to the cloud platform device according to a preset time period. For example, the host device may send data packets stored on the local memory of the host device to the cloud platform device at a frequency of once a day.
S804, the main equipment determines that the data packet corresponding to the response instruction is incomplete, the wearable massager is abnormally offline, and abnormal information is displayed on a display interface of the main equipment.
The fact that the data packet corresponding to the response instruction is incomplete refers to that time information of the data packet is discontinuous, and the fact that the wearable massage instrument is interrupted in transmission or other abnormal conditions occur in the process of sending the data packet to the cloud platform equipment is indicated, at the moment, the main equipment can determine that the wearable massage instrument is abnormal or is abnormal offline, and meanwhile the main equipment can display the abnormal information on a display interface of the main equipment. Optionally, the main device may further invoke its own communication module to send a short message to a user of the wearable massage device, so as to prompt the user to check a connection line of the wearable massage device.
In this embodiment, when the main device does not receive the response instruction of the wearable massager, by sending a query request of the data packet to the cloud platform device, whether the data packet sent by the wearable massager is complete is judged, and by checking the data packet, the purpose of checking the state of the wearable massager is achieved, so that timely remedy of incomplete data packet of the wearable massager is realized, and meanwhile, when the data packet of the wearable massager is complete, the main device can send the data packet in the self memory to the cloud platform device after the wearable massager is offline, so that the overall integrity and continuity of the data packet of the wearable massager in the cloud platform device are ensured.
In order to better explain the power control method provided in the present application, an embodiment is provided for explaining the overall flow aspect of the data transmission method of the wearable massager, as shown in fig. 9, and the method includes:
s101, a main device sends a data reading instruction to a wearable massager;
s102, after receiving a data reading instruction sent by a main device, the wearable massage device generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction;
s103, the wearable massage device detects the transmission rate between the wearable massage device and each receiving device;
S104, the wearable massager determines a first receiving device according to the transmission priority sequence of the wearable massager and each receiving device;
s105, the wearable massager judges whether the transmission rate between the wearable massager and the first receiving device meets the transmission rate requirement of the wearable massager and the first receiving device;
s106, if the first receiving device is met, the wearable massager determines that the first receiving device is a target receiving device;
s107, if the transmission priority order of the wearable massage instrument and each receiving device is not met, the wearable massage instrument determines a second receiving device;
s108, the wearable massager judges whether the transmission rate between the wearable massager and the second receiving device meets the transmission rate requirement of the wearable massager and the second receiving device;
s109, if the second receiving device is met, the wearable massage device determines that the second receiving device is a target receiving device; the second device is typically the master device;
s110, if the transmission rates between the wearable massage device and all the receiving devices do not meet the corresponding transmission rate requirements, the wearable massage device stores the data packet in a memory of the wearable massage device;
s111, detecting the transmission rate between the wearable massage instrument and each receiving device by the wearable massage instrument, and determining a target receiving device according to the transmission rate and the transmission strategy;
S112, sending the data packet in the memory of the wearable massager to target receiving equipment;
s113, deleting the data packet from a memory of the wearable massager by the wearable massager;
s114, the main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager; in the preset time period, if a response instruction of a data reading request sent by the wearable massager is received, executing step S115; in the preset time period, if a response instruction of the data reading request sent by the wearable massager is not received, executing step S116;
s115, the main equipment stores the data packet corresponding to the response instruction into a local memory; s116, the main equipment acquires a data packet corresponding to the response instruction in the cloud platform equipment;
s117, the master device inquires whether the time nodes of the data packets corresponding to the response instructions are continuous; if the time nodes of the data packets are continuous, executing step S120; if the time node of the data packet is discontinuous, executing step S121;
s118, the main equipment determines that the data packet corresponding to the response instruction is complete, and the wearable massage instrument is normally or normally offline;
s119, the main equipment sends the data packet to the cloud platform equipment according to a preset time period;
S120, the main equipment determines that the data packet corresponding to the response instruction is incomplete, the wearable massager is offline abnormally, and abnormal information is displayed on a display interface of the main equipment.
In this embodiment, because the preset transmission policy characterizes the transmission priority sequence between the wearable massager and the main device and among the wearable massager and the cloud platform device, when the wearable massager transmits the data packets to different target receiving devices according to the transmission rate and the transmission policy, the transmission paths can be reasonably allocated, so as to realize multiplexing of the data packets of the wearable massager, improve the transmission efficiency of the data packets of the wearable massager, and realize the maximum utilization of the bandwidth performance.
The data transmission method of the wearable massage apparatus provided in the above embodiment has similar implementation principles and technical effects to those of the above method embodiment, and is not described herein again.
It should be understood that, although the steps in the flowcharts of fig. 2-9 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-9 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 1, there is provided a data transmission system of a wearable massage device, the system comprising: the wearable massage device 101, the main device 102 and the cloud platform device 103 are connected in a two-by-two communication mode;
the wearable massage apparatus 101 is configured to perform the method for transmitting data of the wearable massage apparatus using the wearable massage apparatus as the execution body provided in the above embodiment; wherein the wearable massage device 101 comprises a plurality of sensors, a communication module, a memory and a controller; the controller is respectively connected with the sensor, the communication module and the slave memory, wherein the sensor comprises a temperature sensor, an electrocardio sensor, a humidity sensor and the like, and can acquire body measurement data information of a user, including electrocardio information, skin information, use duration of the user, temperature, humidity and the like; the communication module is used for sending the data packet to the receiving equipment; the memory is used for storing unsent data packets.
The master device 102 is configured to perform the method for data transmission of the wearable massage apparatus using the master device as the execution body provided in the foregoing embodiment; the host device may be a mobile or fixed terminal such as a personal computer or a smart phone, or the host device may be application software based on a mobile or fixed terminal.
The data transmission system of the wearable massage apparatus provided in the above embodiment has similar implementation principles and technical effects to those of the data transmission method embodiment of the wearable massage apparatus, and will not be described herein.
In one embodiment, as shown in fig. 10, there is provided a data transmission device of a wearable massage apparatus, including: a receiving module 01, a detecting module 02, a determining module 03 and a transmitting module 04, wherein:
the receiving module 01 is used for generating a data packet from the acquired body measurement data and a response instruction corresponding to the data reading instruction after the wearable massage instrument receives the data reading instruction sent by the main equipment;
the detection module 02 is used for detecting the transmission rate between the wearable massage device and each receiving device by the wearable massage device;
a determining module 03, configured to determine, by using the wearable massager, a target receiving device according to the transmission rate and a preset transmission policy; the transmission strategy comprises the transmission rate requirement between the wearable massage device and each receiving device and the transmission priority order of the wearable massage device and each receiving device;
and the sending module 04 is used for sending the data packet to the target receiving equipment for storage by the wearable massage device.
In one embodiment, the determining module 03 includes a first determining unit, a judging unit, and a second determining unit, where:
The first determining unit is used for determining a first receiving device by the wearable massage device according to the transmission priority sequence of the wearable massage device and each receiving device; the transmission priority of the wearable massager and the first receiving device is highest;
the judging unit is used for judging whether the transmission rate between the wearable massage device and the first receiving device meets the transmission rate requirement of the wearable massage device and the first receiving device or not by the wearable massage device;
and the second unit is used for determining the first receiving device as the target receiving device by the wearable massage device if the first receiving device is satisfied.
In one embodiment, the first determining unit, the judging unit and the second determining unit in the determining module 03 are further configured to:
the first determining unit is further configured to determine, if the first determining unit does not meet the first criterion, the second receiving device according to a transmission priority sequence of the wearable massage device and each receiving device; the transmission priority of the wearable massage instrument and the second receiving device is smaller than the transmission priority of the wearable massage instrument and the first receiving device and larger than the transmission priority of the wearable massage instrument and the other receiving devices;
the judging unit is further used for judging whether the transmission rate between the wearable massage device and the second receiving device meets the transmission rate requirement of the wearable massage device and the second receiving device or not by the wearable massage device;
The second determining unit is further configured to determine, if the second determination result is met, that the second receiving device is the target receiving device by using the wearable massager.
In one embodiment, as shown in fig. 11, the data transmission device of the wearable massage apparatus further includes a storage module 05;
the storage module 05 is configured to store the data packet in the memory of the wearable massage device if the transmission rates between the wearable massage device and all the receiving devices do not meet the corresponding transmission rate requirements;
the detection module 02 is further configured to detect a transmission rate between the wearable massage device and each receiving device by using the wearable massage device, and determine a target receiving device according to the transmission rate and a transmission policy;
the sending module 04 is further configured to send the data packet in the memory of the wearable massager to the target receiving device.
In one embodiment, as shown in fig. 12, the data transmission device of the wearable massage apparatus further includes a deleting module 06, configured to delete the data packet from the memory of the wearable massage apparatus by the wearable massage apparatus.
In one embodiment, the receiving device is a cloud platform device or a master device;
the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
In one embodiment, as shown in fig. 13, there is provided a data transmission device of another wearable massage apparatus, including: a transmitting module 11 and a detecting module 12, wherein:
the main sending module 11 is used for sending a data reading instruction to the wearable massage device by the main equipment; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction;
the detection module 12 is configured to detect, by the main device, a response instruction corresponding to the data reading instruction of the wearable massager.
In one embodiment, the receiving device is a cloud platform device or a master device;
the transmission priority between the wearable massage device and the cloud platform device is higher than the transmission priority between the wearable massage device and the cloud main device, and the transmission priority between the wearable massage device and the cloud main device is higher than the transmission priority of the wearable massage device for storing the data packet in the local memory.
In one embodiment, the detection module 12 includes a storage unit and a query unit, where:
The storage unit is used for storing the data packet corresponding to the response instruction into the local memory if the response instruction of the data reading request sent by the wearable massager is received in a preset time period;
the inquiring unit is used for inquiring whether the data packet corresponding to the response instruction in the cloud platform equipment is complete or not if the response instruction of the data reading request sent by the wearable massager is not received in a preset time period.
In one embodiment, the query unit is specifically configured to obtain a data packet corresponding to a response instruction in the cloud platform device by using the master device; the master device inquires whether the time nodes of the data packets corresponding to the response instructions are continuous or not; if the time nodes of the data packets are continuous, the main equipment determines that the data packets corresponding to the response instructions are complete, and the wearable massage instrument is normally or normally offline; if the data packet time nodes are discontinuous, the main equipment determines that the data packet corresponding to the response instruction is incomplete, the wearable massager is offline abnormally, and abnormal information is displayed on a display interface of the main equipment.
In one embodiment, as shown in fig. 14, the data transmission device of the wearable massage apparatus further includes a secondary sending module 13, configured to send the data packet to the cloud platform device by the main device according to a preset time period.
The specific limitation of the data transmission device of the wearable massage device can be referred to the limitation of the data transmission method of the wearable massage device, and will not be described herein. The modules in the data transmission device of the wearable massage device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 15. 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 includes a non-volatile 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 the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a data transmission method for a wearable massage device. 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, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 15 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application is applied, and that a particular computer device may include more or fewer components than 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 stored therein a computer program, the processor when executing the computer program performing the steps of:
after receiving a data reading instruction sent by the main equipment, the wearable massage instrument generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction;
the wearable massage device detects the transmission rate between the wearable massage device and each receiving device;
the wearable massage device determines target receiving equipment according to the transmission rate and a preset transmission strategy; the transmission strategy comprises the transmission rate requirement between the wearable massage device and each receiving device and the transmission priority order of the wearable massage device and each receiving device;
the wearable massage device sends the data packet to the target receiving device for storage.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
the main equipment sends a data reading instruction to the wearable massager; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction;
the main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
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:
After receiving a data reading instruction sent by the main equipment, the wearable massage instrument generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction;
the wearable massage device detects the transmission rate between the wearable massage device and each receiving device;
the wearable massage device determines target receiving equipment according to the transmission rate and a preset transmission strategy; the transmission strategy comprises the transmission rate requirement between the wearable massage device and each receiving device and the transmission priority order of the wearable massage device and each receiving device;
the wearable massage device sends the data packet to the target receiving device for storage.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
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:
the main equipment sends a data reading instruction to the wearable massager; the data reading instruction is used for indicating the wearable massage instrument to send a data packet to the target receiving equipment for storage according to the transmission rate between the wearable massage instrument and each receiving equipment and a preset transmission strategy, and the data packet comprises body measurement data acquired by the wearable massage instrument and a response instruction corresponding to the data reading instruction;
The main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (15)

1. A method of data transmission for a wearable massage device, the method comprising:
after receiving a data reading instruction sent by a main device, the wearable massage device generates a data packet from collected body measurement data and a response instruction corresponding to the data reading instruction;
the wearable massage device detects the transmission rate between the wearable massage device and each receiving device;
The wearable massage instrument determines target receiving equipment from all receiving equipment according to the transmission rate and a preset transmission strategy; the transmission strategy comprises a transmission rate requirement between the wearable massage device and each receiving device and a transmission priority order of the wearable massage device and each receiving device;
the wearable massage device sends the data packet to the target receiving device for storage; and when the target receiving device is the main device, driving the main device to send the data packet to the cloud platform device according to a preset time period.
2. The method of claim 1, wherein the wearable massager determines a target receiving device from the receiving devices according to the transmission rate and a preset transmission policy, comprising:
the wearable massage instrument determines a first receiving device according to the transmission priority sequence of the wearable massage instrument and each receiving device; the transmission priority of the wearable massager and the first receiving device is highest;
the wearable massager judges whether the transmission rate between the wearable massager and the first receiving device meets the transmission rate requirement of the wearable massager and the first receiving device;
If yes, the wearable massager determines that the first receiving device is a target receiving device.
3. The method according to claim 2, wherein the method further comprises:
if the transmission priority order of the wearable massage instrument and each receiving device is not met, the wearable massage instrument determines a second receiving device according to the transmission priority order of the wearable massage instrument and each receiving device; the transmission priority of the wearable massage device and the second receiving device is smaller than the transmission priority of the wearable massage device and the first receiving device and larger than the transmission priority of the wearable massage device and the other receiving devices;
the wearable massager judges whether the transmission rate between the wearable massager and the second receiving device meets the transmission rate requirement of the wearable massager and the second receiving device;
if yes, the wearable massager determines that the second receiving device is a target receiving device.
4. The method according to claim 1, wherein the method further comprises:
if the transmission rates between the wearable massage device and all the receiving devices do not meet the corresponding transmission rate requirements, the wearable massage device stores the data packet in a memory of the wearable massage device;
The wearable massage device detects the transmission rate between the wearable massage device and each receiving device, and determines the target receiving device according to the transmission rate and the transmission strategy;
and sending the data packet in the memory of the wearable massager to the target receiving device.
5. The method of claim 4, wherein after the transmitting the data packet in the memory of the wearable massager to the target receiving device, further comprising:
the wearable massage device deletes the data packet from a memory of the wearable massage device.
6. The method according to any one of claims 1-4, wherein the receiving device is a cloud platform device or a master device;
the transmission priority between the wearable massage instrument and the cloud platform device is higher than the transmission priority between the wearable massage instrument and the main device, and the transmission priority between the wearable massage instrument and the main device is higher than the transmission priority of the wearable massage instrument for storing data packets in a local memory.
7. A method of data transmission for a wearable massage device, the method comprising:
The main equipment sends a data reading instruction to the wearable massager; the data reading instruction is used for indicating the wearable massage device to determine target receiving devices from the receiving devices according to the transmission rate between the wearable massage device and the receiving devices and a preset transmission strategy, and sending a data packet to the target receiving devices for storage, wherein the data packet comprises body measurement data acquired by the wearable massage device and a response instruction corresponding to the data reading instruction;
the main equipment detects a response instruction corresponding to a data reading instruction of the wearable massager;
the method further comprises the steps of:
and the main equipment sends the data packet to cloud platform equipment according to a preset time period.
8. The method of claim 7, wherein the receiving device is a cloud platform device or the master device;
the transmission priority between the wearable massage instrument and the cloud platform device is higher than the transmission priority between the wearable massage instrument and the main device, and the transmission priority between the wearable massage instrument and the main device is higher than the transmission priority of the wearable massage instrument for storing data packets in a local memory.
9. The method of claim 7, wherein detecting a response command corresponding to the data reading command of the wearable massage device comprises:
in a preset time period, if a response instruction of a data reading request sent by the wearable massager is received, the main equipment stores a data packet corresponding to the response instruction into a local memory;
and if a response instruction of the data reading request sent by the wearable massager is not received in the preset time period, the main equipment inquires whether a data packet corresponding to the response instruction in the cloud platform equipment is complete.
10. The method of claim 9, wherein the master device querying whether the data packet corresponding to the response instruction in the cloud platform device is complete comprises:
the main equipment acquires a data packet corresponding to the response instruction in the cloud platform equipment;
the master device inquires whether time nodes of the data packet corresponding to the response instruction are continuous or not;
if the data packet time nodes are continuous, the main equipment determines that the data packet corresponding to the response instruction is complete, and the wearable massager is normally or normally offline;
If the data packet time nodes are discontinuous, the main equipment determines that the data packet corresponding to the response instruction is incomplete, the wearable massager is abnormal offline, and abnormal information is displayed on a display interface of the main equipment.
11. A data transmission system for a wearable massage device, the system comprising: the device comprises a wearable massager, a main device and cloud platform equipment, wherein the wearable massager, the main device and the cloud platform equipment are connected in a pairwise communication manner;
the wearable massage device for performing the method of any of the above claims 1-6;
the master device being adapted to perform the method of any of the preceding claims 7-10.
12. A data transmission device for a wearable massage device, the device comprising:
the receiving module is used for generating a data packet from the collected body measurement data and a response instruction corresponding to the data reading instruction after the wearable massage instrument receives the data reading instruction sent by the main equipment;
the detection module is used for detecting the transmission rate between the wearable massage device and each receiving device by the wearable massage device;
the determining module is used for determining target receiving equipment from all receiving equipment according to the transmission rate and a preset transmission strategy by the wearable massager; the transmission strategy comprises a transmission rate requirement between the wearable massage device and each receiving device and a transmission priority order of the wearable massage device and each receiving device;
The sending module is used for sending the data packet to the target receiving equipment for storage by the wearable massager; and when the target receiving device is the main device, driving the main device to send the data packet to the cloud platform device according to a preset time period.
13. A data transmission device for a wearable massage device, the device comprising:
the main sending module is used for sending a data reading instruction to the wearable massage device by the main equipment; the data reading instruction is used for indicating the wearable massage device to determine target receiving devices from the receiving devices according to the transmission rate between the wearable massage device and the receiving devices and a preset transmission strategy, and sending a data packet to the target receiving devices for storage, wherein the data packet comprises body measurement data acquired by the wearable massage device and a response instruction corresponding to the data reading instruction;
the detection module is used for detecting a response instruction corresponding to the data reading instruction of the wearable massager by the main equipment;
and the secondary sending module is used for sending the data packet to the cloud platform equipment by the main equipment according to a preset time period.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 10 when the computer program is executed.
15. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 10.
CN202010209635.8A 2020-03-23 2020-03-23 Data transmission method, system and device of wearable massager and computer equipment Active CN113438265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209635.8A CN113438265B (en) 2020-03-23 2020-03-23 Data transmission method, system and device of wearable massager and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209635.8A CN113438265B (en) 2020-03-23 2020-03-23 Data transmission method, system and device of wearable massager and computer equipment

Publications (2)

Publication Number Publication Date
CN113438265A CN113438265A (en) 2021-09-24
CN113438265B true CN113438265B (en) 2023-06-27

Family

ID=77752686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209635.8A Active CN113438265B (en) 2020-03-23 2020-03-23 Data transmission method, system and device of wearable massager and computer equipment

Country Status (1)

Country Link
CN (1) CN113438265B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138886A (en) * 2011-12-05 2013-06-05 深圳迈瑞生物医疗电子股份有限公司 Pre-hospital emergency end, pre-hospital emergency system and data transmission method of pre-hospital emergency end
CN105554787A (en) * 2015-12-21 2016-05-04 北京奇虎科技有限公司 Data transmission method, intelligent acquisition equipment, intelligent terminal and cloud server
CN107612778A (en) * 2017-09-29 2018-01-19 深圳市盛路物联通讯技术有限公司 A kind of data acquisition and transmission method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10271367B2 (en) * 2015-04-01 2019-04-23 Huawei Technologies Co., Ltd. Data transmission method, device, and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138886A (en) * 2011-12-05 2013-06-05 深圳迈瑞生物医疗电子股份有限公司 Pre-hospital emergency end, pre-hospital emergency system and data transmission method of pre-hospital emergency end
CN105554787A (en) * 2015-12-21 2016-05-04 北京奇虎科技有限公司 Data transmission method, intelligent acquisition equipment, intelligent terminal and cloud server
CN107612778A (en) * 2017-09-29 2018-01-19 深圳市盛路物联通讯技术有限公司 A kind of data acquisition and transmission method and system

Also Published As

Publication number Publication date
CN113438265A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN110198275B (en) Flow control method, system, server and storage medium
KR102031820B1 (en) Power Sensing Wireless Radio Management
CN107645529B (en) Heartbeat packet sending method and device
US9668294B2 (en) Method and apparatus for bluetooth low energy suspend and resume
US9900919B1 (en) Adaptive beacon rate system
EP3337249B1 (en) Energy efficient wireless data transfer
CA2946774C (en) Wireless assistance method, apparatus, and system
US20160315832A1 (en) Communications system, method and gateway device
CN105557036A (en) Efficient automatic sharing of network access among devices
EP3544344B1 (en) Method, user equipment and computer readable storage medium for switching the operation mode of a user equipment between carrier aggregation (ca) and non-ca operation modes
US10462016B2 (en) Communication control system, communication control method, and recording medium
CN110557327A (en) Independent IoT gateway capable of directly linking with user terminal by using short-range communication technology
CN111757305B (en) Service execution terminal switching method, device, system and storage medium
JP2013065207A (en) Portable communication system, portable communication terminal and server
CN111211925B (en) Alarm information synchronization method and device, computer equipment and storage medium
CN113438265B (en) Data transmission method, system and device of wearable massager and computer equipment
US11102293B2 (en) System and method for migrating an agent server to an agent client device
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
WO2021223687A1 (en) Communication mode state switching method and apparatus, and computer device and storage medium
US9681328B2 (en) Multiple modem device including notification modem
CN113438266B (en) Method, device, equipment and storage medium for acquiring data of wearable massager
US9553928B2 (en) Data sharing method and data processing system
US20150137995A1 (en) Communication apparatus, system, and communication method
US10966104B2 (en) Email synchronization method and device
US9515917B2 (en) Communications apparatus, system, and communications method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518051 floor 27, building 3, China scientific research development park, No. 009, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Future wear Health Technology Co.,Ltd.

Address before: 518051 floor 27, building 3, China scientific research development park, No. 009, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: Future wearable technology Co.,Ltd.

Address after: 518051 floor 27, building 3, China scientific research development park, No. 009, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Future wearable technology Co.,Ltd.

Address before: 518051 floor 27, building 3, China scientific research development park, No. 009, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: Future wearable technology Co.,Ltd.