Vehicle-mounted VR controller communication channel pairing method, device, equipment, vehicle and medium

By determining the initial address information of the handle in the on-board VR device and responding to the connection message, the problem of the same morphology and structure of the left and right handles resulting in confusion of placement locations and the inability to establish a communication channel is solved, and the correct communication channel establishment is achieved.

CN115413064BActive Publication Date: 2025-03-11BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210224801.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2025-03-11
Estimated Expiration
2042-03-09

AI Technical Summary

Technical Problem

Due to the same structure of left and right handles, existing vehicle-mounted VR equipment is prone to confusion in placement, resulting in the problem of unable to establish communication channels normally.

Method used

By determining the initial address information of the handle in the first connection state between the handle and the placement slot, and when the handle is disconnected from the placement slot, a communication channel paired with the handle is established in response to the connection message sent by the handle, based on the correspondence between the target address information and the initial address information in the connection message.

Benefits of technology

Even if the position confusion occurs due to the same morphology and structure of the left and right handles, the communication channel between the on-board main control module and the handle can still be established correctly, solving the problem that the communication channel cannot be established due to the confusion of the handle placement position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115413064B_ABST
    Figure CN115413064B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, equipment, vehicle and medium for pairing a communication channel of an in-vehicle VR handle. The in-vehicle VR comprises a head fixing module and a handle, wherein the head fixing module is provided with a placement slot for placing the handle. The method comprises: determining initial address information of the handle based on a first connection state between the handle and the placement slot; when the handle and the placement slot are in a disconnected state, in response to a connection message sent by the handle, establishing a communication channel paired with the handle based on a correspondence between target address information and initial address information included in the connection message, thereby establishing a communication channel between the in-vehicle main control module and the handle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automobile technology, and in particular to a method, device, equipment, vehicle and medium for pairing communication channels of an in-vehicle VR controller. Background Art

[0002] With the rapid development of automobile electrification, intelligence and networking, in-vehicle VR (Virtual Reality) technology will become an important technology in the future, and as human drivers' hands are gradually freed, this market will further expand.

[0003] In the prior art, vehicle-mounted VR devices are generally based on handle control, that is, the vehicle-mounted VR is equipped with two handles with different morphological structures. For example, the left handle is a handle with a first morphological structure, and the right handle is a handle with a second morphological structure. The left handle is placed in a first placement slot, and the right handle is placed in a second placement slot. When the left handle and the first placement slot are switched from a connected state to a disconnected state, the left handle and the vehicle-mounted VR device establish a first communication channel. When the right handle and the second placement slot are switched from a connected state to a disconnected state, the right handle and the vehicle-mounted VR device establish a second communication channel. Handles with different morphological structures are connected to different communication channels to achieve communication between the left and right handles and the vehicle-mounted VR device. When a set of molds is used to prepare the left and right handles in order to reduce the preparation process of the handles, the left and right handles of the prepared vehicle-mounted VR device have the same morphological structure. When the left and right handles of the vehicle-mounted VR device have the same morphological structure, the placement positions of the left and right handles are easily confused. In addition, since the communication channel between the left and right handles and the vehicle-mounted VR device is established after the connection state between the handles and the placement slots is switched from a connected state to a disconnected state, and the first communication channel must be established when the left handle and the first placement slot are switched from a connected state to a disconnected state, and the second communication channel must be established when the right handle and the second placement slot are switched from a connected state to a disconnected state, when the placement positions of the left and right handles are confused, the communication channels of the left and right handles cannot be established normally.

[0004] Therefore, there is an urgent need for a vehicle-mounted VR handle communication channel pairing method to establish a communication channel between the handle and the vehicle computer. Summary of the invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, device, equipment, vehicle and medium for pairing communication channels of an in-vehicle VR handle.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for pairing communication channels of an in-vehicle VR handle, wherein the in-vehicle VR comprises a head fixing module and a handle, wherein the head fixing module is provided with a placement slot for placing the handle, and the method comprises:

[0007] Determining initial address information of the handle based on a first connection state between the handle and the placement slot;

[0008] When the handle is disconnected from the placement slot, in response to a connection message sent by the handle, a communication channel paired with the handle is established based on a correspondence between the target address information included in the connection message and the initial address information.

[0009] Optionally, determining the initial address information of the handle based on the first connection state between the handle and the placement slot includes:

[0010] Determining attribute information of the handle based on a first connection state between the handle and the placement slot;

[0011] The initial address information of the handle is determined according to the attribute information of the handle.

[0012] Optionally, the handle includes a wireless communication module, and the head fixing module includes a wired communication module;

[0013] The determining the attribute information of the handle based on the first connection state between the handle and the placement slot includes:

[0014] Determine attribute information of the handle based on a first connection state between the handle and the placement slot sent by a wireless communication module of the handle; or,

[0015] Based on the first connection state between the handle and the placement slot sent by the wired communication module of the head fixing module, attribute information of the handle is determined.

[0016] Optionally, the handle includes a first handle and a second handle, the placement slot includes a first placement slot and a second placement slot, the first placement slot includes a first electrode contact pin, a second electrode contact pin and a left trigger contact pin, the second placement slot includes a first electrode contact pin, a second electrode contact pin and a right trigger contact pin, and the handle includes four contacts;

[0017] The determining the attribute information of the handle based on the first connection state between the handle and the placement slot includes:

[0018] When the contact point of the first handle is connected to the contact pin of the first placement slot, and the contact point of the second handle is connected to the contact pin of the second placement slot, the first handle is a left handle, and the second handle is a right handle;

[0019] When the contact point of the second handle is connected to the contact pin of the first placement slot, and the contact point of the first handle is connected to the contact pin of the second placement slot, the second handle is a left handle and the first handle is a right handle.

[0020] Optionally, determining the initial address information of the handle according to the attribute information of the handle includes:

[0021] When the first handle is a left handle and the second handle is a right handle, the initial address information of the first handle is the first initial address information, and the initial address information of the second handle is the second initial address information;

[0022] When the second handle is a left handle and the first handle is a right handle, the initial address information of the second handle is the first initial address information, and the initial address information of the first handle is the second initial address information.

[0023] Optionally, the establishing a communication channel for pairing with the handle based on the correspondence between the target address information included in the connection message and the initial address information includes:

[0024] When the target address information included in the connection message is the first initial address, establishing a communication channel with the left handle;

[0025] When the target address information included in the connection message is the second initial address, a communication channel with the right handle is established; or,

[0026] When the target address information included in the connection message is the second initial address, establishing a communication channel with the left handle;

[0027] When the target address information included in the connection message is the first initial address, a communication channel with the right handle is established.

[0028] Optionally, the method further includes:

[0029] In response to the control instruction sent by the handle, a control action is executed according to the control instruction.

[0030] Optionally, the method further includes:

[0031] When the state of the handle and the placement slot changes from a disconnected state to a second connected state, in response to an interruption instruction sent by the handle, the communication channel paired with the handle is interrupted according to the interruption instruction.

[0032] Optionally, in response to the interruption instruction sent by the handle, when interrupting the communication channel paired with the handle according to the interruption instruction, the method further includes:

[0033] Based on the second connection state between the handle and the placement slot, initial address information of the handle is determined.

[0034] In a second aspect, an embodiment of the present disclosure provides a vehicle-mounted VR handle communication channel pairing device, the vehicle-mounted VR includes a head fixing module and a handle, the head fixing module is provided with a placement slot for placing the handle, and the device includes:

[0035] An initial address information determination module, used to determine the initial address information of the handle based on the first connection state between the handle and the placement slot;

[0036] A communication channel establishing module is used to establish a communication channel paired with the handle in response to a connection message sent by the handle when the handle is disconnected from the placement slot, based on the correspondence between the target address information included in the connection message and the initial address information.

[0037] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0038] one or more processors;

[0039] a storage device for storing one or more programs,

[0040] When the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.

[0041] In a fourth aspect, an embodiment of the present disclosure provides a vehicle, comprising the electronic device described in the third aspect.

[0042] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods described in the first aspect or implements the method described in the second aspect.

[0043] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0044] The in-vehicle VR handle communication channel pairing method, device, equipment, vehicle and medium provided by the embodiments of the present disclosure determine the initial address information of the handle based on the first connection state between the handle and the placement slot, and when the handle and the placement slot are in a disconnected state, in response to a connection message sent by the handle, establish a communication channel paired with the handle based on the correspondence between the target address information and the initial address information included in the connection message, that is, after the handle is placed in the placement slot, the initial address information of the handle is first determined based on the first connection state between the handle and the placement slot, and when the handle and the placement slot are in a disconnected state, establish a communication channel matching the handle based on the correspondence between the target address information and the initial address information included in the connection message sent by the handle. Since the initial address information of the handle acquired by the in-vehicle main control module is determined based on the first connection state between the handle and the placement slot, In the process of establishing a communication channel between the handle and the vehicle-mounted main control module, the communication channel between the vehicle-mounted main control module and the handle is established based on the correspondence between the target address information included in the connection message sent by the handle and the obtained initial address information of the handle. Therefore, even if the positions of the left and right handles are confused due to the same morphological structure of the left and right handles of the vehicle-mounted VR device, the communication channel between the vehicle-mounted main control module and the handle can also be correctly established, that is, after the handle is placed in the placement slot and connected to the placement slot, the initial address information of the handle obtained by the vehicle-mounted main control module is determined based on the placement position of the handle, that is, it is re-determined whether the handle is the left handle or the right handle, and then when the handle is disconnected from the placement slot, the vehicle-mounted main control module establishes a corresponding communication channel based on the obtained initial address information of the handle, thereby realizing the establishment of a communication channel between the vehicle-mounted main control module and the handle. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1 It is a flowchart of a method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0048] Figure 2 is a structural diagram of a vehicle-mounted VR provided by an embodiment of the present disclosure;

[0049] Figure 3 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0050] Figure 4 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0051] Figure 5 is a structural schematic diagram of another vehicle-mounted VR provided by an embodiment of the present disclosure;

[0052] Figure 6 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0053] Figure 7 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0054] Figure 8 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure;

[0055] Fig. 9 It is a structural schematic diagram of a vehicle-mounted VR handle communication channel pairing device provided by an embodiment of the present disclosure;

[0056] Fig.10 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0057] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0059] In the prior art, in order to reduce the preparation process of the vehicle-mounted VR handle, the left and right handles of the vehicle-mounted VR are prepared using a set of molds. However, after the left and right handles are prepared using a set of molds, the appearance of the prepared left and right handles is the same. Therefore, the left and right handles cannot be distinguished based on their appearance. After the user uses the left and right handles to play games, the left and right handles are randomly placed in the placement slots of the virtual glasses for charging. At this time, the left handle may be placed in the placement slot corresponding to the right handle for charging, and the right handle may be placed in the placement slot corresponding to the left handle for charging. Since the positions of the left and right handles are placed in the placement slots are incorrect, when the user takes the left and right handles off the placement slots again to play games, if the right handle is taken off from the placement slot corresponding to the left handle to play games, the vehicle-mounted host module will establish a communication channel with the left handle. However, since the right handle is taken off, there will be a problem that the communication channel between the right handle and the vehicle-mounted main control module cannot be matched. Based on this, the embodiment of the present disclosure provides a method for pairing the communication channel of a vehicle-mounted VR handle, the method comprising: based on a first connection state between the handle and the placement slot, determining the initial address information of the handle, when the handle and the placement slot are in a disconnected state, responding to a connection message sent by the handle, based on the correspondence between the target address information and the initial address information included in the connection message, establishing a communication channel paired with the handle, that is, after the handle is placed in the placement slot, based on the first connection state between the handle and the placement slot, first determine the initial address information of the handle, when the handle and the placement slot are in a disconnected state, based on the correspondence between the target address information and the initial address information included in the connection message sent by the handle, establish a communication channel matching the handle.

[0060] The vehicle-mounted VR handle communication channel pairing method provided in the embodiment of the present disclosure is applied to a smart car. The method provided in the embodiment of the present disclosure can be executed by a smart car or a server of a smart car, wherein the server of the smart car can be, for example, a vehicle-mounted main control module.

[0061] Figure 1 A method for pairing a vehicle-mounted VR handle communication channel provided by an embodiment of the present disclosure is as follows: Figure 1 As shown, the method includes:

[0062] S10. Determine initial address information of the handle based on the first connection state between the handle and the placement slot.

[0063] Specifically, Figure 2As shown, the vehicle-mounted VR includes a head fixing module 100 and a handle 200. The head fixing module 100 is provided with a placement slot 300 for placing the handle. The handle is charged by placing the handle 200 into the placement slot 300. Specifically, the placement slot includes a first placement slot and a second placement slot, and the handle includes a first handle and a second handle. The first placement slot is arranged on the left side of the head fixing module, and the second placement slot is arranged on the right side of the head fixing module. The first handle and the second handle are charged by placing them in the placement slot.

[0064] When the handle is placed in the placement slot, the handle is electrically connected to the placement slot, and the initial address information of the handle is determined based on the first electrical connection state between the handle and the placement slot. That is, the initial address information of the handle is determined based on the electrical connection method between the handle and the placement slot. Exemplarily, the initial address information is exemplarily a MAC address. When the first handle is placed in the first placement slot and the second handle is placed in the second placement slot, that is, the first handle is electrically connected to the first placement slot and the second handle is electrically connected to the second placement slot, at this time, the initial address information of the first handle determined is related to the first placement slot, and the initial address information of the second handle determined is related to the second placement slot; when the first handle is placed in the second placement slot and the second handle is placed in the first placement slot, that is, the first handle is electrically connected to the second placement slot and the second handle is electrically connected to the first placement slot, at this time, the initial address information of the first handle determined is related to the second placement slot, and the initial address information of the second handle determined is related to the first placement slot.

[0065] S20: When the handle is disconnected from the placement slot, in response to a connection message sent by the handle, a communication channel paired with the handle is established based on a correspondence between target address information and initial address information included in the connection message.

[0066] When the user takes the handle out of the placement slot, the handle and the placement slot switch from the first electrically connected state to the disconnected state. At this time, if the user triggers the handle that is disconnected from the placement slot, the handle will send a connection message to the vehicle-mounted main control module. The vehicle-mounted main control module receives the connection message sent by the handle, and establishes a communication channel for pairing with the handle based on the correspondence between the target address information included in the connection message sent by the handle and the initial address information of the handle stored in the main control module.

[0067] Specifically, if the first handle is electrically connected to the first placement slot and the second handle is electrically connected to the second placement slot, the initial address information of the first handle is determined to be: A1B1C1, and the initial address information of the second handle is determined to be: A1B1D1. At this time, the vehicle-mounted main control module stores the initial address information of the first handle corresponding to when the first handle is electrically connected to the first placement slot, and the vehicle-mounted main control module stores the initial address information of the second handle corresponding to when the second handle is electrically connected to the second placement slot. If the user takes the handle off the placement slot and triggers the handle to send a connection message to the vehicle-mounted main control module, the vehicle-mounted main control module receives the connection message sent by the handle and parses the target address information included in the connection message sent by the handle, by comparing the target address information included in the connection message sent by the handle with the initial address information of the first handle and the initial address information of the second handle stored in the vehicle-mounted main control module to see whether there is a corresponding relationship. For example, if the target address information included in the connection message sent by the handle is A1B1C1, then it can be determined that the target address information included in the connection message sent by the handle and the initial address information of the first handle stored in the vehicle-mounted main control module exist a corresponding relationship. At this time, a communication channel paired with the first handle is established. If the target address information included in the connection message sent by the handle is A1B1D1, then it can be determined that the target address information included in the connection message sent by the handle and the initial address information of the second handle stored in the vehicle-mounted main control module exist a corresponding relationship. At this time, a communication channel paired with the second handle is established.

[0068] It should be noted that in the above embodiments, the handle and the placement slot are disconnected in the state in which the first handle and the placement slot are disconnected, the second handle and the placement slot are disconnected, or both the first handle and the second handle are disconnected from the placement slot. The embodiments disclosed herein do not specifically limit this.

[0069] In addition, the specific process of the connection message sent by the handle can be exemplified by the user pressing the handle, etc., and the embodiments of the present disclosure do not specifically limit this.

[0070] The vehicle-mounted VR handle communication channel pairing method provided by the embodiment of the present disclosure determines the initial address information of the handle based on the first connection state between the handle and the placement slot, and when the handle and the placement slot are in a disconnected state, in response to a connection message sent by the handle, establishes a communication channel paired with the handle based on the correspondence between the target address information included in the connection message and the initial address information, because the initial address information of the handle acquired by the vehicle-mounted main control module is determined based on the first connection state between the handle and the placement slot, and in the process of establishing the communication channel between the handle and the vehicle-mounted main control module, based on the correspondence between the target address information included in the connection message sent by the handle and the acquired initial address information of the handle The communication channel between the vehicle-mounted main control module and the handle is established. Therefore, even if the positions of the left and right handles of the vehicle-mounted VR device are confused due to the same morphological structure of the left and right handles, the communication channel between the vehicle-mounted main control module and the handle can also be correctly established. That is, after the handle is placed in the placement slot and connected to the placement slot, the initial address information of the handle obtained by the vehicle-mounted main control module is determined based on the placement position of the handle, that is, it is re-determined whether the handle is the left handle or the right handle, and then when the handle is disconnected from the placement slot, the vehicle-mounted main control module establishes the corresponding communication channel based on the obtained initial address information of the handle, thereby realizing the establishment of the communication channel between the vehicle-mounted main control module and the handle.

[0071] Figure 3 Another vehicle-mounted VR handle communication channel pairing method provided by the embodiment of the present disclosure is based on the above embodiment. Figure 3 As shown, a specific implementation method of step S10 includes:

[0072] S11. Determine attribute information of the handle based on a first connection state between the handle and the placement slot.

[0073] Optionally, based on a first connection state between the handle and the placement slot sent by a wireless communication module of the handle, attribute information of the handle is determined; or,

[0074] Based on the first connection state between the handle and the placement slot sent by the wired communication module of the head fixing module, attribute information of the handle is determined.

[0075] Specifically, when the handle and the placement slot are in the first electrical connection state, the handle can send the first connection state between the handle and the placement slot through the wireless communication module. In addition, the head fixing module can send the first connection state between the handle and the placement slot through the wired communication module, wherein the wireless communication module can be, for example, WIFI, Bluetooth, etc. Since the head fixing module and the vehicle-mounted main control module are wired communication, when the handle is placed in the placement slot, the head fixing module can obtain the first electrical connection state between the handle and the placement slot, and send the obtained first electrical connection state between the handle and the placement slot to the vehicle-mounted main control module. At this time, the vehicle-mounted main control module determines the attribute information of the handle based on the first connection state between the handle and the placement slot sent by the handle or the head fixing module.

[0076] The attribute information includes the left handle and the right handle.

[0077] S12. Determine the initial address information of the handle according to the attribute information of the handle.

[0078] When the handle is placed in the corresponding placement slot, the first connection states of the handle and the placement slot at different positions are different. The handle or head fixing module sends the first connection state of the handle and the placement slot to the vehicle-mounted main control module. The vehicle-mounted main control module first determines the attribute information of the handle based on the first connection state of the handle and the placement slot sent by the handle or head fixing module, and determines the initial address information of the handle based on the determined attribute information of the handle.

[0079] Specifically, by presetting the corresponding relationship between the attribute information and the initial address information, for example, if the attribute information is the left handle, the initial address information is A1B1C1, and if the attribute information is the right handle, the initial address information is A1B1D1.

[0080] The vehicle-mounted VR handle communication channel pairing method provided by the embodiment of the present disclosure first obtains the first connection state between the handle and the placement slot sent by the handle or the head fixing module, determines the attribute information of the handle based on the obtained first connection state between the handle and the placement slot, and then determines the initial address information of the handle according to the attribute information of the handle.

[0081] Figure 4 is a flow chart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure. Figure 3 Based on the corresponding embodiments, Figure 4 As shown, a specific implementation of step S11 includes:

[0082] S110: When the contact point of the first handle is connected to the contact pin of the first placement groove, and the contact point of the second handle is connected to the contact pin of the second placement groove, the first handle is a left handle, and the second handle is a right handle.

[0083] The handle includes a first handle and a second handle, the placement slot includes a first placement slot and a second placement slot, the first placement slot includes a first electrode contact pin, a second electrode contact pin and a left trigger contact pin, the second placement slot includes a first electrode contact pin, a second electrode contact pin and a right trigger contact pin, and the handle includes four contacts.

[0084] like Figure 5 As shown, when the first handle is placed in the first placement slot, the first electrode contact pin, the second electrode contact pin and the left trigger contact pin of the first placement slot are electrically connected to the contacts of the first handle; when the first handle is placed in the second placement slot, the first electrode contact pin, the second electrode contact pin and the right trigger contact pin of the second placement slot are electrically connected to the contacts of the second handle.

[0085] The attribute information of the handle is determined according to the connection mode between the contact point of the handle and the stylus in the placement slot, that is, when the contact point of the first handle is connected to the stylus of the first placement slot and the contact point of the second handle is connected to the stylus of the second placement slot, the first handle is the left handle and the second handle is the right handle.

[0086] When the implementation of step S11 is S110, the implementation of step S12 is:

[0087] S120: When the first handle is a left handle and the second handle is a right handle, the initial address information of the first handle is the first initial address information, and the initial address information of the second handle is the second initial address information.

[0088] When the handle is placed in the corresponding placement slot, the first connection states of the handles at different positions and the placement slot are different. The handle or head fixing module sends the first connection state of the handle and the placement slot to the vehicle-mounted main control module. The vehicle-mounted main control module first determines the attribute information of the handle based on the first connection state of the handle and the placement slot sent by the handle or head fixing module, and then determines the initial address information of the handle based on the determined attribute information of the handle, that is, when it is determined that the first handle is the left handle and the second handle is the right handle, the initial address information of the first handle is the first initial address information, and the initial address information of the second handle is the second initial address information.

[0089] Figure 6 is a flow chart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure. Figure 3 Based on the corresponding embodiments, Figure 6 As shown, another specific implementation of step S11 includes:

[0090] S111. When the contact point of the second handle is connected to the contact pin of the first placement slot, and the contact point of the first handle is connected to the contact pin of the second placement slot, the second handle is a left handle, and the first handle is a right handle.

[0091] Figure 6 In the corresponding embodiment, the attribute information of the handle is determined according to the connection method between the contact of the handle and the contact pin in the placement slot, that is, when the contact of the second handle is connected to the contact pin of the first placement slot, and the contact of the first handle is connected to the contact pin of the second placement slot, the second handle is the left handle and the first handle is the right handle.

[0092] When the implementation of step S11 is S111, the implementation of step S12 is:

[0093] S121: When the second handle is a left handle and the first handle is a right handle, the initial address information of the second handle is the first initial address information, and the initial address information of the first handle is the second initial address information.

[0094] At this time, the initial address information of the second handle is correspondingly determined to be the first initial address information, and the initial address information of the first handle is correspondingly determined to be the second initial address information.

[0095] As a specific implementable method, optionally, when the target address information included in the connection message is the first initial address, a communication channel with the left handle is established;

[0096] When the target address information included in the connection message is the second initial address, a communication channel with the right handle is established; or,

[0097] When the target address information included in the connection message is the second initial address, a communication channel with the left handle is established;

[0098] When the target address information included in the connection message is the first initial address, a communication channel with the right handle is established.

[0099] After determining that the first handle is the left handle and the second handle is the right handle, if the user triggers the first handle to send a connection message to the vehicle main control module, the target address information included in the connection message is the first initial address, and the vehicle main control module establishes a communication channel with the left handle. If the user triggers the second handle to send a connection message to the vehicle main control module, the target address included in the connection message is the second initial address, and the vehicle main control module establishes a communication channel with the right handle. And when determining that the first handle is the right handle and the second handle is the left handle, if the user triggers the first handle to send a connection message to the vehicle main control module, the target address included in the connection message is the second initial address, and the vehicle main control module establishes a communication channel with the left handle. If the user triggers the second handle to send a connection message to the vehicle main control module, the target address included in the connection message is the first initial address, and the vehicle main control module establishes a communication channel with the right handle.

[0100] Figure 7It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure. The embodiment of the present disclosure is based on the above embodiment. Figure 7 As shown, the method also includes:

[0101] S30: Respond to the control instruction sent by the handle and execute a control action according to the control instruction.

[0102] After establishing a communication channel paired with the handle, the vehicle-mounted main control module executes control actions based on the control instructions sent by the handle.

[0103] Figure 8 It is a flowchart of another method for pairing communication channels of a vehicle-mounted VR handle provided by an embodiment of the present disclosure. The embodiment of the present disclosure is based on the above embodiment. Figure 8 As shown, the method also includes:

[0104] S40: When the state between the handle and the placement slot changes from the disconnected state to the second connected state, in response to an interruption instruction sent by the handle, the communication channel paired with the handle is interrupted according to the interruption instruction.

[0105] Specifically, when the user has finished using the handle, the handle is placed in the placement slot. At this time, the state of the handle and the placement slot changes from a disconnected state to a second connected state. Since the handle is placed in the placement slot, at this time, the handle sends an interrupt command to the vehicle-mounted main control module, so that the vehicle-mounted main control module interrupts the communication channel with the handle based on the interrupt command sent by the handle.

[0106] It should be noted that the second connection state provided in the embodiment of the present disclosure may be the same as the first connection state, or may be different from the first connection state, and the embodiment of the present disclosure does not specifically limit this.

[0107] As an implementable embodiment, optionally, the initial address information of the handle is determined based on the second connection state between the handle and the placement slot. When the second connection state between the handle and the placement slot is the same as the first connection state, the initial address information of the handle determined at this time is the same as the initial address information of the handle determined when the connection state between the handle and the placement slot is the first connection state; when the second connection state between the handle and the placement slot is different from the first connection state, the initial address information of the handle determined at this time is different from the initial address information of the handle determined when the connection state between the handle and the placement slot is the first connection state.

[0108] Fig. 9 is a structural diagram of a vehicle-mounted VR handle communication channel pairing device provided by an embodiment of the present disclosure, such as Fig. 9 As shown, the device comprises:

[0109] An initial address information determining module 810, configured to determine initial address information of the handle based on a first connection state between the handle and the placement slot;

[0110] The communication channel establishing module 820 is used to establish a communication channel paired with the handle based on the correspondence between the target address information and the initial address information included in the connection message in response to the connection message sent by the handle when the handle is disconnected from the placement slot.

[0111] The vehicle-mounted VR handle communication channel pairing device provided by the embodiment of the present disclosure determines the initial address information of the handle based on the first connection state between the handle and the placement slot, and when the handle and the placement slot are in a disconnected state, in response to a connection message sent by the handle, establishes a communication channel paired with the handle based on the correspondence between the target address information included in the connection message and the initial address information, because the initial address information of the handle acquired by the vehicle-mounted main control module is determined based on the first connection state between the handle and the placement slot, and in the process of establishing the communication channel between the handle and the vehicle-mounted main control module, based on the correspondence between the target address information included in the connection message sent by the handle and the acquired initial address information of the handle The communication channel between the vehicle-mounted main control module and the handle is established. Therefore, even if the positions of the left and right handles of the vehicle-mounted VR device are confused due to the same morphological structure of the left and right handles, the communication channel between the vehicle-mounted main control module and the handle can also be correctly established. That is, after the handle is placed in the placement slot and connected to the placement slot, the initial address information of the handle obtained by the vehicle-mounted main control module is determined based on the placement position of the handle, that is, it is re-determined whether the handle is the left handle or the right handle, and then when the handle is disconnected from the placement slot, the vehicle-mounted main control module establishes the corresponding communication channel based on the obtained initial address information of the handle, thereby realizing the establishment of the communication channel between the vehicle-mounted main control module and the handle.

[0112] Optionally, the initial address information determination module includes:

[0113] an attribute information determining unit, configured to determine attribute information of the handle based on a first connection state between the handle and the placement slot;

[0114] The initial address information determining unit is used to determine the initial address information of the handle according to the attribute information of the handle.

[0115] Optionally, the attribute information determining unit is specifically used to:

[0116] Determine attribute information of the handle based on a first connection state between the handle and the placement slot sent by a wireless communication module of the handle; or,

[0117] Based on the first connection state between the handle and the placement slot sent by the wired communication module of the head fixing module, attribute information of the handle is determined.

[0118] Optionally, the attribute information determining unit is further specifically configured to:

[0119] When the contact point of the first handle is connected to the contact pin of the first placement slot, and the contact point of the second handle is connected to the contact pin of the second placement slot, the first handle is the left handle, and the second handle is the right handle;

[0120] When the contact point of the second handle is connected to the contact pin of the first placement groove, and the contact point of the first handle is connected to the contact pin of the second placement groove, the second handle is the left handle and the first handle is the right handle.

[0121] Optionally, the initial address information determining unit is specifically used to:

[0122] When the first handle is a left handle and the second handle is a right handle, the initial address information of the first handle is the first initial address information, and the initial address information of the second handle is the second initial address information;

[0123] When the second handle is a left handle and the first handle is a right handle, the initial address information of the second handle is the first initial address information, and the initial address information of the first handle is the second initial address information.

[0124] Optionally, the communication channel establishing module is specifically used for:

[0125] When the target address information included in the connection message is the first initial address, a communication channel with the left handle is established;

[0126] When the target address information included in the connection message is the second initial address, a communication channel with the right handle is established; or,

[0127] When the target address information included in the connection message is the second initial address, a communication channel with the left handle is established;

[0128] When the target address information included in the connection message is the first initial address, a communication channel with the right handle is established.

[0129] Optionally, also include:

[0130] The execution module is used to respond to the control instruction sent by the handle and execute the control action according to the control instruction.

[0131] Optionally, also include:

[0132] The interrupt module is used to respond to an interrupt instruction sent by the handle when the state of the handle and the placement slot changes from a disconnected state to a second connected state, and interrupt the communication channel paired with the handle according to the interrupt instruction.

[0133] Optionally, also include:

[0134] Based on the second connection state between the handle and the placement slot, initial address information of the handle is determined.

[0135] The device provided by the embodiment of the present invention can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0136] It is worth noting that in the embodiment of the above-mentioned device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0137] Fig.10 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure, such as Fig.10 As shown, the electronic device includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of processors 710 in the computer device can be one or more. Fig.10 A processor 710 is taken as an example; the processor 710, the memory 720, the input device 730 and the output device 740 in the electronic device can be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0138] The memory 720 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 720, that is, implementing the method provided in the embodiment of the present invention.

[0139] The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0140] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 740 may include a display device such as a display screen.

[0141] The embodiments of the present disclosure further provide a vehicle, which includes the electronic device provided in the above embodiments.

[0142] The embodiment of the present disclosure also provides a storage medium containing computer executable instructions, and the computer executable instructions are used to implement the method provided by the embodiment of the present disclosure when executed by a computer processor.

[0143] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the method provided by any embodiment of the present invention.

[0144] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0145] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0146] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for pairing communication channels of a vehicle-mounted VR handle, characterized in that: The vehicle-mounted VR comprises a head fixing module and a handle, the head fixing module is provided with a placement slot for placing the handle, and the method comprises: Based on the first connection state between the handle and the placement slot, determining the initial address information of the handle, wherein the initial address information of the handle is determined based on the placement slot where the handle is located; When the handle is disconnected from the placement slot, in response to a connection message sent by the handle, the target address information included in the connection message is compared with the initial address information, and if the target address information is consistent with the initial address information, it is determined that there is a corresponding relationship between the target address information and the initial address information; Based on the correspondence between the target address information included in the connection message and the initial address information, a communication channel for pairing with the handle is established.

2. The method according to claim 1, characterized in that The determining the initial address information of the handle based on the first connection state between the handle and the placement slot includes: Determining attribute information of the handle based on a first connection state between the handle and the placement slot; The initial address information of the handle is determined according to the attribute information of the handle.

3. The method according to claim 2, characterized in that The handle includes a wireless communication module, and the head fixing module includes a wired communication module; The determining the attribute information of the handle based on the first connection state between the handle and the placement slot includes: Determine attribute information of the handle based on a first connection state between the handle and the placement slot sent by a wireless communication module of the handle; or, Based on the first connection state between the handle and the placement slot sent by the wired communication module of the head fixing module, attribute information of the handle is determined.

4. The method according to claim 2 or 3, characterized in that: The handle includes a first handle and a second handle, the placement slot includes a first placement slot and a second placement slot, the first placement slot includes a first electrode contact pin, a second electrode contact pin and a left trigger contact pin, the second placement slot includes a first electrode contact pin, a second electrode contact pin and a right trigger contact pin, and the handle includes four contacts; The determining the attribute information of the handle based on the first connection state between the handle and the placement slot includes: When the contact point of the first handle is connected to the contact pin of the first placement slot, and the contact point of the second handle is connected to the contact pin of the second placement slot, the first handle is a left handle, and the second handle is a right handle; When the contact point of the second handle is connected to the contact pin of the first placement slot, and the contact point of the first handle is connected to the contact pin of the second placement slot, the second handle is a left handle and the first handle is a right handle.

5. The method according to claim 4, characterized in that The determining the initial address information of the handle according to the attribute information of the handle includes: When the first handle is a left handle and the second handle is a right handle, the initial address information of the first handle is the first initial address information, and the initial address information of the second handle is the second initial address information; When the second handle is a left handle and the first handle is a right handle, the initial address information of the second handle is the first initial address information, and the initial address information of the first handle is the second initial address information.

6. The method according to claim 1, characterized in that The establishing a communication channel for pairing with the handle based on the correspondence between the target address information included in the connection message and the initial address information includes: When the target address information included in the connection message is the first initial address, establishing a communication channel with the left handle; When the target address information included in the connection message is the second initial address, a communication channel with the right handle is established; or, When the target address information included in the connection message is the second initial address, establishing a communication channel with the left handle; When the target address information included in the connection message is the first initial address, a communication channel with the right handle is established.

7. The method according to claim 1, characterized in that The method further comprises: In response to the control instruction sent by the handle, a control action is executed according to the control instruction.

8. The method according to claim 1, characterized in that The method further comprises: When the state of the handle and the placement slot changes from a disconnected state to a second connected state, in response to an interruption instruction sent by the handle, the communication channel paired with the handle is interrupted according to the interruption instruction.

9. The method according to claim 8, characterized in that When the method responds to the interruption instruction sent by the handle and interrupts the communication channel paired with the handle according to the interruption instruction, the method further includes: Based on the second connection state between the handle and the placement slot, initial address information of the handle is determined.

10. A vehicle-mounted VR handle communication channel pairing device, characterized in that: The vehicle-mounted VR comprises a head fixing module and a handle, wherein the head fixing module is provided with a placement slot for placing the handle, and the device comprises: an initial address information determining module, configured to determine the initial address information of the handle based on the first connection state between the handle and the placement slot, wherein the initial address information of the handle is determined based on the placement position of the handle; A communication channel establishing module is used to respond to a connection message sent by the handle when the handle and the placement slot are in a disconnected state, compare the target address information included in the connection message with the initial address information, and if the target address information is consistent with the initial address information, determine that there is a corresponding relationship between the target address information and the initial address information; based on the corresponding relationship between the target address information included in the connection message and the initial address information, establish a communication channel paired with the handle.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

12. A vehicle, characterized in that: The electronic device comprising claim 11.

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

Citation Information

Patent Citations

  • Virtual reality equipment and virtual reality system

    CN212344063U

  • Pairing system and method for wirelessly connecting communication devices

    US20060083187A1