Electrical stimulator sub-machine identification system
By configuring charging hatches with multiple communication methods in the charging compartment of the electrical stimulation therapy device, the problem of not being able to accurately identify the sub-machine number in the prior art is solved, and fast and accurate sub-machine identification and multi-machine communication are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202411583809.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-07
AI Technical Summary
The existing electrical stimulation therapy instruments cannot accurately identify the number of the sub-machine, resulting in inconvenient treatment process.
An electrical stimulator sub-machine identification system is designed. By setting up multiple charging hatches in the charging compartment, and at least one charging hatches are configured to communicate with the sub-machine serial port, the rest is IO port communication, and the sub-machine number is identified using serial port communication data and interrupt trigger information, and the number is sent to the host for display.
It realizes fast and accurate identification of any sub-machine number, facilitates understanding of the sub-machine status, improves user experience, and realizes two-way communication between multiple sub-machines and charging compartments.
Smart Images

Figure CN119541817A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and more specifically to an electric stimulation device sub-machine identification system. Background Art
[0002] At present, there are many types of electrical stimulation therapeutic devices on the market, which are usually composed of a main unit and multiple rechargeable sub-units. During use, in order to facilitate the use and check the status of the machine, it is usually necessary to display the sub-unit number, charging status, current power and treatment information on the main unit. However, the existing electrical stimulation therapeutic devices can usually only display the treatment information, and the main unit cannot accurately identify the specific number of each sub-unit, which brings inconvenience to the treatment process. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide an electric stimulator sub-unit identification system which can realize rapid and accurate identification of any sub-unit number.
[0004] In order to solve the above technical problems, the present invention provides an electric stimulator sub-machine identification system, which includes a main unit, a charging compartment connected to the main unit, and multiple sub-machines, wherein the charging compartment is provided with multiple charging hatches, and at least one charging hatch is configured to be connected to the sub-machine in a serial port communication mode, and the remaining charging hatches are configured to be connected to the sub-machine in an IO port communication mode, and the electric stimulator sub-machine identification system adopts the following steps to identify the sub-machine:
[0005] The charging compartment detects whether a handset is inserted into any charging compartment;
[0006] If yes, the charging port obtains the serial number information from the slave, the serial number information includes serial communication data and interrupt trigger information; wherein the serial communication data includes the slave number, and the interrupt trigger information includes N interrupt trigger bits, where N=the number of slaves-1;
[0007] If the charging hatch is a charging hatch configured to be connected to the slave unit in a serial communication manner, the slave unit number is directly obtained according to the serial communication data in the numbering information;
[0008] If the charging hatch is configured to be connected to the slave unit in an IO port communication mode, then according to the formula The slave machine number k is obtained by calculation and can be sent to the host for display; wherein fall_num is the actual interrupt triggering number.
[0009] A further technical solution is: after sending the slave unit number k to the host for display, it also includes: the charging compartment obtains the battery power and treatment information of the slave unit, and sends them to the host for display.
[0010] A further technical solution is: obtaining the battery power and treatment information of the sub-machine in the charging compartment, and before that, it also includes: the host sends the treatment information to the charging compartment, and the charging compartment transmits it to the corresponding sub-machine.
[0011] A further technical solution is: the host is connected to the charging compartment via a serial port, and the charging compartment is connected to the sub-machine via a 2.4G communication method.
[0012] Its further technical solution is: the charging bay includes a charging bay main control unit, multiple charging bay port charging units and multiple charging bay port processing units connected to the charging bay main control unit, wherein the charging bay port charging unit charges the charging bay port processing unit and the sub-machine, the charging bay main control unit is connected to the host and the sub-machine respectively through a serial port communication mode and a 2.4G communication mode, and the charging bay port processing unit is configured to be connected to the sub-machine through a serial port communication mode / IO port communication mode.
[0013] A further technical solution is that the triggering mode of the interrupt trigger bit is configured as falling edge triggering.
[0014] Its further technical solution is: the charging cabin is provided with multiple large sub-machine charging hatches and multiple small sub-machine charging hatches, one large sub-machine charging hatch and one small sub-machine charging hatch are connected to the sub-machine by serial port communication, and the remaining charging hatches are connected to the sub-machine by IO port communication.
[0015] Its further technical solution is: if the charging hatch is configured to be connected to the sub-machine in an IO port communication manner, it also includes: detecting whether an interruption is triggered within a preset time, and if not, determining that the sub-machine has been unplugged from the charging hatch at this time.
[0016] Its further technical solution is: the preset time is 1S.
[0017] Compared with the prior art, at least one charging hatch in the charging compartment of the sub-machine identification system of the electric stimulator of the present invention is configured to be connected to the sub-machine in a serial port communication mode, and the other charging hatches are configured to be connected to the sub-machine in an IO port communication mode. By detecting whether a sub-machine is inserted in the charging hatch, the numbering information of the sub-machine is obtained when the host is inserted. If it is detected that the charging hatch in which the sub-machine is inserted is a charging hatch configured to be connected to the sub-machine in a serial port communication mode, the sub-machine number is directly obtained according to the serial port communication data in the numbering information, and if it is detected that the charging hatch in which the sub-machine is inserted is a charging hatch configured to be connected to the sub-machine in an IO port communication mode, the sub-machine number is identified according to the IO interrupt triggering number and the set interrupt triggering bit, and the sub-machine number is sent to the host for display. It can be seen that the sub-machine identification system of the electric stimulator of the present invention not only realizes the communication between multiple sub-machines and the charging compartment, but also the charging hatch can realize fast and accurate identification of any sub-machine number, which is convenient for understanding the status of a specific sub-machine and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic structural block diagram of a specific embodiment of the electric stimulation device sub-machine identification system of the present invention.
[0019] Figure 2 The figure is a schematic diagram of the sub-machine identification process of the sub-machine identification system of the electric stimulation device of the present invention.
[0020] Figure 3 It is a waveform diagram of the number information reported by the No. 4 slave to the charging hatch when the slave identification system of the electric stimulator of the present invention is working. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to more clearly understand the objectives, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0022] Reference Figure 1 , Figure 1 The schematic diagram of the structure of a specific embodiment of the sub-machine identification system of the electric stimulator of the present invention. In the embodiment shown in the accompanying drawings, the sub-machine identification system of the electric stimulator includes a host 200, a charging compartment 100 connected to the host 200, and a plurality of sub-machines, the charging compartment 100 is provided with a plurality of charging hatches, and at least one charging hatch is configured to be connected to the sub-machine in a serial communication mode, and the remaining charging hatches are configured to be connected to the sub-machine in an IO port communication mode, the charging hatch is used to charge the sub-machine and identify the sub-machine number, and the charging compartment 100 is used to realize a two-way communication connection between the sub-machine and the host 200, and to transmit information such as treatment information and battery power.
[0023] In some embodiments, the sub-machine includes a sub-machine control unit, and the charging bay 100 includes a charging bay main control unit 101, multiple charging hatch charging units and multiple charging hatch processing units connected to the charging bay main control unit 101, that is, each charging hatch is correspondingly provided with a charging hatch charging unit and a charging hatch processing unit, wherein the charging hatch charging unit charges the charging hatch processing unit and the sub-machine, the charging bay main control unit 101 is connected to the host 200 and the sub-machine control unit through a serial port communication mode and a 2.4G communication mode respectively, and the charging hatch processing unit is configured to be connected to the sub-machine through a serial port communication mode / IO port communication mode.
[0024] Specifically, in this embodiment, the charging compartment 100 is provided with eight large sub-unit charging hatches (R1, R2, R3, R4, R5, R6, R7, R8) and eight small sub-unit charging hatches (L1, L2, L3, L4, L5, L6, L7, L8), a total of 16 charging hatches. It can be understood that the large sub-unit charging hatches (R1, R2, ..., R7, R8) and the small sub-unit charging hatches (L1, L2, ..., L7, L8) have different sizes of accommodating space. Accordingly, eight large sub-units and eight small sub-units can be inserted into the charging compartment 100 at the same time, wherein the charging hatch processing units of the large sub-unit charging hatch R1 and the small sub-unit charging hatch L1 are connected to the sub-unit control unit of the sub-unit in a serial port communication manner, and the charging hatch processing units of the remaining charging hatches (R2, ..., R7, R8 and L2, ..., L7, L8) are connected to the sub-unit in an IO port communication manner.
[0025] like Figure 2 As shown, the sub-machine identification process of the electric stimulator sub-machine identification system includes the following steps:
[0026] S10: The charging compartment detects whether a handset is inserted into any charging compartment.
[0027] In this step, the charging compartment main control unit detects whether a sub-unit is inserted in any large sub-unit charging compartment (R1, R2, ..., R7, R8) and any small sub-unit charging compartment (L1, L2, ..., L7, L8), and when a sub-unit is inserted, the sub-unit number needs to be identified.
[0028] In this embodiment, there are eight small sub-machines (sub-machines are numbered 1 to 8) and eight large sub-machines (sub-machines are numbered 9 to 16). It can be understood that the sub-machine numbers actually transmitted can be represented by binary or hexadecimal. In this embodiment, hexadecimal is used, and the sub-machine number range can be 0x01 to 0x10, that is, the sub-machine number corresponding to sub-machine No. 1 is 0x01, and the sub-machine number corresponding to sub-machine No. 16 is 0x10.
[0029] S20: If yes, the charging port obtains serial number information from the slave device, where the serial number information includes serial port communication data and interrupt trigger information.
[0030] In the present invention, the serial communication data includes the slave number, and the interrupt trigger information includes N interrupt trigger bits, where N=the number of slaves-1. In this embodiment, the number of slaves refers to 1, 2, ..., 16. For example, the number information sent by slave No. 4 specifically includes 3 (3=4-1) interrupt trigger bits and the corresponding slave number (such as Figure 3 shown).
[0031] In this step, the interrupt triggering mode may preferably be configured as falling edge triggering.
[0032] S30: If the charging hatch is a charging hatch configured to be connected to the slave unit in a serial communication manner, directly obtain the slave unit number according to the serial communication data in the numbering information.
[0033] In the present invention, if it is detected that the charging hatch where the sub-machine is inserted is the large sub-machine charging hatch R1 or the small sub-machine charging hatch L1, that is, the charging hatch configured to be connected to the sub-machine in serial communication mode, the serial communication data can be received through the serial port to directly identify and obtain the sub-machine number, and the large sub-machine charging hatch R1 and the small sub-machine charging hatch L1 can not only identify the sub-machine number, but also be used to perform software upgrades on the sub-machine, etc.
[0034] S40, if the charging hatch is a charging hatch configured to be connected to the slave unit in an IO port communication manner, then according to the formula The slave number k is obtained by calculation and can be sent to the host for display.
[0035] In this step, fall_num is the actual number of interrupt triggers, that is, the actual total number of interrupt triggers in this communication process, and " / " is rounded to an integer, discarding decimal places.
[0036] In the present invention, if it is detected that the charging hatch into which the sub-machine is inserted is a large sub-machine charging hatch (R2, ..., R7) or a small sub-machine charging hatch (L2, ..., L7, L8), that is, a charging hatch configured to be connected to the sub-machine in an IO port communication manner, ordinary IO is used to identify the sub-machine number through an interrupt (falling edge trigger).
[0037] In this step, the interrupt trigger bit can use 0xAA (with 4 falling edges, including the start bit and the stop bit), or 0x55 (with 5 falling edges, including the start bit and the stop bit). This can effectively avoid the influence of the slave number on the falling edge recognition. Each slave reports the interrupt trigger bit + slave number information to the corresponding charging hatch in a period of 0.5s. The number of interrupt trigger bits sent by each slave is the number of its slave number minus 1.
[0038] For example, when 0xAA is used as the interrupt trigger bit of slave 4, the actual number of interrupt triggers for each interrupt trigger bit is 4 (e.g. Figure 3 As shown), it can be understood that in the entire communication process, that is, the data reporting process, fall_num not only includes the actual interrupt trigger times of the N interrupt trigger bits, but also includes the interrupt trigger times triggered by the transmission of the sub-machine number in the numbering information. Since the sub-machine number ranges from 0x01 to 0x10, the interrupt trigger times triggered by the sub-machine number are less than 4 (that is, the number of falling edges is less than 4).
[0039] In some other embodiments, if the charging hatch is configured to be connected to the sub-machine in an IO port communication manner, it also includes: detecting whether an interruption is triggered within a preset time, and if not, determining that the sub-machine has been unplugged from the charging hatch at this time; preferably, the preset time is 1S, because the period for each sub-machine to report data is 0.5s, so if an interruption is not triggered within 1s, it is considered that the sub-machine is unplugged from the charging hatch.
[0040] It can be understood that if the baud rate of the slave machine reporting data is 9600, the time for one bit of data is 1000000 / 9600=104us, and the minimum interval between two frames of data is 10 bits (0x00 or 0xFF), that is, 1040us, preferably 3ms, that is, if no interrupt is triggered within 3ms, it is considered that a frame of data is completed.
[0041] S50, the host sends the treatment information to the charging compartment, and the charging compartment transmits it to the corresponding slave.
[0042] In this step, the host sends the treatment information to the charging compartment main control unit through the serial port, and the charging compartment main control unit forwards it to the corresponding sub-machine control unit through 2.4G communication. The treatment information includes treatment mode and treatment parameters.
[0043] S60: The charging compartment obtains the battery power and treatment information of the slave device, and sends the information to the host device for display.
[0044] In this step, the slave control unit reports the battery power and treatment information to the charging cabin main control unit via 2.4G wireless communication, and then the charging cabin main control unit forwards it to the host through the serial port.
[0045] In summary, at least one charging hatch in the charging compartment of the sub-machine identification system of the electric stimulator of the present invention is configured to be connected to the sub-machine in a serial port communication mode, and the remaining charging hatches are configured to be connected to the sub-machine in an IO port communication mode. By detecting whether a sub-machine is inserted in the charging hatch, the numbering information of the sub-machine is obtained when the host is inserted. If it is detected that the charging hatch in which the sub-machine is inserted is a charging hatch configured to be connected to the sub-machine in a serial port communication mode, the sub-machine number is directly obtained according to the serial port communication data in the numbering information, and if it is detected that the charging hatch in which the sub-machine is inserted is a charging hatch configured to be connected to the sub-machine in a serial port communication mode, the sub-machine number is directly obtained according to the serial port communication data in the numbering information. The charging hatch connected by IO port communication mode identifies the sub-machine number according to the IO interrupt trigger times and the set interrupt trigger bit, and sends the sub-machine number to the host for display. At the same time, the host can also send treatment information to the sub-machine through the charging hatch, and the sub-machine can also send the battery power and the actual treatment information at this time to the host through the charging hatch. It can be seen that the sub-machine identification system of the electric stimulator of the present invention not only realizes two-way communication between multiple sub-machines and the charging hatch, but also the charging hatch can realize fast and accurate identification of any sub-machine number, which is convenient for understanding the status of the specific sub-machine and improving the user experience.
[0046] The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Those skilled in the art can make various equivalent changes and improvements based on the above embodiments, and all equivalent changes or modifications made within the scope of the claims should fall within the protection scope of the present invention.
Claims
1. An electric stimulation device sub-machine identification system, comprising a main machine, a charging compartment connected to the main machine, and a plurality of sub-machines, wherein the charging compartment is provided with a plurality of charging hatches, characterized in that: At least one charging hatch is configured to be connected to the slave via serial communication, and the remaining charging hatches are configured to be connected to the slave via IO communication, and the electrical stimulation device slave identification system uses the following steps to identify the slave: The charging compartment detects whether a handset is inserted into any charging compartment; If yes, the charging port obtains the serial number information from the slave, the serial number information includes serial communication data and interrupt trigger information; wherein the serial communication data includes the slave number, the interrupt trigger information includes N interrupt trigger bits, N=the number of slaves-1; If the charging hatch is a charging hatch configured to be connected to the slave unit in a serial communication manner, the slave unit number is directly obtained according to the serial communication data in the numbering information; If the charging hatch is configured to be connected to the slave unit in an IO port communication mode, then according to the formula The slave machine number k is calculated and sent to the host for display; wherein fall_num is the actual interrupt triggering number.
2. The electrical stimulation device sub-machine identification system according to claim 1, characterized in that: After sending the slave unit number k to the host for display, the method further includes: the charging compartment obtains the battery power and treatment information of the slave unit, and sends the information to the host for display.
3. The electrical stimulation device sub-machine identification system as claimed in claim 2, characterized in that: The battery power and treatment information of the sub-machine are obtained in the charging compartment, and before that, the host sends the treatment information to the charging compartment, and the charging compartment transmits it to the corresponding sub-machine.
4. The electrical stimulation device sub-machine identification system as claimed in claim 2, characterized in that: The host is connected to the charging compartment via a serial port, and the charging compartment is connected to the sub-machine via a 2.4G communication method.
5. The electrical stimulation device sub-machine identification system as claimed in claim 4, characterized in that: The charging bay includes a charging bay main control unit, multiple charging bay port charging units and multiple charging bay port processing units connected to the charging bay main control unit, wherein the charging bay port charging units charge the charging bay port processing units and sub-machines, the charging bay main control unit is connected to the host and the sub-machine via a serial port communication method and a 2.4G communication method respectively, and the charging bay port processing unit is configured to be connected to the sub-machine via a serial port communication method / IO port communication method.
6. The electrical stimulation device sub-machine identification system according to claim 1, characterized in that: The trigger mode of the interrupt trigger bit is configured as falling edge trigger.
7. The electrical stimulation device sub-machine identification system according to claim 1, characterized in that: The charging compartment is provided with a plurality of large sub-machine charging hatches and a plurality of small sub-machine charging hatches, wherein one large sub-machine charging hatch and one small sub-machine charging hatch are connected to the sub-machine by serial port communication, and the remaining charging hatches are connected to the sub-machine by IO port communication.
8. The electrical stimulation device sub-machine identification system according to claim 1, characterized in that: If the charging hatch is configured to be connected to the sub-machine in an IO port communication manner, the method further includes: detecting whether an interruption is triggered within a preset time, and if not, determining that the sub-machine has been unplugged from the charging hatch.
9. The electrical stimulation device sub-machine identification system according to claim 8, characterized in that: The preset time is 1S.
Citation Information
Patent Citations
Systems and methods for use in communicating with charging station
CN103093551A
Rapid judging method for port numbers of serial ports
CN104915276A
Equipment state alarm display method
CN115394058A
Operating system and master unit of operating system
JP2024134209A