Wireless communication method, sensor, car machine, medium, product, device and vehicle
By generating and sending broadcast messages in a pre-defined format at the Bluetooth sensor end, including anti-counterfeiting fields, and combining the legitimacy authentication of the Bluetooth sensor and the vehicle's infotainment system, the problems of limited number of connected devices and high power consumption in vehicle wireless communication are solved, thus achieving secure wireless communication and long standby time.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2024-12-02
- Publication Date
- 2026-06-02
AI Technical Summary
Existing in-vehicle wireless communication technologies are limited by BLE chips, which cannot connect more than 7 devices. Furthermore, BLE long-connection technologies consume a lot of power, making it impossible for devices to achieve long-term standby.
The system uses Bluetooth sensors to generate broadcast messages in a predefined format, including anti-counterfeiting fields, and sends the messages via Bluetooth broadcast. The vehicle's infotainment system parses the anti-counterfeiting fields to authenticate the messages, ensuring their legitimacy and security.
This enables wireless communication without being limited by the number of connected devices, reduces device power consumption, and improves communication security and reliability.
Smart Images

Figure CN122138135A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a wireless communication method, sensor, vehicle-mounted system, medium, product, device, and vehicle. Background Technology
[0002] Vehicle-to-everything (V2X) wireless communication refers to the use of radio waves to enable information transmission and technical connectivity between vehicles, between vehicles and roadside facilities, and between vehicles and the internet. This communication method is particularly important in intelligent connected vehicles, aiming to improve the intelligence and automation level of automobiles and achieve real-time data exchange and communication between vehicles and between vehicles and infrastructure.
[0003] In existing in-vehicle wireless communication technologies, most use BLE long-connection technology to manage external devices. The drawback of this approach is that the vehicle's infotainment system is limited by the chip's capabilities, preventing the connection of more than seven devices (this number varies depending on the chip's specifications and different manufacturers). Furthermore, because BLE long-connection technology consumes significant power on the device side, it cannot achieve long-term standby time for the devices. Summary of the Invention
[0004] This invention provides a wireless communication method, sensor, vehicle-mounted system, medium, product, device, and vehicle to enable wireless communication between external devices and the vehicle-mounted system.
[0005] According to one aspect of the present invention, a wireless communication method is provided, the method being applied to a Bluetooth sensor, comprising:
[0006] In response to sensor-triggered events, acquire business information and device keys;
[0007] A broadcast message with a set format is generated based on the device key and the service information; wherein, the broadcast message includes an anti-counterfeiting field;
[0008] The broadcast message is sent via Bluetooth.
[0009] Further, a broadcast message with a predetermined format is generated based on the device key and the service information, including:
[0010] A first message field is generated according to the set broadcast format; wherein the first message field contains the service information and device identification information;
[0011] The anti-counterfeiting field is generated based on the first message field and the device key;
[0012] The combination of the first message field and the anti-counterfeiting field is used as the broadcast message.
[0013] Further, generating the anti-counterfeiting field based on the first message field and the device key includes:
[0014] The first message field is combined with the device key and then combined with a block cipher algorithm to obtain the target message authentication code;
[0015] The target message authentication code is hashed to obtain the anti-counterfeiting field.
[0016] According to another aspect of the present invention, a wireless communication method is provided, the method being applied to an in-vehicle infotainment system, comprising:
[0017] Scan external broadcasts and receive broadcast messages sent by Bluetooth sensors; wherein the broadcast message includes a first message field and an anti-counterfeiting field;
[0018] The device key is obtained by parsing the anti-counterfeiting field. The broadcast message is then authenticated based on the device key. If the authentication is successful, the first message field is parsed to obtain the business information.
[0019] Furthermore, the method for generating the anti-counterfeiting field includes:
[0020] The first message field is combined with the device key and then combined with a block cipher algorithm to obtain the target message authentication code;
[0021] The target message authentication code is hashed to obtain the anti-counterfeiting field.
[0022] Further, the legitimacy of the broadcast message is authenticated based on the device key, including:
[0023] Obtain the key list;
[0024] The device key is matched with the device identification information in the key list. If the match is successful, the authentication is successful.
[0025] According to another aspect of the present invention, a Bluetooth sensor is provided, comprising:
[0026] The business information and device key acquisition module is used to acquire business information and device keys in response to sensor-triggered events;
[0027] A broadcast message generation module is used to generate a broadcast message in a set format based on the device key and the service information; wherein, the broadcast message includes an anti-counterfeiting field;
[0028] A broadcast message sending module is used to send the broadcast message via Bluetooth.
[0029] According to another aspect of the present invention, a vehicle infotainment system is provided, comprising:
[0030] A broadcast message receiving module is used to scan for external broadcasts and receive broadcast messages sent by Bluetooth sensors; wherein, the broadcast message includes a first message field and an anti-counterfeiting field;
[0031] The broadcast message parsing module parses the anti-counterfeiting field to obtain the device key, performs legality authentication on the broadcast message based on the device key, and if the authentication is successful, parses the first message field to obtain the business information.
[0032] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the wireless communication method according to any embodiment of the present invention.
[0033] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program / instructions, which, when executed by a processor, implement the steps of the wireless communication method described in any embodiment of the present invention.
[0034] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0035] At least one processor; and
[0036] A memory communicatively connected to the at least one processor; wherein,
[0037] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the wireless communication method described in Embodiment 1 of the present invention.
[0038] According to another aspect of the present invention, a vehicle is provided, the vehicle including one or more controllers and a storage device, the storage device being used to store one or more programs, which, when executed by the one or more controllers, cause the one or more controllers to implement the wireless communication method described in Embodiment 2 of the present invention.
[0039] The wireless communication method disclosed in this invention can be applied to Bluetooth sensor terminals. First, in response to a sensor-triggered event, it acquires service information and a device key. Then, it generates a broadcast message with a predefined format based on the device key and service information. The broadcast message includes an anti-counterfeiting field. Finally, it sends the broadcast message via Bluetooth broadcast. This wireless communication method, by employing Bluetooth broadcast for communication between the Bluetooth sensor terminal and the vehicle's infotainment system, is not limited by the number of connected devices and can reduce device power consumption.
[0040] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a flowchart of a wireless communication method provided according to Embodiment 1 of the present invention;
[0043] Figure 2 This is a schematic diagram of a broadcast message format provided according to Embodiment 1 of the present invention;
[0044] Figure 3 This is a schematic diagram illustrating the generation process of an anti-counterfeiting field according to Embodiment 1 of the present invention;
[0045] Figure 4 This is a flowchart of a wireless communication method provided according to Embodiment 2 of the present invention;
[0046] Figure 5 This is a schematic diagram of communication between a Bluetooth sensor and a vehicle-mounted system according to Embodiment 2 of the present invention;
[0047] Figure 6 This is a schematic diagram of the structure of a Bluetooth sensor provided in Embodiment 3 of the present invention;
[0048] Figure 7 This is a schematic diagram of the structure of a vehicle infotainment system according to Embodiment 4 of the present invention;
[0049] Figure 8 This is a schematic diagram of the structure of an electronic device that implements the wireless communication method of Embodiment 5 of the present invention;
[0050] Figure 9 This is a schematic diagram of the structure of a vehicle that implements the wireless communication method of Embodiment Six of the present invention. Detailed Implementation
[0051] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0052] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0053] Example 1
[0054] Figure 1 This is a flowchart of a wireless communication method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where wireless communication is performed between a Bluetooth sensor and a vehicle-mounted system. The method can be executed by a Bluetooth sensor, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0055] S110: In response to a sensor-triggered event, obtain service information and device key.
[0056] Among them, the sensor trigger event is the event that triggers the Bluetooth sensor to broadcast data, and the service information is the service-related information that the Bluetooth sensor needs to broadcast. To prevent the broadcast information from being forged, anti-counterfeiting information can be added to the broadcast content, and the device key is the key required to calculate this anti-counterfeiting information.
[0057] Optionally, the Bluetooth sensor can be configured in external electronic devices such as mobile phones, computers, and smartwatches. Sensor trigger events can be of various types, such as conditions like temperature or time reaching set values, or user actions like button presses or clicks on the electronic device. In response to a sensor trigger event, the Bluetooth sensor can obtain corresponding business information from the electronic device. For example, if the sensor trigger event is that the current temperature has reached a set value, the corresponding business information could be the current temperature data.
[0058] In this embodiment, the Bluetooth sensor can communicate wirelessly with the vehicle's infotainment system. Before communication, the Bluetooth sensor and the vehicle's infotainment system can authenticate each other through security authentication methods to generate a device key for calculating anti-counterfeiting information, which is pre-stored on the Bluetooth sensor and the vehicle's infotainment system respectively.
[0059] S120. Generate a broadcast message in a set format based on the device key and service information.
[0060] The broadcast message includes an anti-counterfeiting field. The broadcast message is a message broadcast by the Bluetooth sensor.
[0061] In this embodiment, the format of the broadcast message is predefined. Figure 2 This is a schematic diagram of a broadcast message format provided by an embodiment of the present invention. As shown in the figure, the broadcast message consists of 8 fields, and the names and number of bytes occupied by each field are as follows: identity (2 bytes), product id (2 bytes), flag (1 byte), device id (4 bytes), seq (2 bytes), random (2 bytes), object (n bytes), and nonce (2 bytes). Among them, device id is the device identification information contained in the broadcast message, and nonce is the anti-counterfeiting field contained in the broadcast message. The description of each field in the broadcast message is shown in Table 1.
[0062] Table 1. Explanation of each field in the broadcast message.
[0063]
[0064]
[0065] Optionally, the method for generating a broadcast message in a set format based on the device key and service information may be: generating a first message field containing service information and device identification information according to the set broadcast format; generating an anti-counterfeiting field based on the first message field and the device key; and using the combination of the first message field and the anti-counterfeiting field as the broadcast message.
[0066] Specifically, a broadcast message consists of two parts: a first message field containing service information and an anti-spoofing field. When generating a broadcast message, the first message field, containing service information and device identification information (device id), can be generated first according to the prescribed broadcast format. Taking the broadcast format specified in Table 1 as an example, the first message field is the field preceding the nonce field. When generating the first message field, the Bluetooth sensor can fill in the required information for each field sequentially into the corresponding positions according to the format requirements.
[0067] By setting the format of broadcast messages, different types of Bluetooth sensors can send broadcast messages in a standard format, which facilitates unified management on the vehicle's infotainment system. Furthermore, by using the device key to generate an anti-counterfeiting field, it is possible to prevent unauthorized devices from forging broadcast messages.
[0068] Furthermore, the method for generating the anti-counterfeiting field based on the first message field and the device key can be as follows: combine the first message field and the device key, and combine them with a block encryption algorithm to obtain the target message authentication code; perform hash processing on the target message authentication code to obtain the anti-counterfeiting field.
[0069] Specifically, the block cipher algorithm used in this scheme can be AES-CMAC (Cryptographic Message Authentication Code). AES-CMAC is an encryption algorithm used to generate a message authentication code (MAC) from a given message and a symmetric key, providing data integrity and authentication. This algorithm is based on AES (Advanced Encryption Standard) block cipher and operates in CBC-MAC (Cryptographic Block Chaining Message Authentication Code) mode. AES-CMAC processes the input data (message) by repeatedly using the AES algorithm, generating a fixed-length MAC using the key, typically 128 bits (16 bytes). Due to its efficiency and security, AES-CMAC is commonly used in resource-constrained environments.
[0070] Figure 3 This is a schematic diagram illustrating the generation process of an anti-counterfeiting field according to an embodiment of the present invention. The broadcast message in the diagram follows the format of Table 1. As shown in the figure, when generating the anti-counterfeiting field, the generated first message field and the locally stored device key are obtained respectively. The first message field is fields 1-7 in the broadcast message. The first message field is divided into blocks, each block being 128 bits (16 bytes). If the length of the first message field is not a multiple of 128 bits, it is padded with 0; if the message length is already a multiple of 128 bits, no padding is performed. After block division, each block is encrypted using AES and iteratively processed using an XOR operation. These blocks are combined with the device key to generate the final 16-byte MAC (Message Authentication Code), i.e., the target message authentication code. The XOR operation is a bitwise operation with the following rules: if the values of two corresponding bits are the same, the result is 0; if the values of two corresponding bits are different, the result is 1. The XOR operation is exclusive, meaning that two events cannot be true simultaneously, emphasizing a "mutually exclusive" relationship. Finally, the target message authentication code is hashed to obtain a 2-byte anti-counterfeiting field.
[0071] Due to the efficiency and security of the AES-CMAC algorithm, using the AES-CMAC algorithm to calculate the anti-forgery field can make the anti-forgery of broadcast messages more efficient and secure. S130, broadcast messages are sent via Bluetooth.
[0072] In this embodiment, after receiving the broadcast message, the Bluetooth sensor can send the broadcast message to the vehicle's infotainment system via Bluetooth broadcast.
[0073] Preferably, the Bluetooth sensor can send broadcast messages via BLE broadcast. BLE (Bluetooth Low Energy) broadcast is a mechanism used by BLE devices to periodically announce their presence. Bluetooth Low Energy (BLE), also known as Bluetooth Low Energy, is a personal area network (PAN) technology designed and marketed by the Bluetooth SIG. Compared to classic Bluetooth, BLE aims to significantly reduce power consumption and cost while maintaining the same communication range.
[0074] The wireless communication method provided in this invention can be applied to a Bluetooth sensor. First, in response to a sensor trigger event, it acquires service information and a device key. Then, it generates a broadcast message with a predefined format based on the device key and service information. The broadcast message includes an anti-counterfeiting field. Finally, it sends the broadcast message via Bluetooth broadcast, allowing the vehicle's infotainment system to receive and parse it. This wireless communication method, by employing Bluetooth broadcast for communication between the Bluetooth sensor and the vehicle's infotainment system, is not limited by the number of connected devices and reduces device power consumption. Furthermore, by adding an anti-counterfeiting field to the broadcast message, it prevents unauthenticated devices from forging the broadcast, thus protecting information security.
[0075] Example 2
[0076] Figure 4 This is a flowchart of a wireless communication method provided in Embodiment 2 of the present invention. This embodiment is applicable to situations where a vehicle-mounted system communicates wirelessly with external devices. The method can be executed by the vehicle-mounted system, which can be implemented in hardware and / or software and configured in a vehicle. Figure 4 As shown, the method includes:
[0077] S210: Scan for external broadcasts and receive broadcast messages sent by the Bluetooth sensor.
[0078] The broadcast message includes a first message field and an anti-counterfeiting field.
[0079] In this embodiment, the vehicle's infotainment system can continuously scan for external broadcasts to receive broadcast messages sent by the Bluetooth sensor.
[0080] Optionally, the anti-counterfeiting field can be generated by: combining the first message field with the device key and combining it with a block encryption algorithm to obtain the target message authentication code; and hashing the target message authentication code to obtain the anti-counterfeiting field.
[0081] Specifically, the broadcast message consists of a first message field and an anti-forgery field. The first message field contains business information, while the anti-forgery field is a signature field used to prevent the broadcast message from being forged. The anti-forgery field can be generated using block cipher algorithms such as AES-CMAC. First, the first message field is divided into blocks, each 128 bits (16 bytes). If the length of the first message field is not a multiple of 128 bits, it is padded with 0s; if the message length is already a multiple of 128 bits, no padding is performed. After block division, each block is encrypted using AES and iteratively processed using an XOR operation. These blocks are combined with the device key to generate the final 16-byte MAC (Message Authentication Code). Finally, the 16-byte MAC is hashed to obtain the 2-byte anti-forgery field.
[0082] By using device keys to generate anti-counterfeiting fields, it is possible to prevent unauthorized devices from forging broadcast messages, thereby improving the security of communication between the vehicle's infotainment system and Bluetooth sensors.
[0083] S220. Parse the anti-counterfeiting field to obtain the device key, and perform legality authentication on the broadcast message based on the device key. If the authentication is successful, parse the first message field to obtain the business information.
[0084] The key list contains device keys corresponding to each external device bound to the vehicle's infotainment system.
[0085] In this embodiment, the method for authenticating the legitimacy of broadcast messages based on device keys may be: obtaining a key list; matching the device key with the device identification information in the key list; if the match is successful, the authentication is successful.
[0086] Specifically, after receiving a broadcast message from the Bluetooth sensor, the vehicle's infotainment system can first parse the anti-counterfeiting field in the broadcast message to obtain the device key. It then matches the parsed device key against a pre-stored key list. If the pre-stored key list contains a key that matches the parsed device key, the match is successful, indicating that the broadcast message was sent by a device bound to the vehicle's infotainment system. After a successful match, the first message field can be parsed to obtain the business information contained within.
[0087] Optionally, the key list also includes device identification information corresponding to each external device bound to the vehicle's infotainment system. This device identification information can be used to manage Bluetooth sensor devices. After parsing the first message field, the device identification information and service information can be obtained. Based on the device identification information, it can be determined which Bluetooth sensor the broadcast message originated from, and the device identification information and service information are sent to the service provider (service-related software or hardware in the vehicle) for further processing or execution.
[0088] Figure 5This is a schematic diagram illustrating communication between a Bluetooth sensor and a vehicle-mounted infotainment system according to an embodiment of the present invention. As shown in the figure, the Bluetooth sensor sends a broadcast message to the vehicle-mounted infotainment system via Bluetooth broadcast. The vehicle-mounted infotainment system receives the broadcast message sent by the Bluetooth sensor by scanning for external broadcasts. If the vehicle-mounted infotainment system can successfully parse the received broadcast message, it notifies other service providers of the parsed information for processing.
[0089] The wireless communication method provided in this invention can be applied to in-vehicle infotainment systems. First, it scans external broadcasts and receives broadcast messages sent by Bluetooth sensors. Then, it parses the anti-counterfeiting field to obtain the device key. The device key is then matched against a pre-stored key list. If a match is found, the first message field is parsed to obtain service information. This wireless communication method uses Bluetooth broadcasting for communication between the Bluetooth sensor and the in-vehicle infotainment system, which is not limited by the number of connected devices. Furthermore, because an anti-counterfeiting field is added to the broadcast message, it prevents unauthenticated devices from forging broadcasts, thus protecting information security.
[0090] Example 3
[0091] Figure 6 This is a schematic diagram of the structure of a Bluetooth sensor provided in Embodiment 3 of the present invention, as shown below. Figure 6 As shown, the Bluetooth sensor includes: a service information and device key acquisition module 310, a broadcast message generation module 320, and a broadcast message sending module 330.
[0092] The business information and device key acquisition module 310 is used to acquire business information and device key in response to sensor trigger events.
[0093] The broadcast message generation module 320 is used to generate broadcast messages in a set format based on the device key and service information.
[0094] The broadcast message includes an anti-counterfeiting field.
[0095] The broadcast message sending module 330 is used to send broadcast messages via Bluetooth, so that the vehicle's infotainment system can receive and parse the broadcast messages.
[0096] Optionally, the broadcast message generation module 320 is also used for:
[0097] According to the set broadcast format, a first message field is generated; the first message field contains service information and device identification information; an anti-counterfeiting field is generated based on the first message field and the device key; the combination of the first message field and the anti-counterfeiting field is used as a broadcast message.
[0098] Optionally, the broadcast message generation module 320 is also used for:
[0099] The first message field is combined with the device key and a block encryption algorithm to obtain the target message authentication code; the target message authentication code is then hashed to obtain the anti-counterfeiting field.
[0100] The Bluetooth sensor provided in this embodiment of the invention can execute the wireless communication method provided in Embodiment 1 of the invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0101] Example 4
[0102] Figure 7 This is a schematic diagram of the structure of a vehicle infotainment system provided in Embodiment 3 of the present invention, as shown below. Figure 7 As shown, the vehicle-mounted system includes a broadcast message receiving module 410 and a broadcast message parsing module 420.
[0103] The broadcast message receiving module 410 is used to scan for external broadcasts and receive broadcast messages sent by the Bluetooth sensor.
[0104] The broadcast message includes a first message field and an anti-counterfeiting field.
[0105] The broadcast message parsing module 420 parses the anti-counterfeiting field to obtain the device key, and performs legality authentication on the broadcast message based on the device key. If the authentication is successful, it parses the first message field to obtain the business information.
[0106] Optionally, the broadcast message parsing module 420 is also used for:
[0107] Retrieve the pre-stored key list; match the device key against the key list; if a match is found, authentication is successful.
[0108] The Bluetooth sensor provided in this embodiment of the invention can execute the wireless communication method provided in Embodiment 2 of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0109] Example 5
[0110] Figure 8 A schematic diagram of an electronic device 10, which can be used to implement Embodiment 1 of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0111] like Figure 8 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0112] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0113] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as wireless communication methods.
[0114] In some embodiments, the wireless communication method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the wireless communication described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the wireless communication method by any other suitable means (e.g., by means of firmware).
[0115] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0117] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0119] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0120] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0121] Example 6
[0122] Figure 9 A schematic diagram of the structure of a vehicle that can be used to implement Embodiment 2 of the present invention is shown, as follows: Figure 9 As shown, the vehicle includes a controller 41, a storage device 42, an input device 43, and an output device 44; the number of controllers 41 in the vehicle can be one or more. Figure 9 Taking a controller 41 as an example; the controller 41, storage device 42, input device 43, and output device 44 in the vehicle can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.
[0123] Storage device 42, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the wireless communication method in this embodiment of the invention (e.g., broadcast message receiving module 410 and broadcast message parsing module 420). Controller 41 executes various functional applications and data processing of the vehicle by running the software programs, instructions, and modules stored in storage device 42, thereby realizing the aforementioned wireless communication method.
[0124] Storage device 42 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, storage device 42 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, storage device 42 may further include memory remotely configured relative to controller 41, which can be connected to the vehicle via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0125] Input device 43 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the vehicle. Output device 44 may include display devices such as a display screen.
[0126] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0127] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A wireless communication method, characterized in that, The method is applied to a Bluetooth sensor and includes: In response to sensor-triggered events, acquire business information and device keys; A broadcast message with a set format is generated based on the device key and the service information; wherein, the broadcast message includes an anti-counterfeiting field; The broadcast message is sent via Bluetooth.
2. The method according to claim 1, characterized in that, Generate a broadcast message in a predetermined format based on the device key and the service information, including: A first message field is generated according to the set broadcast format; wherein the first message field contains the service information and device identification information; The anti-counterfeiting field is generated based on the first message field and the device key; The combination of the first message field and the anti-counterfeiting field is used as the broadcast message.
3. The method according to claim 1 or 2, characterized in that, The anti-counterfeiting field is generated based on the first message field and the device key, including: The first message field is combined with the device key and then combined with a block cipher algorithm to obtain the target message authentication code; The target message authentication code is hashed to obtain the anti-counterfeiting field.
4. A wireless communication method, characterized in that, The method is applied to the vehicle's infotainment system and includes: Scan external broadcasts and receive broadcast messages sent by Bluetooth sensors; wherein the broadcast message includes a first message field and an anti-counterfeiting field; The device key is obtained by parsing the anti-counterfeiting field. The broadcast message is then authenticated based on the device key. If the authentication is successful, the first message field is parsed to obtain the business information.
5. The method according to claim 4, characterized in that, The method for generating the anti-counterfeiting field includes: The first message field is combined with the device key and then combined with a block cipher algorithm to obtain the target message authentication code; The target message authentication code is hashed to obtain the anti-counterfeiting field.
6. The method according to claim 4 or 5, characterized in that, Authenticating the legitimacy of the broadcast message based on the device key includes: Get the key list; The device key is matched against the key list. If a match is found, authentication is successful.
7. A Bluetooth sensor, characterized in that, include: The business information and device key acquisition module is used to acquire business information and device keys in response to sensor-triggered events; A broadcast message generation module is used to generate a broadcast message in a set format based on the device key and the service information; wherein, the broadcast message includes an anti-counterfeiting field and device identification information; A broadcast message sending module is used to send the broadcast message via Bluetooth.
8. A vehicle infotainment system, characterized in that, include: A broadcast message receiving module is used to scan for external broadcasts and receive broadcast messages sent by Bluetooth sensors; wherein, the broadcast message includes a first message field and an anti-counterfeiting field; The broadcast message parsing module parses the anti-counterfeiting field to obtain the device key, performs legality authentication on the broadcast message based on the device key, and if the authentication is successful, parses the first message field to obtain the business information.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the wireless communication method of any one of claims 1-3 and / or 4-6.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the wireless communication method as described in any one of claims 1-3 and / or 4-6.
11. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the wireless communication method according to any one of claims 1-3.
12. A vehicle, characterized in that, The vehicles include: One or more controllers; Storage device for storing one or more programs; When the one or more programs are executed by the one or more controllers, the one or more controllers implement the wireless communication method as described in any one of claims 4-6.