Data transmission method, treatment device and computer readable storage medium

Through wireless communication between the first device and the second device, automatic synchronization and transmission of data is realized, and the problem of data loss caused by damage or loss of the remote control is solved, thereby improving transportation convenience and user experience.

CN119537093APending Publication Date: 2025-02-28ZHEJIANG BRAINHEALTH MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311117724.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the one-to-one communication mode between the device and the remote control causes the data to be lost if the remote control is damaged or lost; when the device fails and needs to be returned to the factory for data analysis, the device and the remote control need to be returned, which makes the transportation convenience poor.

Method used

A data transmission method is proposed to realize automatic synchronization and transmission of data through wireless communication between the first device and the second device. When the device or remote control is damaged or lost, the user only needs to return to the factory to repair or replace the damaged part. The functional part can still recover data through wireless communication.

Benefits of technology

Effectively prevent data loss, improve transportation convenience, reduce user expenditures, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537093A_ABST
    Figure CN119537093A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method, a treatment device and a computer readable storage medium. The data transmission method comprises the steps that first equipment and second equipment are subjected to self-inspection after being started up; detecting whether the first equipment or the second equipment is connected with external connection equipment or not when no abnormity exists in the self-inspection; when the first device is not connected with the external connection device, data transmission is carried out between the first device and the second device through wireless communication; when the external connection device is connected, data transmission is carried out between any one of the first device and the second device and the external connection device, and data transmission is carried out between the first device and the second device through wireless communication. The first device and the second device are self-checked after being started up, it is guaranteed that all functions of the first device and the second device are in a normal state, whether the first device or the second device is connected with the external connection device or not is detected according to no abnormity of self-checking, and data transmission is automatically completed according to whether the external connection device is connected or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data transmission, and in particular relates to a data transmission method, a treatment device and a computer-readable storage medium. Background Art

[0002] This section merely provides background information related to the present disclosure and is not necessarily prior art.

[0003] In the field of data transmission, one device is usually configured with one remote control to achieve one-to-one communication between the device and the remote control. When data needs to be exported, only the remote control has the data export and import functions. If the remote control is damaged or lost, the data is lost and cannot be retrieved. When the device fails and needs to be returned to the factory for data analysis, the device and the remote control need to be returned in full. When the device is large in size, the transportation convenience is poor. Summary of the invention

[0004] In view of the above problems, a first aspect of the present invention provides a data transmission method for a first device and a second device used in conjunction with each other, comprising:

[0005] After the first device and the second device are powered on, they respectively conduct self-tests;

[0006] When the self-test is abnormal, exit the self-test;

[0007] When the self-check is normal, detecting whether an external connection device is connected to the first device or the second device;

[0008] When the external connection device is not connected, the first device and the second device perform data transmission via wireless communication;

[0009] When the external connection device is connected, data is transmitted between either the first device or the second device and the external connection device, and data is transmitted between the first device and the second device via wireless communication.

[0010] After the first device and the second device are powered on, they respectively conduct self-tests to ensure that various functions of the first device and the second device are in normal status. When there is no abnormality in the self-test, it is detected whether an external connection device is connected on the first device or the second device, and data transmission is automatically completed according to whether the external connection device is connected.

[0011] When the external connection device is not connected, the first device and the second device perform data transmission via wireless communication, so that the data stored in the first device and the second device remain consistent. When the data needs to be exported, any one of the first device and the second device can be selected to connect to the external connection device to complete the data export. When any one of the first device and the second device is damaged, faulty or lost, the user can return only the damaged or faulty part to the factory for repair, without returning the entire first device and the second device to the factory, thereby improving the convenience of transportation. The damaged or faulty part is returned to the user after repair. Since the data is still stored in the intact part, the data can be synchronized between the first device and the second device again through wireless communication to complete data recovery and effectively prevent data loss. When any one of the first device and the second device is lost, the user only needs to purchase the lost part, and the unlost part is transmitted through wireless communication to complete the pairing of the purchased new device, thereby reducing the user's expenditure and improving the user's experience.

[0012] When connecting to an external connection device, you can choose to export or import data between the first device or the second device and the external connection device. When you choose to import data between the first device or the second device and the external connection device, the first device and the second device can retransmit the content of the imported data through wireless communication, so that the data stored in the first device and the second device remain consistent.

[0013] In some embodiments of the present invention, when the external connection device is not connected, the data transmission between the first device and the second device through wireless communication includes the following steps:

[0014] S1, obtaining first data and a first maximum index number stored in the first device;

[0015] S2, obtaining second data and a second maximum index number stored in the second device;

[0016] S3, comparing the first maximum index number and the second maximum index number;

[0017] When the second maximum index number is smaller than the first maximum index number, the process goes to S4, determines that the second data is not the latest data and the first data is the latest data, sends the first data to the second device, and repeats S1-S3 until the second maximum index number is equal to the first maximum index number, and then goes to S6;

[0018] When the first maximum index number is smaller than the second maximum index number, the process goes to S5, determines that the first data is not the latest data and the second data is the latest data, sends the second data to the first device, and repeats S1-S3 until the first maximum index number is equal to the second maximum index number, and then goes to S6;

[0019] When the first maximum index number is equal to the second maximum index number, the process goes to S6, determines that both the first data and the second data are the latest data, and stops data transmission.

[0020] In some embodiments of the present invention, when the second maximum index number is less than the first maximum index number, determining that the second data is non-latest data and the first data is latest data, and sending the first data to the second device comprises the following steps:

[0021] The first device receives a data acquisition instruction sent by the second device;

[0022] The first device parses the data acquisition instruction, sends a confirmation data acquisition instruction to the second device, and sends data to the second device based on the data acquisition instruction.

[0023] In some embodiments of the present invention, when the first maximum index number is less than the second maximum index number, determining that the first data is non-latest data and the second data is latest data, and sending the second data to the first device comprises the following steps:

[0024] The second device receives the data acquisition instruction sent by the first device;

[0025] The second device parses the data acquisition instruction, sends a confirmation data acquisition instruction to the first device, and sends data to the first device based on the data acquisition instruction.

[0026] In some embodiments of the present invention, when the external connection device is connected, data is transmitted between either the first device or the second device and the external connection device, and the data transmission between the first device and the second device through wireless communication includes the steps of:

[0027] When the external connection device is connected, the first device receives data sent by the external connection device, and the first device and the second device perform data transmission via wireless communication; or,

[0028] When the external connection device is connected, the second device receives data sent by the external connection device, and the second device and the first device perform data transmission via wireless communication; or,

[0029] When the external connection device is connected, the first device or the second device transmits the stored data to the external connection device.

[0030] In some embodiments of the present invention, when the external connection device is connected, data is transmitted between either the first device or the second device and the external connection device, and the data transmission between the first device and the second device through wireless communication further includes the steps of:

[0031] When the external connection device is connected, the first device or the second device receives a firmware upgrade installation package sent by the external connection device;

[0032] The first device or the second device parses the firmware upgrade installation package and installs the firmware upgrade installation package.

[0033] In some embodiments of the present invention, before the first device and the second device respectively perform self-tests after being powered on, the data transmission method further includes:

[0034] The first device receives a handshake instruction sent by the second device;

[0035] The first device parses the handshake instruction, and sends a confirmation handshake instruction to the second device to establish a connection with the second device.

[0036] In some embodiments of the present invention, the data transmission method further includes:

[0037] The first device receives a control instruction sent by the second device;

[0038] The first device parses the control instruction, sends a confirmation control instruction to the second device, and executes the control instruction.

[0039] In some embodiments of the present invention, the data transmission method further includes:

[0040] The first device receives a heartbeat packet sent by the second device according to a preset heartbeat time;

[0041] The first device parses the heartbeat packet;

[0042] When the first device receives a confirmation heartbeat packet from the second device within a preset response time, confirming that the first device and the second device are in a connection state;

[0043] When the first device does not receive the confirmation heartbeat packet from the second device within the preset response time, it is confirmed that the first device and the second device are disconnected.

[0044] A second aspect of the present invention provides a treatment device for executing the data transmission method of the above technical solution, comprising a first device and a second device;

[0045] The first device includes a first interface module, a first control module, a first storage module, a first interface to serial communication module and a first communication module, the first interface to serial communication module, the first storage module and the first communication module are respectively connected to the first control module, the first interface module is connected to the first interface to serial communication module, the first storage module is used to store data of the first device, the first interface module is used for the first device to connect to an external connection device to transmit data, and the first control module is used to control the first interface module, the first storage module and the first communication module;

[0046] The second device includes a second interface module, a second control module, a second storage module, a second interface to serial communication module and a second communication module, the second interface to serial communication module, the second storage module and the second communication module are respectively connected to the second control module, the second interface module is connected to the second interface to serial communication module, the second storage module is used to store data of the second device, the second interface module is used for the second device to connect with the external connection device to transmit data, and the second control module is used to control the second interface module, the second storage module and the second communication module;

[0047] The first device and the second device transmit data via the first communication module and the second communication module.

[0048] The therapeutic device of the embodiment of the present invention has the same beneficial effects as the data transmission method in the above embodiment, which will not be described in detail here.

[0049] In some embodiments of the present invention,

[0050] When transmitting data, the first control module obtains the data stored in the first storage module and sends it to the external connection device via the first interface module, and / or the second control module obtains the data stored in the second storage module and sends it to the external connection device via the second interface module;

[0051] When importing firmware update and upgrade, the first control module obtains the firmware upgrade installation package of the externally connected device through the first interface module and sends it to the first storage module for storage, and / or the second control module obtains the firmware upgrade installation package of the externally connected device through the second interface module and sends it to the second storage module for storage.

[0052] In some embodiments of the present invention, the first interface module is connected to the first control module via an adapter board.

[0053] In some embodiments of the present invention, the first device also includes a treatment control module, the treatment control module is used to execute treatment instructions, the first control module is used to control the treatment control module, the treatment control module includes at least one LED unit, and at least one of the LED units is used to emit infrared light.

[0054] In some embodiments of the present invention, the first device further comprises an alarm module, a first digital-to-analog conversion module, a treatment current detection module and a treatment state detection module, wherein the alarm module, the first digital-to-analog conversion module, the treatment current detection module, the treatment state detection module and the treatment control module are respectively connected to the first control module, the alarm module is used to send an alarm to the user, the first digital-to-analog conversion module is used to convert a signal, the treatment current detection module is used to detect the current of the LED unit, and the treatment state detection module is used to detect the state of the LED unit;

[0055] The second device also includes a button module, a display module and a second digital-to-analog conversion module. The button module, the display module and the second digital-to-analog conversion module are respectively connected to the second control module. The button module is used for the user to input control instructions, the display module is used to display self-examination or treatment information, and the second digital-to-analog conversion module is used to convert signals.

[0056] In some embodiments of the present invention, the first device is a wearable therapeutic helmet and the second device is a remote control device.

[0057] A third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method of the above technical solution is implemented.

[0058] The computer-readable storage medium of the embodiment of the present invention has the same beneficial effects as the data transmission method in the above embodiment when the computer program stored thereon is executed, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0060] Figure 1 is a flow chart of a data transmission method according to an embodiment of the present invention;

[0061] Figure 2 for Figure 1 The flowchart shown is of data transmission between the first device and the second device through wireless communication according to the fact that the external connection device is not connected;

[0062] Figure 3 for Figure 2 The flowchart shown is a flowchart of determining that the second data is non-latest data and the first data is latest data according to that the second maximum index number is smaller than the first maximum index number, and sending the first data to the second device;

[0063] Figure 4 for Figure 2 As shown, according to the first maximum index number being smaller than the second maximum index number, determining that the first data is non-latest data and the second data is latest data, and sending the second data to the first device;

[0064] Figure 5 It is a schematic diagram of the first interface module and the first interface to serial communication module in the first device of an embodiment of the present invention being connected via an adapter board;

[0065] Figure 6 It is a schematic diagram of the first interface module and the first interface to serial communication module in the first device of an embodiment of the present invention being connected via an adapter board;

[0066] Figure 7 A schematic diagram of the composition of a first device according to an embodiment of the present invention;

[0067] Figure 8 is a schematic diagram of the composition of a second device according to an embodiment of the present invention;

[0068] Fig. 9 It is a schematic diagram of the three-dimensional structure of the first device according to an embodiment of the present invention;

[0069] Fig.10 for Fig. 9 A schematic diagram of a main control board and a USB connector of a first device;

[0070] Fig.11 It is a schematic diagram of the three-dimensional structure of the second device according to an embodiment of the present invention.

[0071] Fig.12 for Fig.11 Schematic diagram of the main control board and USB connector of the second device. DETAILED DESCRIPTION

[0072] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0073] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "a", "an", and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain", and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof.

[0074] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.

[0075] For ease of description, spatial relative terms may be used herein to describe the relationship of one element or feature relative to another element or feature as shown in the figure, such as "inside", "outside", "inner side", "outer side", "below", "below", "above", "above", etc. Such spatial relative terms are intended to include different orientations of the device in use or operation in addition to the orientation depicted in the figure. For example, if the device in the figure is turned over, then the elements described as "below other elements or features" or "below other elements or features" will subsequently be oriented as "above other elements or features" or "above other elements or features". Therefore, the example term "below..." can include both upper and lower orientations. The device can be oriented otherwise (rotated 90 degrees or in other directions) and the spatial relative descriptors used in the text are interpreted accordingly.

[0076] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.

[0077] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0078] like Figure 1 As shown, a first aspect of the present invention provides a data transmission method for a first device 1 and a second device 2 used in conjunction with each other, comprising:

[0079] After the first device 1 and the second device 2 are powered on, they respectively conduct self-tests; when the self-test is abnormal, they exit the self-test;

[0080] When the self-check is normal, detect whether the first device 1 or the second device 2 is connected to an external connection device (not shown);

[0081] When no external connection device (not shown) is connected, data is transmitted between the first device 1 and the second device 2 via wireless communication;

[0082] When an external connection device (not shown) is connected, data is transmitted between either the first device 1 or the second device 2 and the external connection device (not shown), and data is transmitted between the first device 1 and the second device 2 via wireless communication.

[0083] The data transmission in the data transmission method provided by the present invention includes data writing relative to the first device 1 or the second device 2, such as the import of a firmware upgrade installation package, the import of data on an external connection device (not shown) into the first device 1 and / or the second device 2, and data export relative to the first device 1 or the second device 2, such as the export of data stored in the first device 1 or the data stored in the second device 2 to an external connection device (not shown).

[0084] After being powered on, the first device 1 and the second device 2 respectively perform self-checks to ensure that various functions of the first device 1 and the second device 2 are in normal state. When there is no abnormality in the self-check, it detects whether an external connection device (not shown) is connected to the first device 1 or the second device 2, and automatically completes data transmission according to whether the external connection device (not shown) is connected.

[0085] When the external connection device (not shown) is not connected, the first device 1 and the second device 2 transmit data through wireless communication, so that the data stored in the first device 1 and the second device 2 are consistent. When the data needs to be exported, any one of the first device 1 and the second device 2 can be selected to connect to the external connection device (not shown) to complete the data export. When any one of the first device 1 and the second device 2 is damaged, faulty or lost, the user can only return the damaged or faulty part to the factory for repair, without returning the first device 1 and the second device 2 in full, thereby improving the convenience of transportation. The damaged or faulty part is returned to the user after repair. Since the data is still stored in the intact part, the data can be synchronized between the first device 1 and the second device 2 again through wireless communication to complete data recovery and effectively prevent data loss. When any one of the first device 1 and the second device 2 is lost, the user only needs to purchase the lost part, and the unlost part is transmitted through wireless communication to complete the pairing of the purchased new device, thereby reducing the user's expenditure and improving the user's experience.

[0086] When connecting to an external connection device (not shown), you can choose to export or import data between the first device 1 or the second device 2 and the external connection device (not shown). When you choose to import data between the first device 1 or the second device 2 and the external connection device (not shown), the content of the imported data can be transmitted again between the first device 1 and the second device 2 via wireless communication, so that the data stored in the first device 1 and the second device 2 remain consistent.

[0087] In some embodiments of the present invention, when no external connection device (not shown) is connected, the first device 1 and the second device 2 perform data transmission via wireless communication. In order to make the data transmission effective, it is necessary to determine which of the first data stored in the first device 1 and the second data stored in the second device 2 is the latest data, and perform data transmission via wireless communication based on the latest data. Specifically, Figure 2 As shown, when no external connection device (not shown) is connected, data transmission between the first device 1 and the second device 2 through wireless communication includes the following steps: S1, obtaining the first data and the first maximum index number stored in the first device 1; S2, obtaining the second data and the second maximum index number stored in the second device 2; S3, comparing the size of the first maximum index number and the second maximum index number; when the second maximum index number is less than the first maximum index number, go to S4, determine that the second data is not the latest data, the first data is the latest data, send the first data to the second device 2, and repeat S1-S3 until the second maximum index number is equal to the first maximum index number, and go to S6; when the first maximum index number is less than the second maximum index number, go to S5, determine that the first data is not the latest data, the second data is the latest data, send the second data to the first device 1, and repeat S1-S3 until the first maximum index number is equal to the second maximum index number, and go to S6; when the first maximum index number is equal to the second maximum index number, go to S6, determine that the first data and the second data are both the latest data, and stop data transmission. The first maximum index number of the first device 1 and the second maximum index number of the second device 2 can be used to determine which of the data stored in the first device 1 and the data stored in the second device 2 is the latest data.

[0088] In some embodiments of the present invention, after determining that the data stored in the first device 1 is the latest data, it is necessary to perform data transmission with the second device 2 via wireless communication. Specifically, Figure 3 As shown, when the second maximum index number is less than the first maximum index number, it is determined that the second data is not the latest data and the first data is the latest data, and sending the first data to the second device 2 includes the following steps: the first device 1 receives the data acquisition instruction sent by the second device 2; the first device 1 parses the data acquisition instruction and sends a confirmation data acquisition instruction to the second device 2 and sends data to the second device 2 based on the data acquisition instruction. After the data transmission is completed, in order to ensure the validity of the transmission, the size of the first maximum index number and the second maximum index number can be compared again. When the two are equal, the first data is consistent with the second data and both are the latest data.

[0089] In some embodiments of the present invention, after determining that the data stored in the second device 2 is the latest data, it is necessary to perform data transmission with the first device 1 through wireless communication. Specifically, Figure 4As shown, when the first maximum index number is less than the second maximum index number, it is determined that the first data is not the latest data and the second data is the latest data, and sending the second data to the first device 1 includes the following steps: the second device 2 receives the data acquisition instruction sent by the first device 1; the second device 2 parses the data acquisition instruction and sends a confirmation data acquisition instruction to the first device 1 and sends data to the first device 1 based on the data acquisition instruction. After the data transmission is completed, in order to ensure the validity of the transmission, the size of the first maximum index number and the second maximum index number can be compared again. When the two are equal, the first data is consistent with the second data and both are the latest data.

[0090] In some embodiments of the present invention, the following situations exist between the first device 1 or the second device 2 and the external connection device (not shown): the first device 1 transmits data to the external connection device (not shown), the second device 2 transmits data to the external connection device (not shown), the external connection device (not shown) transmits data to the first device 1, and the external connection device (not shown) transmits data to the second device 2. Specifically, when the external connection device (not shown) is connected, data is transmitted between the first device 1 or the second device 2 and the external connection device (not shown), and the data transmission between the first device 1 and the second device 2 through wireless communication includes: when the external connection device (not shown) is connected, the first device 1 receives data sent by the external connection device (not shown), and the first device 1 and the second device 2 transmit data through wireless communication; or when the external connection device (not shown) is connected, the second device 2 receives data sent by the external connection device (not shown), and the second device 2 and the first device 1 transmit data through wireless communication; or when the external connection device (not shown) is connected, the first device 1 or the second device 2 sends the stored data to the external connection device (not shown).

[0091] In some embodiments of the present invention, after the first device 1 and the second device 2 are powered on and self-checked respectively, it is necessary to ensure that the first device 1 and the second device 2 are paired and connected to ensure the accuracy of data transmission. Specifically, the data transmission method also includes: the first device 1 receives a handshake instruction sent by the second device 2; the first device 1 parses the handshake instruction and sends a confirmation handshake instruction to the second device 2 to establish a connection with the second device 2.

[0092] In some embodiments of the present invention, the first device 1 and the second device 2 are two devices used together, and there is a control and execution relationship between the two devices. The data transmission method also includes: the first device 1 receives a control instruction sent by the second device 2; the first device 1 parses the control instruction, sends a confirmation control instruction to the second device 2, and executes the control instruction. The control instruction may include start, pause, stop, and different execution modes.

[0093] In some embodiments of the present invention, the wireless communication methods are divided into long-distance wireless communication and short-distance wireless communication. Long-distance wireless communication includes GPRS (General Packet Radio Service) / CDMA (Code Division Multiple Access), digital radio, spread spectrum microwave, wireless bridge and satellite communication, short-wave communication technology, etc. Short-distance wireless communication includes Zig-Bee, Bluetooth, Wi-Fi (wireless broadband), UWB (Ultra Wide Band) and NFC (Near Field Communication). Regardless of the communication method, the connection established between the first device 1 and the second device 2 may be disconnected during the communication process due to the presence of shielding objects in the environment, network instability, etc., so the second device 2 needs to send a heartbeat packet to the first device 1 to periodically detect whether the connection between the first device 1 and the second device 2 is disconnected. Specifically, the data transmission method also includes: the first device 1 receives a heartbeat packet sent by the second device 2 according to a preset heartbeat time; the first device 1 parses the heartbeat packet; based on the first device 1 receiving a confirmation heartbeat packet from the second device 2 within a preset response time, confirming that the first device 1 and the second device 2 are in a connected state; based on the first device 1 not receiving a confirmation heartbeat packet from the second device 2 within the preset response time, confirming that the first device 1 and the second device 2 are in a disconnected state.

[0094] like Figure 5 , Figure 6 As shown, Fig. 9 and Fig.10 As shown, an embodiment of the present invention further provides a treatment device 200, which is used to execute the data transmission method in the above embodiment, including a first device 1 and a second device 2;

[0095] The first device 1 includes a first interface module 11, a first control module 12, a first storage module 13, a first interface to serial communication module 14 and a first communication module 15. The first interface to serial communication module 14, the first storage module 13 and the first communication module 15 are respectively connected to the first control module 12. The first interface module 11 is connected to the first interface to serial communication module 14. The first storage module 13 is used to store data of the first device 1. The first interface module 11 is used for the first device 1 to connect to an external connection device (not shown) to transmit data. The first control module 12 is used to control the first interface module 11, the first storage module 13 and the first communication module 15.

[0096] The second device 2 includes a second interface module 21, a second control module 22, a second storage module 23, a second interface to serial communication module 24 and a second communication module 25. The second interface to serial communication module 24, the second storage module 23 and the second communication module 25 are respectively connected to the second control module 22. The second interface module 21 is connected to the second interface to serial communication module 24. The second storage module 23 is used to store data of the second device 2. The second interface module 21 is used for the second device 2 to connect to an external connection device (not shown) to transmit data. The second control module 22 is used to control the second interface module 21, the second storage module 23 and the second communication module 25.

[0097] The first device 1 and the second device 2 transmit data via the first communication module 15 and the second communication module 25 .

[0098] The therapeutic device 200 of the embodiment of the present invention has the same beneficial effects as the data transmission method in the above embodiment, which will not be described in detail here.

[0099] In some embodiments of the present invention, the first interface module 11 and the second interface module 21 may be a USB interface, a micro USB interface, a lightning interface or a type C interface.

[0100] In some embodiments of the present invention, when transmitting data, the first control module 12 obtains the data stored in the first storage module 13 and sends it to the external connection device (not shown) via the first interface module 11, and / or the second control module 22 obtains the data stored in the second storage module 23 and sends it to the external connection device (not shown) via the second interface module 21;

[0101] When importing a firmware update or upgrade, the first control module 12 obtains the firmware upgrade installation package of the external connection device (not shown) via the first interface module 11 and sends it to the first storage module 13 for storage, and / or the second control module 22 obtains the firmware upgrade installation package of the external connection device (not shown) via the second interface module 21 and sends it to the second storage module 23 for storage.

[0102] In some embodiments of the present invention, Figure 5 and Figure 6 As shown, the first interface module 11 is connected to the first control module 12 via an adapter board 16. In other embodiments, the first interface module 11 is integrated into the first control module 12.

[0103] In some embodiments of the present invention, Figure 7As shown, the first device 1 also includes a treatment control module 17, which is used to execute treatment instructions, and the first control module 12 is used to control the treatment control module 17, and the treatment control module 17 includes at least one LED unit 170, and at least one LED unit 170 is used to emit near-infrared light. In one embodiment, the treatment control module 17 includes a plurality of LED units 170, and the plurality of LED units 170 are distributed at the front, top, and rear of the treatment device 200. The LED unit 170 can emit near-infrared light, which can penetrate deep into the brain and has a good therapeutic effect on Alzheimer's disease.

[0104] In some embodiments of the present invention, Figure 7 and Figure 8 As shown, the first device 1 also includes an alarm module 18, a first digital-to-analog conversion module 19, a treatment current detection module 171 and a treatment state detection module 172, the alarm module 18, the first digital-to-analog conversion module 19, the treatment current detection module 171 and the treatment state detection module 172 are respectively connected to the first control module 12, the alarm module 18 is used to send an alarm to the user, the first digital-to-analog conversion module 19 is used to convert signals, the treatment current detection module 171 is used to detect the current of the LED unit 170, and the treatment state detection module 172 is used to detect the state of the LED unit 170;

[0105] The second device 2 also includes a button module 26, a display module 27 and a second digital-to-analog conversion module 28. The button module 26, the display module 27 and the second digital-to-analog conversion module 28 are respectively connected to the second control module 22. The button module 26 is used for the user to input control instructions, the display module 27 is used to display self-examination or treatment information, and the second digital-to-analog conversion module 28 is used to convert signals.

[0106] In some embodiments of the present invention, Figures 9 to 12 As shown, the first device 1 is a head-mounted light therapy device 10, and the second device 2 is a remote control handle 70. In other embodiments, the first device 1 can also be a wearable treatment wristband, a wearable treatment top, etc.

[0107] like Fig. 9 and Fig.10As shown, the first device 1 of the present invention is a head-mounted phototherapy device 10, which includes an upper shell 20, a front shell 30 and a rear shell 40 located below the upper shell 20, wherein the front shell 30 and the rear shell 40 are arranged opposite to each other. The upper shell 20, the front shell 30 and the rear shell 40 together enclose a head-mounted space 100 with an open lower portion. The illumination component (not shown) is respectively arranged in the upper shell 20, the front shell 30 and the rear shell 40 and faces the head-mounted space 100 to ensure that the illumination energy density of the upper shell 20, the front shell 30 and the rear shell 40 is greater than or equal to 10mW / cm2. The upper shell 20 at least covers the top area of ​​the patient's head, the front shell 30 at least covers the facial areas such as the forehead, eyes, left and right temples of the patient's head, and the rear shell 40 at least covers the back of the patient's head. The illumination component (not shown) generates near-infrared light of the wavelength and pulse frequency required for treatment, and the near-infrared light enters the head-mounted space 100 to irradiate the patient's head at a close distance. The upper housing 20 is provided with a main control board 50 for controlling the operation of all lighting components (not shown) and a USB connector 60 connected to the outside, and the upper housing 20 is provided with a USB plug interface 61 corresponding to the USB connector 60. The aforementioned first control module 12, the first storage module 13, the first interface to serial communication module 14 and the first communication module 15 are all integrated units integrated on the main control board 50, and the aforementioned first interface module 11 corresponds to the USB connector 60. In this embodiment, the USB connector 60 is provided on the adapter board 52, and the adapter board 52 is connected to the main control board 50 through a connecting line 53.

[0108] like Fig.11 and Fig.12 As shown, the second device 2 of the present invention is a remote control handle 70 that is paired with the first device 1 in a wireless manner. The remote control handle 70 is provided with a button 71 for controlling the power on / off and start / pause / stop of the head-mounted light therapy device 10, and a display screen 72 for displaying the self-test or working status. The remote control handle 70 is provided with a main control board 80 for controlling the operation of the remote control handle 70 and the head-mounted light therapy device 10, and a USB connector 90 connected to the outside. The remote control handle 70 is provided with a USB plug interface 91 corresponding to the USB connector 90. The aforementioned second interface module 21, second control module 22, second storage module 23, second interface to serial communication module 24 and second communication module 25 are all integrated units integrated on the main control board 80, wherein the second interface module 21 corresponds to the USB connector 90. In this embodiment, the USB connector 90 is an integrated unit integrated on the main control board 80.

[0109] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method of any of the above embodiments is implemented.

[0110] The computer-readable storage medium of the embodiment of the present invention has the same beneficial effects as the data transmission method in the above embodiment when the computer program stored thereon is executed, which will not be described in detail here.

[0111] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (Phase Change Random Access Memory, referred to as PRAM), static random access memory (Static Random-Access Memory, referred to as SRAM), dynamic random access memory (Dynamic Random Access Memory, referred to as DRAM), other types of random access memory (Random Access Memory, referred to as RAM), read-only memory (Read-Only Memory, referred to as ROM), electrically erasable programmable read only memory (Electrically Erasable Programmable read only memory, referred to as EEPROM), flash memory or other optical or magnetic storage media, which are not listed one by one here.

[0112] The above are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A data transmission method, for use with a first device and a second device, characterized in that: include: After the first device and the second device are powered on, they respectively conduct self-tests; When the self-test is abnormal, exit the self-test; When the self-check is normal, detecting whether an external connection device is connected to the first device or the second device; When the external connection device is not connected, the first device and the second device perform data transmission via wireless communication; When the external connection device is connected, data is transmitted between either the first device or the second device and the external connection device, and data is transmitted between the first device and the second device via wireless communication.

2. The data transmission method according to claim 1, characterized in that: When the external connection device is not connected, data transmission between the first device and the second device through wireless communication includes the following steps: S1, obtaining first data and a first maximum index number stored in the first device; S2, obtaining second data and a second maximum index number stored in the second device; S3, comparing the first maximum index number and the second maximum index number; When the second maximum index number is smaller than the first maximum index number, the process goes to S4, determines that the second data is not the latest data and the first data is the latest data, sends the first data to the second device, and repeats S1-S3 until the second maximum index number is equal to the first maximum index number, and then goes to S6; When the first maximum index number is smaller than the second maximum index number, the process goes to S5, determines that the first data is not the latest data and the second data is the latest data, sends the second data to the first device, and repeats S1-S3 until the first maximum index number is equal to the second maximum index number, and then goes to S6; When the first maximum index number is equal to the second maximum index number, the process goes to S6, determines that both the first data and the second data are the latest data, and stops data transmission.

3. The data transmission method according to claim 2, characterized in that: When the second maximum index number is smaller than the first maximum index number, determining that the second data is non-latest data and the first data is latest data, and sending the first data to the second device comprises the following steps: The first device receives a data acquisition instruction sent by the second device; The first device parses the data acquisition instruction, sends a confirmation data acquisition instruction to the second device, and sends data to the second device based on the data acquisition instruction.

4. The data transmission method according to claim 2, characterized in that: When the first maximum index number is smaller than the second maximum index number, determining that the first data is non-latest data and the second data is latest data, and sending the second data to the first device comprises the following steps: The second device receives the data acquisition instruction sent by the first device; The second device parses the data acquisition instruction, sends a confirmation data acquisition instruction to the first device, and sends data to the first device based on the data acquisition instruction.

5. The data transmission method according to claim 1, characterized in that: When the external connection device is connected, data is transmitted between the first device or the second device and the external connection device, and the data transmission between the first device and the second device through wireless communication includes the following steps: When the external connection device is connected, the first device receives data sent by the external connection device, and the first device and the second device perform data transmission via wireless communication; or, When the external connection device is connected, the second device receives data sent by the external connection device, and the second device and the first device perform data transmission via wireless communication; or, When the external connection device is connected, the first device or the second device transmits the stored data to the external connection device.

6. The data transmission method according to claim 1, characterized in that: When the external connection device is connected, data is transmitted between the first device or the second device and the external connection device, and the data transmission between the first device and the second device through wireless communication further includes the steps of: When the external connection device is connected, the first device or the second device receives a firmware upgrade installation package sent by the external connection device; The first device or the second device parses the firmware upgrade installation package and installs the firmware upgrade installation package.

7. The data transmission method according to claim 1, characterized in that: Before the first device and the second device respectively perform self-tests after being powered on, the data transmission method further includes: The first device receives a handshake instruction sent by the second device; The first device parses the handshake instruction, and sends a confirmation handshake instruction to the second device to establish a connection with the second device.

8. The data transmission method according to claim 1, characterized in that: The data transmission method further comprises: The first device receives a control instruction sent by the second device; The first device parses the control instruction, sends a confirmation control instruction to the second device, and executes the control instruction.

9. The data transmission method according to claim 1, characterized in that: The data transmission method further comprises: The first device receives a heartbeat packet sent by the second device according to a preset heartbeat time; The first device parses the heartbeat packet; When the first device receives a confirmation heartbeat packet from the second device within a preset response time, confirming that the first device and the second device are in a connection state; When the first device does not receive the confirmation heartbeat packet from the second device within the preset response time, it is confirmed that the first device and the second device are disconnected.

10. A treatment device, used to execute the data transmission method according to any one of claims 1 to 9, characterized in that: comprising a first device and a second device; The first device includes a first interface module, a first control module, a first storage module, a first interface to serial communication module and a first communication module, the first interface to serial communication module, the first storage module and the first communication module are respectively connected to the first control module, the first interface module is connected to the first interface to serial communication module, the first storage module is used to store data of the first device, the first interface module is used for the first device to connect to an external connection device to transmit data, and the first control module is used to control the first interface module, the first storage module and the first communication module; The second device includes a second interface module, a second control module, a second storage module, a second interface to serial communication module and a second communication module, the second interface to serial communication module, the second storage module and the second communication module are respectively connected to the second control module, the second interface module is connected to the second interface to serial communication module, the second storage module is used to store data of the second device, the second interface module is used for the second device to connect with the external connection device to transmit data, and the second control module is used to control the second interface module, the second storage module and the second communication module; The first device and the second device transmit data via the first communication module and the second communication module.

11. The treatment device according to claim 10, characterized in that When transmitting data, the first control module obtains the data stored in the first storage module and sends it to the external connection device via the first interface module, and / or the second control module obtains the data stored in the second storage module and sends it to the external connection device via the second interface module; When importing firmware update and upgrade, the first control module obtains the firmware upgrade installation package of the externally connected device through the first interface module and sends it to the first storage module for storage, and / or the second control module obtains the firmware upgrade installation package of the externally connected device through the second interface module and sends it to the second storage module for storage.

12. The treatment device according to claim 10, characterized in that The first interface module is connected to the first control module via an adapter board.

13. The treatment device according to claim 10, characterized in that The first device also includes a treatment control module, which is used to execute treatment instructions. The first control module is used to control the treatment control module. The treatment control module includes at least one LED unit, and at least one of the LED units is used to emit near-infrared light.

14. The treatment device according to claim 13, characterized in that The first device further includes an alarm module, a first digital-to-analog conversion module, a treatment current detection module, and a treatment state detection module, wherein the alarm module, the first digital-to-analog conversion module, the treatment current detection module, the treatment state detection module, and the treatment control module are respectively connected to the first control module, the alarm module is used to send an alarm to a user, the first digital-to-analog conversion module is used to convert a signal, the treatment current detection module is used to detect the current of the LED unit, and the treatment state detection module is used to detect the state of the LED unit; The second device also includes a button module, a display module and a second digital-to-analog conversion module. The button module, the display module and the second digital-to-analog conversion module are respectively connected to the second control module. The button module is used for the user to input control instructions, the display module is used to display self-examination or treatment information, and the second digital-to-analog conversion module is used to convert signals.

15. The treatment device according to claim 10, characterized in that The first device is a wearable treatment helmet, and the second device is a remote control device.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 9 is implemented.