A vehicle game control method, vehicle multimedia system host and storage medium
The connection between the vehicle multimedia system host and the game controller is established through the Bluetooth protocol, which solves the problem of one-way operation of the car center console, enables users to operate car games through the game controller, improves the user experience and optimizes the utilization of equipment resources.
Patent Information
- Application Number
- CN202010080273.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-05
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-02-05
AI Technical Summary
The operation method of the existing car center console is one-way and lacks interactivity, resulting in poor user experience and the inability to perform interactive game operations through the center console.
The communication between the vehicle multimedia system host and the game controller is realized through the Bluetooth protocol, the connection is established using Bluetooth pairing request and handshake verification, and the game command data is transmitted to the vehicle game application, so that the user can operate the vehicle game through the game controller.
It enables users to operate in-vehicle games through the game controller, which improves the user experience and does not affect other functions of the in-vehicle multimedia system host, such as phone calls, music, navigation, etc., and improves the utilization of equipment resources.
Smart Images

Figure CN113230648B
Abstract
Description
Technical Field
[0001] The present invention relates to computer software communication technology, and in particular to a vehicle game control method, a vehicle multimedia system host and a storage medium. Background Art
[0002] With the development of vehicle electronic technology, more and more functions are integrated into cars. Users can navigate, listen to music, and even watch videos through the car's center console. However, the existing technology has one-way operation for the center console without interactive process, which lacks fun. Therefore, it can be considered to play games through the vehicle's center console to enhance the user experience and add fun. However, it is obviously inappropriate to operate the game directly through the display screen of the center console. Summary of the invention
[0003] In order to solve the above technical problems, in a first aspect, the present invention discloses a vehicle game control method, which is applied to a vehicle multimedia system host, and comprises:
[0004] Send a Bluetooth pairing request to the paired game controller;
[0005] Establishing a Bluetooth connection with the game controller according to a handshake verification result returned by the game controller based on the Bluetooth pairing request;
[0006] Receive game command data sent by the game controller through the Bluetooth protocol serial port;
[0007] The game instruction data is transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
[0008] Furthermore, sending a Bluetooth pairing request to the paired game controller includes:
[0009] Get the pairable devices within the scanning range;
[0010] A Bluetooth pairing request is sent to the game controller according to the received user pairing instruction, wherein the Bluetooth pairing request carries the MAC address and link keyword of the vehicle multimedia system host.
[0011] Further, establishing a Bluetooth connection with the game controller according to a handshake verification result returned by the game controller based on the Bluetooth pairing request includes:
[0012] Receiving a handshake verification result of the game controller on the MAC address based on the Bluetooth pairing request;
[0013] If the handshake check result of the MAC address passes, sending a link keyword to the game controller;
[0014] Receiving a handshake verification result of the game controller on the link keyword;
[0015] If the handshake verification result of the link keyword is passed, a Bluetooth connection is established with the game controller.
[0016] Furthermore, the game instruction data includes key value information of a game controller, and the key value information is information generated when a key of the game controller is operated;
[0017] The transmitting the game instruction data to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application performs corresponding actions based on the game instruction data, includes:
[0018] The key value information of the game controller is transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application maps the key value information of the game controller to the corresponding coordinate points of the game interface and performs corresponding actions.
[0019] In a second aspect, the present invention further provides a vehicle game control method, which is applied to a game controller and includes:
[0020] Receive Bluetooth pairing request from the vehicle multimedia system host;
[0021] Perform handshake verification according to the Bluetooth pairing request, and establish a Bluetooth connection with the vehicle multimedia system host;
[0022] The game instruction data is sent to the in-vehicle multimedia system host based on the Bluetooth connection, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
[0023] Furthermore, the Bluetooth pairing request carries the MAC address and link keyword of the vehicle multimedia system host;
[0024] The step of performing handshake verification according to the Bluetooth pairing request and connection request to establish a Bluetooth connection with the vehicle multimedia system host includes:
[0025] Receiving the MAC address sent by the vehicle multimedia system host;
[0026] Performing a handshake check according to the MAC address, and sending the handshake check result of the MAC address to the vehicle multimedia system host;
[0027] If the handshake check result of the MAC address is passed, receiving the link keyword sent by the vehicle multimedia system host;
[0028] A handshake check is performed according to the link keyword. If the handshake check result of the link keyword is passed, a Bluetooth connection is established with the vehicle multimedia system host, and the handshake check result of the link keyword is sent to the vehicle multimedia system host.
[0029] In a third aspect, the present invention further provides a vehicle game control method, the vehicle game control method comprising:
[0030] The in-vehicle multimedia system host sends a Bluetooth pairing request to the paired game controller;
[0031] The game controller performs a handshake verification according to the Bluetooth pairing request and establishes a Bluetooth connection with the vehicle multimedia system host;
[0032] The game controller sends game command data to the vehicle-mounted multimedia system host;
[0033] The vehicle-mounted multimedia system host receives the game command data sent by the game controller through the Bluetooth protocol serial port; and transmits the game command data to the vehicle-mounted game application by calling the soft interface of the vehicle-mounted multimedia system host, so that the vehicle-mounted game application performs corresponding actions based on the game command data.
[0034] In a fourth aspect, the present invention also provides a vehicle-mounted multimedia system host, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement a vehicle-mounted game control method as described in any one of the above.
[0035] In a fifth aspect, the present invention also provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded by a processor and executed by any one of the above-described vehicle game control methods.
[0036] By adopting the above technical solution, the present invention has the following beneficial effects:
[0037] The present invention realizes the communication between the vehicle multimedia system host and the game handle, so that the user can operate the vehicle game by manipulating the game handle, thereby improving the user experience. In addition, during this process, the vehicle multimedia system host can still realize its original function, thereby improving the utilization of device resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 A schematic flow chart of a vehicle game control method provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a process of sending a Bluetooth pairing request provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a process for establishing a Bluetooth connection provided by an embodiment of the present invention;
[0042] Figure 4 A flowchart of another vehicle game control method provided by an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of another process of establishing a Bluetooth connection provided by an embodiment of the present invention;
[0044] Figure 6 A schematic diagram of a system provided by an embodiment of the present invention;
[0045] Figure 7 A flowchart of another vehicle game control method provided by an embodiment of the present invention.
[0046] The following is a supplementary description of the attached drawings:
[0047] 01-In-vehicle multimedia system host; 02-Game controller. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0050] Example:
[0051] Figure 1 It is a flow chart of a car game control method provided by an embodiment of the present invention. This specification provides method operation steps as described in the embodiment or flow chart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment).
[0052] Specifically, Figure 1 As shown, the vehicle game control method is applied to a vehicle multimedia system host and may include:
[0053] S110: Sending a Bluetooth pairing request to the paired game controller.
[0054] In some possible implementations, such as Figure 2 As shown, a Bluetooth pairing request can be sent to a paired game controller in the following manner.
[0055] S111: Acquire the pairable devices within the scanning range;
[0056] S112: Sending a Bluetooth pairing request to the game controller according to the received user pairing instruction, wherein the Bluetooth pairing request carries the MAC address and link keyword of the vehicle multimedia system host.
[0057] Among them, MAC address is Media Access Control Address, which is used to uniquely identify a network card in the network. Link Key is the keyword used to establish a connection between two devices.
[0058] In a specific implementation, there may be only one game controller or multiple pairable devices within the scanning range. A pairing connection request may be sent to the corresponding device according to the received user's click operation. For example, the user can select the device to be connected by clicking the corresponding device name. When the user clicks the device name corresponding to the game controller, a Bluetooth pairing request is sent to the game controller. A pairing connection request may also be sent to the corresponding device according to the received user's voice command.
[0059] S120: Establishing a Bluetooth connection with the game controller according to a handshake verification result returned by the game controller based on the Bluetooth pairing request.
[0060] In some possible implementations, such as Figure 3 As shown, a Bluetooth connection can be established with the game controller according to the handshake verification result returned by the game controller based on the Bluetooth pairing request in the following manner.
[0061] S121: receiving a handshake verification result of the game controller on the MAC address based on the Bluetooth pairing request;
[0062] S122: If the handshake verification result of the MAC address is passed, sending a link keyword to the game controller;
[0063] S123: receiving a handshake verification result of the game controller on the link keyword;
[0064] S124: If the handshake verification result of the link keyword is passed, a Bluetooth connection is established with the game controller.
[0065] In a specific implementation, if the handshake check result of the MAC address fails, or the handshake check result of the link keyword fails, the pairing connection with the game controller is terminated.
[0066] S130: receiving game instruction data sent by the game controller through the Bluetooth protocol serial port.
[0067] In some feasible implementations, the game command data sent by the game controller may be received via the 4.0 HID protocol, wherein the game command data may be BLE data.
[0068] In a specific implementation, a chip Bluetooth is provided in the vehicle multimedia system host, and the chip Bluetooth can be understood as hardware, such as a collection of integrated circuit chips with integrated Bluetooth functions, which can be used for communication in a Bluetooth wireless network. The game command data sent by the game controller can be received through the serial port of the chip Bluetooth (i.e., the Bluetooth protocol serial port).
[0069] S140: The game instruction data is transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
[0070] In a specific implementation, after the serial port of the chip Bluetooth receives the game command data sent by the game controller, the soft interface of the vehicle multimedia system host can be called to transmit the game command data to the vehicle game application of the vehicle multimedia system host.
[0071] In some feasible implementations, the game instruction data includes key value information of a game controller, and the key value information is information generated when a button of the game controller is operated.
[0072] Specifically, the key value information of the game controller can be transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application maps the key value information of the game controller to the corresponding coordinate points of the game interface and performs corresponding actions.
[0073] Through the above implementation, the present invention realizes the communication between the vehicle multimedia system host and the game handle, so that the user can operate the vehicle game by manipulating the game handle, thereby improving the user experience. In addition, during this process, the vehicle multimedia system host can still realize its original functions, such as realizing telephone, music, navigation, video, gallery, voice assistant, and vehicle body settings, thereby improving the utilization of resources.
[0074] The embodiment of the present invention also provides a vehicle game control method, such as Figure 4 As shown, the vehicle game control method is applied to a game controller and may include:
[0075] S210: Receive a Bluetooth pairing request sent by the vehicle multimedia system host.
[0076] In a specific implementation, the Bluetooth pairing request may carry the MAC address of the vehicle multimedia system host and a link keyword. The MAC address is the Media Access Control Address, which is used to uniquely identify a network card in the network. The link keyword is the Link Key, which is a keyword used to establish a connection between two devices.
[0077] S220: Perform handshake verification according to the Bluetooth pairing request and establish a Bluetooth connection with the vehicle multimedia system host.
[0078] In some possible implementations, such as Figure 5As shown, a handshake verification can be performed according to the Bluetooth pairing request and connection request to establish a Bluetooth connection with the vehicle multimedia system host in the following manner:
[0079] S221: receiving the MAC address sent by the vehicle multimedia system host;
[0080] S222: Perform handshake verification according to the MAC address, and send the handshake verification result of the MAC address to the vehicle multimedia system host;
[0081] S223: If the handshake verification result of the MAC address is passed, receiving the link keyword sent by the vehicle multimedia system host;
[0082] S224: Perform handshake verification according to the link keyword. If the handshake verification result of the link keyword is passed, establish a Bluetooth connection with the in-vehicle multimedia system host, and send the handshake verification result of the link keyword to the in-vehicle multimedia system host.
[0083] S230: Sending game instruction data to the in-vehicle multimedia system host based on the Bluetooth connection, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
[0084] Furthermore, the data transmission between the in-vehicle multimedia system host and the game controller is unidirectional data transmission, that is, the game controller sends its data unidirectionally to the in-vehicle multimedia system host.
[0085] In some feasible implementations, the game controller may send the data information to the in-vehicle multimedia system host via a report protocol, which is a standard Bluetooth HID protocol used for receiving and sending data.
[0086] In a specific implementation, the game instruction data includes key value information of a game controller, and the key value information is information generated when a button of the game controller is operated.
[0087] It is understandable that the game controller may have operation buttons such as "up", "down", "left" and "right". When the user operates the buttons on the game controller, corresponding operation information will be generated, and the game controller can process the operation information to generate key value information. For example, when the user operates the "up" button of the game controller, the game controller processes the operation information into the first key value information. When the game controller is successfully paired with the vehicle multimedia system host, the game controller can send the first key value information to the vehicle multimedia system host through the corresponding Bluetooth protocol; the vehicle multimedia system host receives the first key value information and sends it to the current car game, so that the car game is mapped to the corresponding coordinate point according to the first key value information and performs the "up" operation. Among them, the current car game refers to the game currently running on the car.
[0088] See also Figure 6 , Figure 6 is a schematic diagram of a system provided by an embodiment of the present invention, such as Figure 6 As shown, the system may include a vehicle multimedia system host 01 and a game controller 02 .
[0089] Specifically, the in-vehicle multimedia system host 01 is referred to as a car machine, which can be understood as a device equipped with in-vehicle infotainment products.
[0090] Specifically, the game controller 02 can be understood as a game component with operating buttons, and the game interface can be controlled by operating its buttons.
[0091] The following describes the vehicle game control method based on the above system of the present invention. Figure 7 1 is a flow chart of a vehicle game control method provided by an embodiment of the present invention, wherein the vehicle game control method comprises:
[0092] S310: The in-vehicle multimedia system host sends a Bluetooth pairing request to the paired game controller.
[0093] The Bluetooth pairing request carries the MAC address of the vehicle multimedia system host and a link keyword. The MAC address is the Media Access Control Address, which is used to uniquely identify a network card in the network. The link keyword is the Link Key, which is a keyword used to establish a connection between two devices.
[0094] S320: The game controller performs a handshake verification according to the Bluetooth pairing request and establishes a Bluetooth connection with the vehicle multimedia system host.
[0095] In a specific implementation, the in-vehicle multimedia system host is provided with a chip Bluetooth, which can be understood as hardware, such as a collection of integrated circuit chips with integrated Bluetooth functions, which can be used for Bluetooth wireless network communication. The game controller can perform handshake verification based on the MAC and link keywords in the Bluetooth pairing request, and establish a Bluetooth connection with the chip Bluetooth of the in-vehicle multimedia system host.
[0096] S330: The game controller sends game instruction data to the in-vehicle multimedia system host.
[0097] In a specific implementation, after the game controller establishes a connection with the chip Bluetooth, the game controller can send game instruction data to the chip Bluetooth.
[0098] Furthermore, the game instruction data may include key value information of a game controller, and the key value information is information generated when a button of the game controller is operated.
[0099] S340: The vehicle multimedia system host receives the game command data sent by the game controller through the Bluetooth protocol serial port; and transmits the game command data to the vehicle game application by calling the soft interface of the vehicle multimedia system host, so that the vehicle game application performs corresponding actions based on the game command data.
[0100] In a specific implementation, after the serial port of the chip Bluetooth receives the game command data sent by the game controller, the game command data can be transmitted to the in-vehicle game application of the in-vehicle multimedia system host by calling the soft interface of the in-vehicle multimedia system host.
[0101] An embodiment of the present invention also provides a vehicle-mounted multimedia system host, including a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a vehicle-mounted game control method as described in any one of the above.
[0102] An embodiment of the present invention also provides a computer-readable storage medium, in which at least one instruction, at least one program, code set or instruction set is stored. The at least one instruction, at least one program, code set or instruction set is loaded by a processor and executed by any one of the above-described vehicle game control methods.
[0103] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0104] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, system and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0105] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle game control method, characterized in that: The vehicle game control method is applied to a vehicle multimedia system host, comprising: Sending a Bluetooth pairing request to the paired game controller; the Bluetooth pairing request carries the MAC address and link keyword of the vehicle multimedia system host; Receiving a handshake verification result of the game controller on the MAC address based on the Bluetooth pairing request; If the handshake check result of the MAC address passes, sending a link keyword to the game controller; Receiving a handshake verification result of the game controller on the link keyword; If the handshake verification result of the link keyword is passed, establishing a Bluetooth connection with the game controller; Receive game command data sent by the game controller through the Bluetooth protocol serial port; The game instruction data is transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
2. The vehicle game control method according to claim 1, characterized in that: The sending of a Bluetooth pairing request to the paired game controller includes: Get the pairable devices within the scanning range; Send a Bluetooth pairing request to the game controller according to the received user pairing instruction.
3. The vehicle game control method according to claim 1, characterized in that: The game instruction data includes key value information of the game controller, and the key value information is information generated when a key of the game controller is operated; The transmitting the game instruction data to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application performs corresponding actions based on the game instruction data, includes: The key value information of the game controller is transmitted to the in-vehicle game application by calling the soft interface of the in-vehicle multimedia system host, so that the in-vehicle game application maps the key value information of the game controller to the corresponding coordinate points of the game interface and performs corresponding actions.
4. A vehicle game control method, characterized in that: The vehicle game control method is applied to a game controller, comprising: Receiving a Bluetooth pairing request sent by the vehicle multimedia system host; the Bluetooth pairing request carries the MAC address and link keyword of the vehicle multimedia system host; Receiving the MAC address sent by the vehicle multimedia system host; Performing a handshake check according to the MAC address, and sending the handshake check result of the MAC address to the vehicle multimedia system host; If the handshake check result of the MAC address is passed, receiving the link keyword sent by the vehicle multimedia system host; Performing a handshake check according to the link keyword, if the handshake check result of the link keyword is passed, establishing a Bluetooth connection with the in-vehicle multimedia system host, and sending the handshake check result of the link keyword to the in-vehicle multimedia system host; The game instruction data is sent to the in-vehicle multimedia system host based on the Bluetooth connection, so that the in-vehicle game application performs corresponding actions based on the game instruction data.
5. A vehicle game control method, characterized in that: The vehicle game control method comprises: The in-vehicle multimedia system host sends a Bluetooth pairing request to the paired game controller; the Bluetooth pairing request carries the MAC address and link keyword of the in-vehicle multimedia system host; The game controller performs a handshake check according to the MAC address, and sends the handshake check result of the MAC address to the vehicle multimedia system host; If the handshake check result of the MAC address is passed, the game controller receives the link keyword sent by the vehicle multimedia system host; The game controller performs a handshake check according to the link keyword, and if the handshake check result of the link keyword is passed, establishes a Bluetooth connection with the vehicle multimedia system host; The game controller sends game command data to the vehicle-mounted multimedia system host; The vehicle-mounted multimedia system host receives the game command data sent by the game controller through the Bluetooth protocol serial port; and transmits the game command data to the vehicle-mounted game application by calling the soft interface of the vehicle-mounted multimedia system host, so that the vehicle-mounted game application performs corresponding actions based on the game command data.
6. A vehicle-mounted multimedia system host, characterized in that: It includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the vehicle game control method as described in any one of claims 1-3.
7. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor according to any one of claims 1-3.
