Heartbeat keep-alive and abnormal reconnection method of VR cognitive rehabilitation system

By adopting duplex communication protocol and heartbeat information mechanism in the VR cognitive rehabilitation system, VR equipment actively sends heartbeat information to the upper computer and analyzes the response, solving the problems of large resource consumption, poor real-time and poor targeting caused by polling strategies in the prior art, achieving more stable network communication and higher reconnection success rate.

CN120128623APending Publication Date: 2025-06-10HENAN XIANGHE REHABILITATION IND TECH RES INST CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510279077.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

In the existing VR cognitive rehabilitation system, polling detection and timeout reconnection strategies lead to large resource consumption, poor real-time and poor targeting, affecting the stability of network communication and the patient's rehabilitation training effect.

Method used

Using the duplex communication protocol, the VR device regularly sends heartbeat information with a unique identification code to the upper computer, and analyzes whether the heartbeat abnormality occurs based on the response information. If so, reconnect with the upper computer according to the preset reconnect mechanism.

Benefits of technology

Through the VR device, the heartbeat information is actively initiated, and parallel point inspection and automatic reconnection are realized, which reduces the resource consumption of the host computer, improves the real-time and targeted communication, and enhances the stability and reconnection success rate of network communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128623A_ABST
    Figure CN120128623A_ABST
Patent Text Reader

Abstract

The invention provides a heartbeat keep-alive and abnormal reconnection method of a VR cognitive rehabilitation system, the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system is used for the VR cognitive rehabilitation system, the VR cognitive rehabilitation system comprises an upper computer and a plurality of VR devices, and the upper computer is connected to the plurality of VR devices based on a duplex communication protocol. The upper computer receives heartbeat information attached with a unique identification code and actively sent by the VR equipment at regular time, response information is sent to the VR equipment, finally, whether heartbeat abnormity occurs or not is analyzed by the VR equipment according to the response information, and if yes, the VR equipment is reconnected with the upper computer according to a preset reconnection mechanism. Compared with the prior art, the method solves the problems that an existing polling strategy is large in resource consumption and poor in real-time performance and pertinence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of VR device communication. More specifically, the present invention relates to a heartbeat keep-alive and abnormal reconnection method for a VR cognitive rehabilitation system. Background Art

[0002] A VR cognitive rehabilitation system is a system that uses virtual reality technology to provide rehabilitation treatment for patients with cognitive dysfunction. It is mainly composed of a host computer and multiple VR devices, and is often applied in places such as hospitals, rehabilitation centers, and nursing homes. In these application places, the number of user groups is mostly in the hundreds, and the interval distance between the VR devices of the user group and the host computer is relatively far. Usually, wireless communication is used to realize the communication between the host computer and multiple VR devices. However, the amount of data transmitted by VR devices is large, and wireless communication is greatly interfered by external factors, making it extremely difficult to maintain stable network communication between multiple VR devices and the host computer. Unstable network connections may lead to data transmission interruptions and abnormal training processes, seriously affecting the rehabilitation training effect and experience of patients.

[0003] To overcome the above problems, in the prior art, a polling detection and timeout reconnection strategy is adopted to maintain stable network communication between multiple VR devices and the host computer. This strategy is specifically as follows: The host computer sequentially sends inquiry requests to multiple VR devices. After receiving the inquiry request, the VR device sends a return message to the host computer. If the time for the VR device to send a return message to the host computer times out, it is determined that the VR device is disconnected, and the host computer sends a reconnection request to the VR device. This strategy mainly has the following defects:

[0004] (1) It consumes a large amount of resources. As the number of VR devices connected to the host computer increases, the serial inquiry method will occupy a large amount of system resources such as CPU and memory, resulting in a decrease in system operation efficiency.

[0005] (2) Poor real-time performance. During the polling process, if a previously polled VR device has abnormal communication, the host computer cannot know in time, and there are serious defects in real-time performance.

[0006] (3) Poor pertinence. Whether the VR device has communication problems or not, it needs to be inquired regularly, which is a waste of device resources. Summary of the Invention

[0007] To solve the technical problems of large resource consumption, poor real-time performance, and poor pertinence of the above polling strategy, the present invention provides solutions in the following aspects.

[0008] In the first aspect, to achieve the above object, the present invention provides a heartbeat keep-alive and abnormal reconnection method for a VR cognitive rehabilitation system, which is used for VR devices in a VR cognitive rehabilitation system. The method of the present invention includes:

[0009] Based on the duplex communication protocol, periodically and actively send heartbeat information with a unique identification code to the host computer.

[0010] Receive the response information corresponding to the heartbeat information.

[0011] According to the response information, analyze whether there is a heartbeat anomaly. If so, reconnect to the host computer according to the preset reconnection mechanism.

[0012] Beneficial effects: The method of the present invention is applicable to the application environment of two-way communication connection between multiple VR devices and a single host computer. In this application environment of two-way communication connection, the VR devices are distinguished by the way of attaching a unique identification code to the heartbeat information, avoiding the chaos of two-way communication transmission. In order to maintain the stability of network communication, the method of the present invention adopts the way that the VR device actively initiates heartbeat information to the host computer to realize parallel communication spot-check and reconnection. Compared with the traditional polling detection method, in the aspect of disconnection analysis, the method of the present invention actively initiates heartbeat information by the VR device, and autonomously analyzes and detects whether the VR device itself has communication anomalies through the response information corresponding to the heartbeat information. This method does not require the host computer to poll each device one by one, and can conduct parallel spot-checks on all VR devices with communication anomalies in a targeted manner, without occupying too much memory resources of the host computer, solving the problems of large resource consumption, poor real-time performance and poor pertinence of the existing polling strategy.

[0013] Preferably, according to the response information, analyzing whether there is a heartbeat anomaly, and if so, reconnecting to the host computer according to the preset reconnection mechanism specifically is:

[0014] If a continuous plurality of response information is not received in terms of time sequence, it is determined that there is a heartbeat anomaly. After restarting, perform an initial reconnection to the host computer.

[0015] If the initial reconnection fails, after a predetermined time interval, perform multiple intermittent reconnections to the host computer until the reconnection is successful.

[0016] Beneficial effects: When the method of the present invention determines whether there is communication anomaly between the VR device and the host computer, the built-in program of the VR device is used to analyze whether a continuous plurality of response signals are not received in terms of time sequence. If so, it is determined that there is a heartbeat anomaly. This analysis method fully considers the instantaneous network fluctuation situation to a certain extent in the communication network, and can avoid misjudgment caused by network fluctuation. Moreover, the above technical solution adopts two sets of reconnection schemes to improve the success rate of disconnection reconnection of the VR device. Compared with the prior art, the misjudgment rate of the method of the present invention is lower, and it can intelligently switch various reconnection strategies to improve the success rate of reconnection.

[0017] Preferably, if the initial reconnection fails, after a predetermined time interval, multiple interval reconnections are made with the host computer until the reconnection is successful. Each interval time of the interval reconnection is greater than the interval time of the previous interval reconnection.

[0018] Beneficial effects: After each communication reconnection fails, the interval time of the next reconnection is increased, so that the high-frequency reconnection strategy gradually changes to a low-frequency reconnection strategy, thereby gradually reducing the communication pressure on the host computer, and then improving the success rate of the VR device reconnection.

[0019] Preferably, if the initial reconnection fails, the method of the present invention further includes:

[0020] Pop up a network exception text and a restart reconnection prompt in the display interface.

[0021] Preferably, if the initial reconnection fails, after a predetermined time interval, multiple interval reconnections are made with the host computer until the reconnection is successful. After that, the method of the present invention further includes:

[0022] Judge whether the number of reconnection times exceeds the upper limit value. If so, pop up a reconnection failure and check network prompt in the display interface, and interrupt the reconnection step.

[0023] Beneficial effects: Through the above interface pop-up scheme, the user terminal can be informed in time of the abnormal communication connection, so that the user terminal can check the communication connection status of the VR device in time.

[0024] Preferably, the unique identification code adopts the SN code.

[0025] Preferably, the duplex communication protocol adopts the TCP communication protocol.

[0026] In the second aspect, in order to achieve the above invention purpose, the present invention also provides a heartbeat keep-alive and abnormal reconnection method for a VR cognitive rehabilitation system, which is used for the host computer in the VR cognitive rehabilitation system. The method of the present invention includes:

[0027] Use multiple independent threads or processes to respectively monitor the heartbeat information of each VR device in real time;

[0028] If a continuous plurality of heartbeat information of one of the VR devices is not received in time sequence, the connection channel of the corresponding VR device is removed;

[0029] If the heartbeat information of the VR device is received, a response information is sent to the corresponding VR device.

[0030] Beneficial effects: The host computer monitors the heartbeat information of each VR device in parallel to improve the immediacy of obtaining the heartbeat information. During the monitoring process by the host computer, if the communication of a certain VR device is interrupted, the connection channel between the host computer and the corresponding VR device is directly removed to release part of the memory of the host computer, optimize the communication response time between the normal VR device and the host computer, and improve the communication quality.

[0031] Preferably, if a continuous plurality of heartbeat information of one of the VR devices is not received in terms of time sequence, after removing the connection channel of the corresponding VR device, the method of the present invention further includes:

[0032] Performing data analysis on the historical heartbeat information of each VR device;

[0033] If it is analyzed that the frequency of interruption of the heartbeat information of one of the VR devices is higher than the threshold, an abnormal analysis report of the corresponding VR device is output to the management terminal.

[0034] Beneficial effects: The host computer can perform data analysis on the historical information of each VR device, and summarize the relevant information of the VR devices with frequent communication interruptions or anomalies in the historical records to the management terminal to prompt the administrator to check the corresponding VR devices or optimize the network environment.

[0035] In the third aspect, in order to achieve the above-mentioned invention purpose, the present invention further provides a VR cognitive rehabilitation system, adopting the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system in the first aspect or the second aspect. The system of the present invention includes a host computer and a plurality of VR devices; the host computer is respectively connected to the plurality of VR devices through duplex communication;

[0036] The host computer includes a listening client and a host computer management terminal; the listening client is used to obtain the unique identification code of the VR device accessing the host computer; the host computer management terminal is used to receive the heartbeat information with the attached unique identification code actively sent by the VR device and send a response message to the VR device;

[0037] The host computer includes a listening client and a host computer management terminal; the listening client is used to identify the unique identification code of each VR device; the host computer management terminal is used to receive the heartbeat information with the attached unique identification code and send a response message to the VR device;

[0038] The VR device includes an information transceiver module and a disconnection reconnection module; the information transceiver module is used to actively send the heartbeat information with the attached unique identification code to the listening client and receive the response message corresponding to the heartbeat information; the disconnection reconnection module is used to analyze whether there is a heartbeat anomaly according to the response message, and if so, reconnect the VR device to the host computer according to the preset reconnection mechanism.

[0039] The beneficial effects of the present invention are as follows:

[0040] 1) Compared with the prior art, in the aspect of disconnection analysis, the method of the present invention actively initiates heartbeat information by the VR device, and autonomously analyzes and detects whether the VR device itself has communication anomalies based on the response information corresponding to the heartbeat information. This method does not require the host computer to poll each device one by one, and can conduct parallel spot checks on all VR devices with communication anomalies in a targeted manner, without occupying too much memory resources of the host computer, thus solving the problems of large resource consumption, poor real-time performance, and poor targeting of the existing polling strategy.

[0041] 2) Compared with the prior art, the method of the present invention has a lower misjudgment rate, can intelligently switch various reconnection strategies, improve the success rate of reconnection, and thus achieve the efficiency of multi-device communication connection.

[0042] 3) Compared with the prior art, in the present invention system, the process mainly involving data analysis and judgment is completed by the VR device itself, and the host computer consumes less resources, and is more capable of meeting the strong networking requirements of one-to-many. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] By referring to the following detailed description with reference to the accompanying drawings, the above and other objects, features, and advantages of the exemplary embodiments of the present invention will become readily understood. In the drawings, several embodiments of the present invention are shown in an exemplary rather than restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0044] Figure 1 is a schematic diagram of information transmission of the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system in Embodiment 1 of the present invention;

[0045] Figure 2 is a logic block diagram of S31 - S32 of the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system in Embodiment 1 of the present invention;

[0046] Figure 3 is a logic block diagram of S100 - S200 of the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system in Embodiment 2 of the present invention;

[0047] Figure 4 is a connection diagram between the listening client and multiple VR devices of the VR cognitive rehabilitation system in Embodiment 3 of the present invention;

[0048] Figure 5 is a connection diagram between the host computer management terminal and multiple VR devices of the VR cognitive rehabilitation system in Embodiment 3 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.

[0050] The following will describe in detail the specific implementation manners of the present invention in conjunction with the accompanying drawings.

[0051] Embodiment 1

[0052] As Figure 1 shown, this embodiment discloses a heartbeat keep-alive and abnormal reconnection method for a VR cognitive rehabilitation system. This method is used for VR devices in the VR cognitive rehabilitation system. The method of the present invention includes:

[0053] S10: Based on the duplex communication protocol, periodically and actively send heartbeat information with a unique identification code to the host computer.

[0054] S20: Receive the response information corresponding to the heartbeat information.

[0055] In this embodiment, the VR cognitive rehabilitation system is composed of a host computer and multiple VR devices. Each VR device is set with a unique SN code as the unique identification code for differentiating devices. The host computer uses a multi-threaded or asynchronous processing mechanism to monitor the TCP (duplex communication protocol) connections of multiple VR devices in real time and in parallel. When a new VR device is connected, the SN code of the VR device is preferentially obtained and used as an identifier to prepare for receiving its heartbeat information.

[0056] Specifically, in the method of the present invention, each VR device actively sends heartbeat information in a specific format containing the SN code to the host computer at a preset time interval. After receiving the heartbeat information, the host computer quickly responds to the VR device according to the SN code. This way of the VR device actively initiating the heartbeat inquiry, on the one hand, effectively reduces the waste of resources on the host computer. The host computer does not need to actively initiate a large number of inquiry messages and only gives feedback after receiving the heartbeat message, reducing the system overhead and improving the resource utilization rate; on the other hand, the above method can quickly and specifically know which VR device has an abnormal heartbeat information transmission, and then quickly locate the abnormal VR device according to the SN code.

[0057] S30: According to the response information, analyze whether there is a heartbeat abnormality. If so, reconnect to the host computer according to the preset reconnection mechanism.

[0058] Preferably, as Figure 2 shown, the above S30 includes:

[0059] S31: If consecutive multiple response messages are not received in terms of timing, it is determined that the heartbeat is abnormal. After a restart is executed, a primary reconnection is made with the host computer.

[0060] S32: If the primary reconnection fails, after a predetermined time interval, multiple intermittent reconnections are made with the host computer until the reconnection is successful.

[0061] Through the above technical solutions S31 - S32, when determining whether there is a communication abnormality between the VR device and the host computer, the method of the present invention incorporates a heartbeat abnormality determination mechanism as described in S31 and an intelligent reconnection mechanism jointly described in S31 and S32 into each VR device. Among them, S31 determines whether a heartbeat abnormality occurs by analyzing whether consecutive M response signals are not received in terms of timing. This analysis method fully considers the existence of a certain degree of instantaneous network fluctuations in the communication network and can avoid misjudgment caused by network fluctuations. The intelligent reconnection mechanism jointly described in S31 - S32 can adaptively adjust the reconnection strategy according to the actual situation to improve the success rate of the VR device reconnection, thereby improving the efficiency of multi-device communication connection.

[0062] Further, the heartbeat abnormality determination mechanism and the intelligent reconnection mechanism of this embodiment are specifically as follows:

[0063] Each VR device sends heartbeat information to the host computer every 5 seconds. When any VR device continuously sends heartbeat information containing the SN code 3 times without receiving the corresponding response information, it is determined that a heartbeat abnormality occurs at this time. At this time, the reconnection mechanism is enabled. In the reconnection mechanism of the first stage, first, the VR device with a heartbeat abnormality is restarted, and then a primary reconnection is executed. If the primary reconnection fails, the reconnection mechanism of the second stage is enabled. First, attempt a second reconnection after a 1-second interval. If the second reconnection fails, after a few seconds, that is, the interval time for each reconnection is longer than the interval time for the previous reconnection, the VR device is reconnected to the host computer for the nth time until the VR device is successfully reconnected to the host computer. Among them, n is a positive integer.

[0064] After each communication reconnection fails, in order to relieve the communication pressure of the host computer, the above technical solution will extend the reconnection interval time in multiples, gradually changing the high-frequency reconnection into a low-frequency reconnection, thereby improving the success rate of the VR device reconnection.

[0065] It should be added that during the entire execution process of the intelligent reconnection mechanism, the VR device performing the reconnection operation itself will record the reconnection times and reconnection times for the management end to analyze the network situation.

[0066] Preferably, if the primary reconnection fails in S31, in order to promptly inform the user of "network abnormality" and "restart and reconnect", the method of the present invention further includes:

[0067] Pop up network exception text and restart and reconnect prompt on the display interface.

[0068] Preferably, if the number of reconnection attempts has reached the upper limit after S32 and it is no longer possible to maintain the communication between the VR device and the host computer through the intelligent reconnection strategy, the method of the present invention adopts the following technical solution to inform the user to check the VR device, specifically:

[0069] Judge whether the number of reconnection attempts exceeds the upper limit. If so, pop up a reconnection failure and check network prompt on the display interface and interrupt the reconnection step.

[0070] Through the above technical solutions S10 - S30, the method of the present invention uses the method of attaching a unique identification code to the heartbeat information to distinguish VR devices, realizes the accurate positioning of VR devices, and avoids the chaos of two-way communication transmission. Compared with the prior art, the method of the present invention has built-in a heartbeat anomaly judgment mechanism and an intelligent reconnection mechanism in the VR device. These two mechanisms do not require the host computer to poll and detect each device one by one, and can specifically perform parallel spot checks and automatic reconnection on all VR devices with communication anomalies. The entire process does not require excessive memory resources of the host computer, and solves the problems of large resource consumption, poor real-time performance and poor pertinence of the existing polling strategy.

[0071] More preferably, in order to improve the accuracy of heartbeat analysis, the above heartbeat anomaly analysis mechanism can also adopt the following packet loss rate calculation model to analyze whether the heartbeat is abnormal. This model is composed of formulas (1)-(4), specifically:

[0072]

[0073] Δt(i,j)∈N(μ_delay(i),σ_delay(i)^2)(2)

[0074] Pr(i,j,Δt)=e -λΔt(i,j) (3)

[0075] Loss_rate(i,t)=1-Pr(i,j,Δt) (4)

[0076] Among them, Ni(t) represents the number of heartbeat information transmissions within time t, T iLet \(T(i)\) denote the period required for the \(i\)-th VR device to send a heartbeat message. Let \(\Delta t(i,j)\) denote the network delay time between the \(i\)-th VR device sending the \(j\)-th heartbeat message and the corresponding response message. \(\in\) represents subordination, \(N()\) represents the normal distribution function, \(\mu_{delay}(i)\) represents the mean delay of the \(i\)-th VR device in historical network delays, \(\sigma_{delay}(i)^2\) represents the variance of the \(i\)-th VR device in historical network delays, \(Pr(i,j,\Delta t)\) represents the reception probability of the \(j\)-th heartbeat packet of the \(i\)-th VR device, \(e\) represents the base of the natural logarithm, \(\lambda\) is a positive parameter, and \(Loss\_rate(i,t)\) represents the packet loss rate.

[0077] Specifically, within a period of time \(t\), if the packet loss rate \(Loss\_rate(i,t)\) is greater than the packet loss threshold, it is determined that the heartbeat is abnormal.

[0078] Embodiment 2

[0079] As Figure 3 shown, on the basis of Embodiment 1, this embodiment discloses a heartbeat keep-alive and abnormal reconnection method for a VR cognitive rehabilitation system. Different from Embodiment 1, this embodiment mainly focuses on the improvement of the upper computer information analysis process. The method of the present invention includes:

[0080] S100: Use multiple independent threads or processes to respectively and real-time monitor the heartbeat information of each VR device.

[0081] S200: If a continuous number of heartbeat messages from one of the VR devices are not received in terms of time sequence, remove the connection channel corresponding to the VR device.

[0082] S300: If a heartbeat message from a VR device is received, send a response message to the corresponding VR device.

[0083] It should be explained that the upper computer manages the communication status between itself and each VR device according to the SN code of the VR device through independent threads or an asynchronous programming model, and real-time monitors the heartbeat messages including the SN code of each VR device. When the heartbeat response from a certain VR device is not received continuously for 3 times, it is determined that the VR device has a network anomaly. At this time, the upper computer will remove the current connection channel with the VR device, mark the status of the VR device as "abnormal waiting for reconnection", and record the anomaly time and SN code. During the period of waiting for the reconnection of the disconnected VR device, the upper computer continuously monitors the communication of other normal VR devices to ensure that the overall system is not affected. Through the above technical solution, part of the memory or network channel of the upper computer can be released in a timely manner, thereby accelerating the communication response time between normal VR devices and the upper computer and improving the overall network quality.

[0084] Preferably, in order to facilitate the administrator to intuitively and quickly understand the communication status of each VR device, after the above S200, the method of the present invention further includes:

[0085] Performing data analysis on the historical heartbeat information of each VR device.

[0086] If it is analyzed that the frequency of interruption of the heartbeat information of one of the VR devices is higher than the threshold, an abnormal analysis report of the corresponding VR device is output to the management terminal.

[0087] The above technical solution performs data analysis on the historical information of each VR device through the host computer, and summarizes the relevant information of the VR devices with frequent communication anomalies in the historical records to the management terminal, so as to prompt the administrator to check the corresponding VR devices or optimize the network environment.

[0088] Embodiment III

[0089] As Figure 4 and Figure 5 shown, this embodiment discloses a VR cognitive rehabilitation system, which adopts the heartbeat keep-alive and abnormal reconnection method of the VR cognitive rehabilitation system described in Embodiment I or II. The system of the present invention includes a host computer and multiple VR devices.

[0090] Among them, the host computer includes a listening client and a host computer management terminal.

[0091] The listening client is used to obtain the unique identification code (SN code) of the VR device accessing the host computer.

[0092] The host computer management terminal is used to receive the heartbeat information with the attached unique identification code actively sent by the VR device at regular intervals, and send a response message to the VR device.

[0093] The VR device includes an information transceiver module and a disconnection reconnection module.

[0094] The information transceiver module is used to actively send the heartbeat information with the attached unique identification code to the listening client, and receive the response message corresponding to the heartbeat information.

[0095] The disconnection reconnection module is used to analyze whether there is a heartbeat anomaly according to the response message. If so, the VR device is reconnected to the host computer according to the preset reconnection mechanism.

[0096] It should be noted that the system of the present invention can be applied to places such as hospitals, rehabilitation centers, nursing homes, etc. In these places, it may be necessary to conduct rehabilitation training for hundreds or thousands of people simultaneously using VR devices. The main communication network of the system of the present invention is a local area wireless network. This method enables the VR devices in the system of the present invention to be flexibly configured on each floor of hospitals, rehabilitation centers, and nursing homes, without the need to configure too many wired optical fibers. During the actual rehabilitation training process using VR devices, the interactive behavior images made by the user terminal (patient) on the VR device will be uniformly output to the host computer. The management terminal of the host computer can monitor these images in real time, and the management terminal can adjust the training scenarios, training durations, training difficulties, and training contents of the corresponding VR devices based on the bidirectional communication protocol (TCP), and can also adjust parameters such as the output volume and brightness of the VR devices in real time.

[0097] Compared with the prior art, the system of the present invention is equipped with an active inquiry mechanism and an intelligent reconnection mechanism on the VR devices. Each VR device can actively send a heartbeat time to the host computer, and use the corresponding response time to analyze whether there is a heartbeat abnormality in itself, and then reconnect to the host computer according to the heartbeat abnormality situation. This method requires less data volume to be analyzed by the host computer, resulting in less resource consumption of the host computer, thereby improving the communication quality of the host computer and being more capable of meeting the one-to-many wireless strong networking requirements.

[0098] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0099] In the description of this specification, the meaning of "a plurality" is at least two, such as two, three, or more, etc., unless otherwise specifically defined.

[0100] Although this specification has shown and described multiple embodiments of the present invention, it is obvious to those skilled in the art that such embodiments are provided only by way of example. Those skilled in the art will think of many changes, alterations, and alternative ways without departing from the spirit and idea of the present invention. It should be understood that various alternative solutions to the embodiments of the present invention described herein can be adopted during the practice of the present invention.

Claims

1. A heartbeat preservation and abnormal reconnection method for a VR cognitive rehabilitation system, characterized in that: A VR device used in a VR cognitive rehabilitation system, the method comprising: Based on the duplex communication protocol, it actively sends heartbeat information with a unique identification code to the host computer at regular intervals; Receiving response information corresponding to the heartbeat information; According to the response information, analyze whether there is an abnormal heartbeat, and if so, reconnect with the host computer according to a preset reconnection mechanism.

2. The heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to claim 1, characterized in that: According to the response information, analyze whether there is an abnormal heartbeat. If so, reconnect with the host computer according to the preset reconnection mechanism. Specifically: If multiple consecutive response messages are not received in time sequence, it is judged that the heartbeat is abnormal, and after restarting, the first reconnection with the host computer is performed; If the initial reconnection fails, multiple reconnections are performed with the host computer after a predetermined time interval until the reconnection succeeds.

3. The heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to claim 2, characterized in that: If the initial reconnection fails, multiple reconnections are performed with the host computer after a predetermined time interval until the reconnection is successful, and the interval time of each reconnection is greater than the interval time of the previous reconnection.

4. The heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to claim 2, characterized in that: If the initial reconnection fails, the method further includes: A network abnormality text and a restart and reconnection prompt pop up in the display interface.

5. The heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to claim 2, characterized in that: If the initial reconnection fails, reconnecting with the host computer multiple times after a predetermined time interval until the reconnection succeeds, the method further includes: Determine whether the number of reconnection times exceeds the upper limit. If so, a reconnection failure and network check prompt will pop up in the display interface, and the reconnection step will be interrupted.

6. A heartbeat preservation and abnormal reconnection method for a VR cognitive rehabilitation system, characterized in that: A host computer used in a VR cognitive rehabilitation system, the method comprising: Use multiple independent threads or processes to monitor the heartbeat information of each VR device in real time; If multiple consecutive heartbeat messages of one of the VR devices are not received in time sequence, the connection channel of the corresponding VR device is removed; If the heartbeat information of the VR device is received, a response message is sent to the corresponding VR device.

7. The heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to claim 6, characterized in that: If multiple consecutive heartbeat information of one of the VR devices is not received in time sequence, after the connection channel of the corresponding VR device is removed, the method further includes: Perform data analysis on the historical heartbeat information of each VR device; If the analysis shows that the frequency of heartbeat information interruption of one VR device is higher than the threshold, an abnormal analysis report of the corresponding VR device is output to the management end.

8. A VR cognitive rehabilitation system, characterized in that: The system comprises a host computer and a plurality of VR devices, wherein the host computer is respectively connected to the plurality of VR devices via duplex communication, and the VR cognitive rehabilitation system is used to implement the heartbeat preservation and abnormal reconnection method of the VR cognitive rehabilitation system according to any one of claims 1 to 7.

Citation Information

Cited By

  • VR cognitive rehabilitation training instrument

    CN121314028A