A physiotherapy instrument control method, computing device and medium

CN122906863APending Publication Date: 2026-10-13CHONGQING ROB LINKA SCIENCE & TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411850989.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0005]为了克服传统的需要固化各个主机的序号的方式,不方便对主机进行管理及用户的使用的问题,本发明提供了一种理疗仪控制方法及计算设备、介质

Benefits of technology

[0021]遥控终端响应于用户下发的序号分配指令,通过广播发送第一数据包,并接收各个主机反馈的通讯地址,以便根据通讯地址向各个主机发送携带有不同目标序号的第二数据包。再通过接收各个主机基于对应的目标序号反馈的序号分配结果,从而确定各个主机对应的主机序号。再基于各个主机对应的主机序号,将各个通讯地址与对应的主机序号进行关联,并确定各个通讯地址对应的控制状态。这样,通过为主机分配目标序号作为主机的序号,并将对应的通讯地址与主机反馈的主机序号相关联,以实现为各个主机分配对应的序号,从而不用固化每个主机的序号,便于对主机进行管理及用户的使用。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122906863A_ABST
    Figure CN122906863A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of physiotherapy instrument control method and computing device, medium.The method is applied to remote terminal;The method comprises: in response to the serial number assignment instruction issued by user, by broadcasting first data packet;At least one host based on the communication address feedback of first data packet is received;Based on each communication address, corresponding second data packet is sent to each host;Each serial number assignment result based on corresponding target serial number is received by each host;Wherein, the serial number assignment result includes host serial number;Based on each serial number assignment result, each communication address is associated with corresponding host serial number, and the control state corresponding to each communication address is determined;Method is based on the communication address of each host by remote terminal for each host to assign corresponding target serial number, so as to not solidify the serial number of each host, facilitate management to host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of physiotherapy instrument control technology, specifically to a physiotherapy instrument control method, computing device, and medium. Background Technology

[0002] The integration of wireless communication technology with physiotherapy devices enables wireless operation. The control end of the physiotherapy device is divided into two parts: one end is a remote control terminal used to control the intensity of pulses and the transmission of signals, and the other end is multiple main units. Each main unit is used to receive signals transmitted by the remote control terminal to generate pulse signals that are transmitted to the electrode pads to massage and treat the human body.

[0003] To facilitate control of each host, the traditional method is to burn a different program into each host, which then assigns a unique serial number to each host. This results in each host having a fixed and distinct serial number. However, the programming process is complex, and after programming, each host's serial number needs to be visually distinguishable and stored separately. This method of assigning serial numbers to each host is inconvenient for host management and user operation.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] To overcome the problems of traditional methods that require fixed serial numbers for each host, which are inconvenient for host management and user operation, this invention provides a physiotherapy device control method, computing device, and medium.

[0006] In a first aspect, to solve the above-mentioned technical problems, the present invention provides a method for controlling a physiotherapy device, applied to a remote control terminal; the method includes:

[0007] In response to the sequence number allocation instruction issued by the user, the first data packet is sent via broadcast;

[0008] Receive the communication address fed back by at least one host based on the first data packet;

[0009] Based on each of the aforementioned communication addresses, a corresponding second data packet is sent to each host; wherein, the second data packet includes a target sequence number, the target sequence number being an unused sequence number, and each target sequence number being different;

[0010] Each host receives its own sequence number allocation result based on its corresponding target sequence number; wherein the sequence number allocation result includes a host sequence number, which represents the sequence number of the host.

[0011] Based on the allocation results of each serial number, each communication address is associated with its corresponding host serial number, and the control status corresponding to each communication address is determined.

[0012] Secondly, in order to solve the above-mentioned technical problems, the present invention provides a physiotherapy device control method, applied to a host computer; the method includes:

[0013] Receive the first data packet sent by the remote control terminal;

[0014] The communication address is sent to the remote control terminal based on the first data packet;

[0015] The remote control terminal receives a second data packet based on the communication address; wherein the second data packet includes a target sequence number, the target sequence number being an unoccupied sequence number;

[0016] The target sequence number is used as the host sequence number, where the host sequence number represents the host's sequence number;

[0017] A serial number allocation result is generated based on the host serial number, and the serial number allocation result is sent to the remote control terminal; wherein, the serial number allocation result includes the host serial number.

[0018] Thirdly, in order to solve the above-mentioned technical problems, the present invention provides a computing device, including a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of a physiotherapy device control method as described above.

[0019] Fourthly, in order to solve the above-mentioned technical problems, the present invention provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the steps of the physiotherapy device control method described above.

[0020] The beneficial effects of this invention are:

[0021] The remote control terminal responds to the user's sequence number allocation command by broadcasting a first data packet and receiving communication addresses from each host. Based on these addresses, it sends a second data packet carrying a different target sequence number to each host. Then, by receiving the sequence number allocation results from each host based on its corresponding target sequence number, it determines the host sequence number for each host. Based on the host sequence number, it associates each communication address with its corresponding host sequence number and determines the control status for each communication address. In this way, by assigning target sequence numbers as host sequence numbers and associating corresponding communication addresses with the host sequence numbers returned by the hosts, it achieves the goal of assigning corresponding sequence numbers to each host, eliminating the need to permanently assign sequence numbers to each host and facilitating host management and user operation. Attached Figure Description

[0022] Figure 1 A flowchart illustrating a physiotherapy device control method provided by the present invention;

[0023] Figure 2 A flowchart of a method for processing communication addresses by a remote control terminal provided by the present invention;

[0024] Figure 3 A flowchart of a method for assigning a serial number to a host via a remote control terminal provided by the present invention;

[0025] Figure 4 A flowchart illustrating a physiotherapy device control method provided by the present invention;

[0026] Figure 5 A flowchart of a method for determining a host serial number provided by the present invention;

[0027] Figure 6 This is a schematic diagram illustrating the interaction between a remote control terminal and a host computer, provided by the present invention. Detailed Implementation

[0028] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0029] The physiotherapy device includes a remote control terminal, multiple main units, and multiple electrode pads. The remote control terminal communicates with each main unit, and the main units are connected to the electrode pads. The remote control terminal is a dedicated remote controller for controlling the main units; it can be a mobile app or a dedicated physiotherapy device. The remote control terminal primarily enables human-computer interaction, allowing users to select treatment modes and adjust parameters such as time. The main units receive control commands from the remote control terminal and then generate corresponding pulses. The electrode pads are attached to the areas of the body requiring treatment. The main units apply the generated pulses to these areas via the electrode pads, thus providing massage and physiotherapy.

[0030] The following describes, with reference to the accompanying drawings, a method for controlling a physiotherapy device, a computing device, and a medium according to an embodiment of the present invention.

[0031] like Figure 1 As shown in the embodiment of this disclosure, a method for controlling a physiotherapy device is applied to a remote control terminal. The method includes:

[0032] In step S11, the remote control terminal responds to the sequence number allocation instruction issued by the user and sends the first data packet via broadcast.

[0033] Step S12: The remote control terminal receives a communication address fed back by at least one host based on the first data packet.

[0034] In some embodiments, the remote control terminal receives a communication address broadcast from at least one host. The communication address represents the host's address information.

[0035] In step S13, the remote control terminal sends corresponding second data packets to each host based on each communication address. Each second data packet includes a target sequence number, which is an unused sequence number, and each target sequence number is different.

[0036] In some embodiments, the occupancy status includes an occupied status and an unoccupied status. An unoccupied status indicates that the sequence number has not been assigned to any host. An occupied status indicates that the sequence number has been assigned to a host.

[0037] Step S14: The remote control terminal receives the sequence number allocation results from each host based on the corresponding target sequence number. The sequence number allocation result includes the host sequence number. The host sequence number is the sequence number assigned to the host by the remote control terminal.

[0038] Step S15: Based on the allocation results of each serial number, the remote control terminal associates each communication address with the corresponding host serial number and determines the control status corresponding to each communication address.

[0039] Associating a communication address with its corresponding host serial number signifies linking the communication address to the corresponding host serial number. This means the remote control terminal can find the corresponding communication address through the host serial number, and vice versa, thus controlling the host corresponding to that communication address. For example, the remote control terminal associates communication address 'a' with host serial number 1. In this case, the remote control terminal only needs to find the communication address 'a' associated with host 1 to send relevant control commands to the host pointed to by host 1, thereby controlling the host with host serial number 1.

[0040] For ease of understanding, this disclosure illustrates a specific process where a remote control terminal assigns a target sequence number of 2 to host A: The remote control terminal sends a second data packet to host A, in which the target sequence number is 2. The host uses this target sequence number as its host sequence number, i.e., host A uses 2 as its host sequence number; and generates a sequence number allocation result based on this host sequence number, and sends the sequence number allocation result to the remote control terminal. The remote control terminal associates the communication address of host A with the host sequence number in the sequence number allocation result, i.e., the remote control terminal associates the communication address of host A with 2. Thus, when the remote control terminal sends a control command to the host with host sequence number 2, the remote control terminal will find the communication address associated with host sequence number 2 and send the control command to that associated communication address, thereby realizing the sending of the control command to the host with host sequence number 2.

[0041] In some embodiments, the control state includes a connected control state and a disconnected control state. When the control state corresponding to the communication address is connected, it indicates that the remote control terminal has assigned a sequence number to the host pointed to by the communication address; that is, the remote control terminal has associated the communication address with the corresponding host sequence number. When the control state corresponding to the communication address is disconnected, it indicates that the remote control terminal has not assigned a sequence number to the host pointed to by the communication address; that is, the remote control terminal has not associated the communication address with the corresponding host sequence number.

[0042] The physiotherapy device control method provided in this embodiment involves a remote control terminal responding to a user-issued sequence number allocation command by broadcasting a first data packet and receiving communication addresses from each host. This allows the terminal to send second data packets carrying different target sequence numbers to each host based on its communication address. Furthermore, by receiving the sequence number allocation results from each host based on its corresponding target sequence number, the terminal determines the host sequence number for each host. Based on the host sequence number, each communication address is associated with its corresponding host sequence number, and the control state corresponding to each communication address is determined. In this way, by assigning target sequence numbers as host sequence numbers and associating corresponding communication addresses with the host sequence numbers returned by the hosts, each host can be assigned a corresponding sequence number, eliminating the need to permanently assign a sequence number to each host and facilitating host management and user operation.

[0043] In this way, when using the device, the user can communicate with the host via the remote control terminal and send a serial number assignment command to the remote control terminal, thereby setting different host serial numbers for each host, i.e., randomly assigning serial numbers to each host. When there are multiple hosts, the first host, the second host, and the Nth host can be determined according to the physiotherapy device control method provided in this embodiment, so as to realize the user's sending and management of different control commands between multiple hosts.

[0044] Preferably, based on each communication address, sending corresponding second data packets to each host includes: determining whether each communication address matches the communication address stored in a preset pairing data table; if the match is successful, determining each successfully matched communication address as a first target communication address, and determining the host pointed to by the first target communication address as a first target host; and sending corresponding second data packets to each first target host based on each first target communication address.

[0045] Since the remote control terminal sends the first data packet via broadcast, and each set of physiotherapy equipment uses a remote control terminal paired with each host, multiple sets of physiotherapy equipment may exist in the same environment. This means that other hosts not belonging to the same set of physiotherapy equipment as the remote control terminal may also send communication addresses back to it. Therefore, by matching each communication address with the communication addresses stored in a preset pairing data table, a successful match indicates that the host corresponding to that communication address is paired with the remote control terminal, meaning that the communication address is the first target communication address. At this point, by sending the corresponding second data packet to the first target host pointed to by each first target communication address, it can be ensured that the remote control terminal only sends the second data packet with the target sequence number to the paired host. This allows the remote control terminal to assign sequence numbers only to the paired host, avoiding management confusion and facilitating host management.

[0046] In some embodiments, each remote control terminal corresponds to a preset pairing data table. This preset pairing data table stores the communication addresses of the host computer used with the remote control terminal. The remote control terminal performs a lookup operation in the corresponding preset pairing data table for each received communication address. If a matching communication address is found, it is determined that the communication address received by the remote control terminal is successfully matched.

[0047] Preferably, based on each first target communication address, sending corresponding second data packets to each first target host includes: determining the control state corresponding to each first target communication address; determining the first target communication address with a control state of "disconnected" as the second target communication address; and sending corresponding second data packets to each second target host based on each second target communication address. The control state includes a connected control state and a disconnected control state.

[0048] When the control status corresponding to a communication address is "connected," it indicates that the remote control terminal has assigned a sequence number to the host pointed to by that communication address. When the control status corresponding to a communication address is "disconnected," it indicates that the remote control terminal has not assigned a sequence number to the host pointed to by that communication address. Therefore, by determining the control status corresponding to each first target communication address, it is possible to determine whether the remote control terminal has assigned a sequence number to the first target host pointed to by the first target communication address. If not, the remote control terminal then sends a second data packet carrying the corresponding target sequence number to each second target host based on the second target communication address, thereby assigning a sequence number to the second target host. In this way, sequence numbers can be assigned to hosts that have not been assigned sequence numbers, and multiple sequence numbers can be avoided for the same host, i.e., the same host cannot occupy multiple sequence numbers. This facilitates the remote control terminal's control of the host.

[0049] Combination Figure 2 As shown, this disclosure provides an embodiment of a remote control terminal processing a communication address, including:

[0050] Step S21: The remote control terminal receives a communication address returned by at least one host via broadcast. The communication address is the host's location determined by the host based on the first data packet.

[0051] In step S22, the remote control terminal determines whether each communication address matches a communication address stored in the preset pairing data table. If yes, proceed to step S23; otherwise, proceed to step S24. It can be understood that a successful match indicates the communication address is in the preset pairing data table, and therefore, that communication address is the first target communication address.

[0052] Step S23: The remote control terminal determines whether each successfully matched communication address is in an unconnected control state. If yes, proceed to step S25; otherwise, proceed to step S26.

[0053] In step S24, the remote control terminal discards the unmatched communication address. It can be understood that discarding the unmatched communication address indicates that the remote control terminal does not respond to the unmatched communication address.

[0054] In step S25, the remote control terminal sends the corresponding second data packet to the host pointed to by each successfully matched communication address that is in a disconnected control state. It can be understood that in this step, the communication address in the disconnected control state is the second target communication address, and the host pointed to by the second target communication address is the second target host.

[0055] Step S26: The remote control terminal discards each communication address that is in the connected control state.

[0056] Preferably, before sending the corresponding second data packet to each host based on each communication address, the method further includes: querying the occupancy status of each sequence number; and using each sequence number in an unoccupied state as the target sequence number. The occupancy status includes both occupied and unoccupied states.

[0057] A sequence number in an unoccupied state indicates that it has not been assigned to any host. A sequence number in an occupied state indicates that it has been assigned to a host. By querying the occupancy status of each sequence number and using the unoccupied ones as target sequence numbers, it is ensured that each target sequence number has not been assigned to another host, thus guaranteeing a one-to-one correspondence between hosts and sequence numbers.

[0058] Preferably, each unoccupied sequence number is used as the target sequence number, including: using each unoccupied sequence number as the target sequence number; and determining the target sequence number pointed to by each communication address according to the order in which the communication addresses are received.

[0059] Because the remote control terminal sends the first data packet via broadcast, multiple hosts may simultaneously return their respective communication addresses within a short period. Therefore, by determining the specific value of the target sequence number pointed to by each communication address according to the order in which they are received, it can be ensured that the target sequence number is assigned to only one host, avoiding host sequence number confusion and thus facilitating management.

[0060] In some embodiments, target serial numbers are assigned sequentially to the communication addresses received in ascending order. For example, a remote control terminal receives a second target communication address at 10:01, 10:02, and 10:03 on the same day. The target serial numbers at this time include 1, 2, and 3. Then, according to the order in which the second target communication addresses are received, the target serial number pointed to by the communication address at 10:01 is determined to be 1, the target serial number pointed to by the communication address at 10:02 is determined to be 2, and the target serial number pointed to by the communication address at 10:03 is determined to be 3.

[0061] Furthermore, the system receives the sequence number allocation results from each host based on its corresponding target sequence number, including receiving the sequence number allocation results from each second target host based on its corresponding target sequence number. In this way, by receiving the sequence number allocation results from each second target host, the remote control terminal can determine the corresponding sequence number for each second target host.

[0062] Furthermore, the sequence number allocation result also includes the host's communication address. Based on each sequence number allocation result, each communication address is associated with its corresponding host sequence number, and the control status corresponding to each communication address is determined, including: determining whether the communication address corresponding to each sequence number allocation result matches the communication address stored in the preset pairing data table; if the match is successful, then each communication address is associated with its corresponding host sequence number, and the control status corresponding to each communication address is determined.

[0063] In this way, by verifying whether the communication address corresponding to each serial number allocation result is within the preset pairing data table, interference from non-paired host devices to the remote control terminal can be reduced. This makes it easier for the remote control terminal to assign serial numbers to paired host devices.

[0064] Combination Figure 3 As shown, this disclosure provides an embodiment of a remote control terminal assigning a serial number to a host, including:

[0065] In step S31, the remote control terminal responds to the sequence number allocation instruction issued by the user and sends the first data packet via broadcast.

[0066] In step S32, the remote control terminal receives a communication address returned by at least one host via broadcast. The communication address is the host's location determined by the host based on the first data packet.

[0067] In step S33, the remote control terminal determines whether each communication address matches a communication address stored in the preset pairing data table. If yes, proceed to step S34; otherwise, proceed to step S35. It can be understood that a successful match indicates the communication address is in the preset pairing data table, and therefore, that communication address is the first target communication address.

[0068] Step S34: The remote control terminal determines whether each successfully matched communication address is in an unconnected control state. If yes, proceed to step S36; otherwise, proceed to step S37.

[0069] Step S35: The remote control terminal discards the communication addresses that failed to match.

[0070] Step S36: The remote control terminal queries the occupancy status of each sequence number, determines the unoccupied sequence number as the target sequence number, and assigns the target sequence numbers in ascending order to each successfully matched communication address that is in a non-connected control state, in order to determine the target sequence number pointed to by each successfully matched communication address in a non-connected control state. Then, step S38 is executed.

[0071] Step S37: The remote control terminal discards each communication address that is in the connected control state.

[0072] In step S38, the remote control terminal sends a second data packet with the corresponding target sequence number to the host pointed to by each successfully matched communication address that is in an unconnected control state. Then, step S39 is executed.

[0073] Step S39: The remote control terminal receives the sequence number allocation results from each host based on the corresponding target sequence number. The sequence number allocation result includes the host sequence number and the host's communication address. Then, step S310 is executed.

[0074] In step S310, the remote control terminal determines whether the communication address corresponding to each sequence number allocation result matches the communication address stored in the preset pairing data table. If yes, step S311 is executed; otherwise, step S312 is executed.

[0075] In step S311, the remote control terminal associates each communication address with the corresponding host serial number and determines the control status corresponding to each communication address.

[0076] Step S312: The remote control terminal discards the communication addresses that failed to match.

[0077] Preferably, each communication address is associated with its corresponding host serial number, and the control status corresponding to each communication address is determined, including: associating each communication address with its corresponding host serial number, and determining the control status corresponding to each communication address with the associated host serial number as a connected control status.

[0078] In this way, by associating the communication address with the host serial number of the host on the remote control terminal side, a serial number can be assigned to the host; by determining the control status of each communication address with the associated host serial number as a connected control status, the duplicate assignment of serial numbers to the host can be avoided, thereby facilitating the remote control terminal to control the host.

[0079] Preferably, a method for controlling a physiotherapy device is applied to a remote control terminal. The method further includes: receiving operational information sent by the host corresponding to each communication address whose control state is "connected"; and synchronizing data with each host based on the operational information.

[0080] In this way, by synchronizing the operating information of the main unit with the remote control terminal, users can easily understand the operating status of each main unit through the remote control terminal, thereby facilitating users to use the physiotherapy device for physiotherapy and massage.

[0081] In some embodiments, operational information includes data such as the host's current mode and strength.

[0082] Preferably, a method for controlling a physiotherapy device is applied to a remote control terminal. The method further includes: responding to a control command issued by a user, sending the control command to the corresponding host based on the host serial number corresponding to the control command, so as to trigger the host to operate based on the control command.

[0083] Combination Figure 4 As shown, this disclosure provides a method for controlling a physiotherapy device, applied to a host computer; the method includes:

[0084] Step S41: The host receives the first data packet sent by the remote control terminal.

[0085] Step S42: The host sends a communication address to the remote control terminal based on the first data packet.

[0086] In step S43, the host receives the second data packet fed back by the remote control terminal based on the communication address. The second data packet includes a target sequence number, which is a sequence number that is in an unused state.

[0087] In step S44, the host uses the target sequence number as the host sequence number. Here, the host sequence number represents the host's sequence number, that is, the sequence number assigned to the host by the remote control terminal.

[0088] Step S45: The host generates a serial number allocation result based on the host serial number and sends the serial number allocation result to the remote control terminal; wherein, the serial number allocation result includes the host serial number.

[0089] According to the physiotherapy device control method provided in this disclosure, the host computer receives a first data packet sent by a remote control terminal and feeds back the corresponding communication address to the remote control terminal. The remote control terminal then feeds back a second data packet carrying a target sequence number based on this communication address. The target sequence number is then used as the host serial number on the host side, and a serial number allocation result is generated. The serial number allocation result with the host serial number is sent to the remote control terminal, so that the remote control terminal can allocate serial numbers by associating the host's communication address with the host's host serial number. In this way, by receiving the target serial number allocated to each host based on the communication address of each host from the remote control terminal, the host uses the target serial number as its host serial number, thus eliminating the need to permanently assign the host serial number. This reduces the need to differentiate between host programming methods, facilitating host management and user operation.

[0090] Preferably, the first data packet includes the address information of the remote control terminal; sending the communication address to the remote control terminal based on the first data packet includes: pairing based on the address information of the remote control terminal carried in the first data packet; and, if pairing is successful, sending the communication address to the remote control terminal via broadcast.

[0091] Since multiple remote control terminals may exist in a working environment, upon receiving the first data packet, the address information of the remote control terminal carried in the first data packet is matched to determine whether the first data packet was sent by the corresponding remote control terminal. If the match is successful, it means that the first data packet was sent by the corresponding remote control terminal. At this time, the host's communication address is sent to that remote control terminal so that the corresponding remote control terminal can receive the corresponding communication address.

[0092] Specifically, the host computer stores the address information of the remote control terminal that belongs to the same set of physiotherapy equipment as the host computer. This remote control terminal is the one used in conjunction with the host computer. The host computer matches the address information of the remote control terminal carried in the first data packet with the address information of the paired remote control terminal to achieve pairing.

[0093] Preferably, the second data packet also includes the address information of the remote control terminal. Using the target sequence number as the host sequence number includes: pairing based on the address information of the remote control terminal carried in the second data packet; if pairing is successful, the target sequence number is used as the host sequence number.

[0094] Combination Figure 5 As shown, this disclosure provides an embodiment for determining a host serial number, specifically including:

[0095] Step S51: The host receives the first data packet.

[0096] In step S52, the host determines whether the address information of the remote control terminal carried in the first data packet matches the preset pairing address information. If yes, proceed to step S53; otherwise, proceed to step S54. The preset pairing address information refers to the address information of remote control terminals belonging to the same set of physiotherapy devices as the host.

[0097] In step S53, the host sends a communication address to the remote control terminal via broadcast. Then, step S55 is executed.

[0098] In step S54, the host discards the first data packet.

[0099] In step S55, the host receives a second data packet from the remote control terminal based on the communication address. This second data packet includes a target sequence number and the address information of the remote control terminal; the target sequence number is an unused sequence number. Then, step S56 is executed.

[0100] In step S56, the host determines whether the address information of the remote control terminal carried in the second data packet is consistent with the preset pairing address information. If yes, proceed to step S57; otherwise, proceed to step S58.

[0101] In step S57, the host uses the target sequence number as the host sequence number. Then, step S59 is executed.

[0102] In step S58, the host discards the second data packet.

[0103] Step S59: The host generates a serial number allocation result based on the host serial number and sends the serial number allocation result to the remote control terminal; wherein, the serial number allocation result includes the host serial number.

[0104] Furthermore, a method for controlling a physiotherapy device is applied to the main unit. The method further includes: after determining the main unit serial number, sending operating information to the remote control terminal that assigned the main unit serial number.

[0105] In this way, by sending operating information to the remote control terminal assigned the host serial number, the user can easily determine the operating status of the host based on that remote control terminal. In some embodiments, the operating information includes mode and intensity, etc.

[0106] Combination Figure 6 As shown, this disclosure provides an embodiment of interaction between a remote control terminal and a host. For ease of understanding, this disclosure only shows one host, including:

[0107] In step S61, the remote control terminal responds to the sequence number allocation command issued by the user by broadcasting a first data packet. The first data packet carries the address information of the remote control terminal.

[0108] In step S62, the host determines whether the address information of the remote control terminal carried in the first data packet is consistent with the preset pairing address information.

[0109] In step S63, if the conditions are met, the host sends the communication address to the remote control terminal via broadcast.

[0110] Step S64: The remote control terminal determines whether the communication address matches the communication address stored in the preset pairing data table. If so, it determines whether the matched communication address is in an unconnected control state. If so, it queries the occupancy status of each sequence number and selects the sequence number in an unoccupied state with the smallest value as the target sequence number. The target sequence number and the address information of the remote control terminal are used as the second data packet.

[0111] In step S65, the remote terminal sends the second data packet to the host.

[0112] In step S66, the host determines whether the address information of the remote control terminal carried in the second data packet matches the preset pairing address information. If so, the target sequence number is used as the host sequence number; the host sequence number and the host's communication address are used as the sequence number allocation result. The host sequence number represents the host's sequence number.

[0113] In step S67, the host sends the sequence number allocation result to the remote control terminal.

[0114] In step S68, the remote control terminal determines whether the communication address carried in the sequence number allocation result matches the communication address stored in the preset pairing data table. If so, the communication address in the sequence number allocation result is associated with the host sequence number, and the control status of the communication address is determined to be the connected control status.

[0115] A computing device according to an embodiment of the present invention includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, it implements some or all of the steps of the above-described physiotherapy device control method.

[0116] The computing device can be a computer, and the corresponding program is computer software. The parameters and steps in the computing device of the present invention can be referred to the parameters and steps in the embodiment of the physiotherapy instrument control method above, and will not be repeated here.

[0117] In this embodiment of the invention, a computer-readable storage medium is provided, which stores instructions that, when executed, perform the steps of the aforementioned physiotherapy device control method.

[0118] The computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0119] The technical solutions of this disclosure can be embodied in the form of a software product, namely, computer software.

[0120] The product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of the embodiments of this disclosure. The aforementioned computer-readable storage medium can be a non-transitory computer-readable storage medium, including various media capable of storing program code such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or it can be a transient computer-readable storage medium.

[0121] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this disclosure can be embodied in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, the invention can also be implemented as a computer program product contained in one or more computer-readable media, which contains computer-readable program code. Computer-readable storage media can be, for example, but not limited to—electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof.

[0122] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0123] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for controlling a physiotherapy device, characterized in that, Applied to a remote control terminal; the method includes: In response to the sequence number allocation instruction issued by the user, the first data packet is sent via broadcast; Receive the communication address fed back by at least one host based on the first data packet; Based on each of the aforementioned communication addresses, a corresponding second data packet is sent to each host; wherein, the second data packet includes a target sequence number, the target sequence number being an unused sequence number, and each target sequence number being different; Each host receives its own sequence number allocation result based on its corresponding target sequence number; wherein the sequence number allocation result includes a host sequence number, which represents the sequence number of the host. Based on the allocation results of each serial number, each communication address is associated with its corresponding host serial number, and the control status corresponding to each communication address is determined.

2. The method according to claim 1, characterized in that, The step of sending corresponding second data packets to each host based on each of the aforementioned communication addresses includes: Each of the aforementioned communication addresses is determined to be successfully matched with the communication addresses stored in the preset pairing data table. If a match is successful, each of the successfully matched communication addresses will be designated as the first target communication address, and the host pointed to by the first target communication address will be designated as the first target host. Based on each of the first target communication addresses, a corresponding second data packet is sent to each of the first target hosts.

3. The method according to claim 2, characterized in that, The step of sending corresponding second data packets to each of the first target hosts based on each of the first target communication addresses includes: Determine the control status corresponding to each of the first target communication addresses; The first target communication address, whose control status is "not connected", is determined as the second target communication address; Based on each of the second target communication addresses, the corresponding second data packets are sent to each of the second target hosts.

4. The method according to claim 1, characterized in that, Before sending the corresponding second data packet to each host based on each of the aforementioned communication addresses, the method further includes: Query the occupancy status of each sequence number; Each unoccupied sequence number is used as the target sequence number.

5. The method according to claim 4, characterized in that, The step of using each unoccupied sequence number as the target sequence number includes: Each unoccupied sequence number is used as the target sequence number; Determine the target sequence number pointed to by each communication address according to the order in which they are received.

6. The method according to any one of claims 1 to 5, characterized in that, Also includes: Receive operational information sent by the host corresponding to each communication address whose control status is connected; Based on the aforementioned operational information, data synchronization is performed with each of the aforementioned hosts.

7. A method for controlling a physiotherapy device, characterized in that, Applied to a host; the method includes: Receive the first data packet sent by the remote control terminal; The communication address is sent to the remote control terminal based on the first data packet; The remote control terminal receives a second data packet based on the communication address; wherein the second data packet includes a target sequence number, the target sequence number being an unoccupied sequence number; The target sequence number is used as the host sequence number, and the host sequence number represents the sequence number of the host. A serial number allocation result is generated based on the host serial number, and the serial number allocation result is sent to the remote control terminal; wherein, the serial number allocation result includes the host serial number.

8. The method according to claim 7, characterized in that, The first data packet includes the address information of the remote control terminal; sending the communication address to the remote control terminal based on the first data packet includes: Pairing is performed based on the address information of the remote control terminal carried in the first data packet; If pairing is successful, the communication address is sent to the remote control terminal.

9. A computing device, comprising a memory, a processor, and a program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the steps of a physiotherapy device control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the steps of a physiotherapy device control method as described in any one of claims 1 to 8.