Wireless communication method, system and device and storage medium
By sending a broadcast message carrying a private identifier through the IoT device and establishing a BLE connection, the problem of the vehicle being unable to control the IoT device is solved, and effective communication between the peer device and the IoT device is achieved.
Patent Information
- Application Number
- CN202510788384.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-12
- Publication Date
- 2025-10-03
AI Technical Summary
When the IoT device is disconnected from the vehicle, the vehicle cannot actively control the IoT device.
The IoT device sends a broadcast message with a private identifier. After the peer device scans it, it sends a connection request to establish a BLE connection, enabling the peer device to reversely control the IoT device.
Ensure that the peer device can actively communicate with the IoT device, reduce resource consumption, and improve communication efficiency and reliability.
Smart Images

Figure CN120751345A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless transmission technology, and in particular to wireless communication methods, systems, devices and storage media. Background Art
[0002] With the rise of in-vehicle aftermarket IOT (Internet of Things), more and more aftermarket IOT devices will be installed in cars to conveniently control the corresponding functions of the vehicle.
[0003] Currently, IoT devices and their peer devices (vehicles) typically communicate using Bluetooth Low Energy (BLE). To reduce power consumption, IoT devices and peer devices are typically disconnected. Specifically, the IoT device packages control information into a broadcast packet and then sends it via Bluetooth BLE. The peer device scans and parses the broadcast packet before executing the corresponding control. However, the peer device cannot actively communicate with the IoT device, making it unable to control the IoT device.
[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a wireless communication method, which aims to solve the technical problem that the vehicle cannot control the IoT device when the IoT device and the vehicle are in a disconnected state.
[0006] To achieve the above objectives, the present application proposes a wireless communication method, which is applied to IoT devices. The method includes:
[0007] In response to a target event, sending a broadcast message including a private identifier so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established;
[0008] Upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, a communication connection is established with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message.
[0009] In one embodiment, before the step of sending the broadcast message including the private identifier, the method further includes:
[0010] In response to the user's physical operation, determining whether a target event requiring establishment of a BLE connection is triggered;
[0011] If triggering is required, a broadcast message including the private identifier of the target event is generated.
[0012] In one embodiment, the broadcast message includes ADV_EXT_IND and AUX_ADV_IND.
[0013] In addition, to achieve the above-mentioned purpose, the wireless communication method proposed in this application is also applied to the peer device, and the method includes:
[0014] Obtaining the broadcast message sent by the IOT device;
[0015] Detecting whether there is a private identifier in the broadcast message, where the private identifier is an identifier of a target event for which a BLE connection needs to be established;
[0016] If the private identifier exists, a connection request is sent to the IOT device, so that the IOT device establishes a communication connection with the local device based on the connection request.
[0017] In one embodiment, the private identifier occupies 1 bit in the broadcast message, and the step of detecting whether the private identifier exists in the broadcast message includes:
[0018] Detecting a bit value corresponding to a private identifier in the broadcast message;
[0019] If the bit value is one, it is determined that a private identifier exists in the broadcast message;
[0020] If the bit value is zero, it is determined that no private identifier exists in the broadcast message.
[0021] In one embodiment, after the step of determining that no private identifier exists in the broadcast message if the bit value is zero, the method further includes:
[0022] If the private identifier does not exist in the broadcast message, the forward control instruction in the broadcast message is executed.
[0023] In one embodiment, if the private identifier exists, the step of sending a connection request to the IoT device includes:
[0024] If the private identifier exists, a connection request in a BLE protocol standard message format is sent to the IOT device.
[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a wireless communication system, which includes: an IOT device and a peer device;
[0026] The IOT device is configured to, in response to a target event, send a broadcast message including a private identifier, so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established; upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, establish a communication connection with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message;
[0027] The peer device is used to obtain the broadcast message sent by the IOT device; detect whether there is a private identifier in the broadcast message, where the private identifier is the identifier of the target event that needs to establish a BLE connection; if the private identifier exists, send a connection request to the IOT device, so that the IOT device establishes a communication connection with the local based on the connection request.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a wireless communication device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless communication method described above.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the wireless communication method described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the wireless communication method described above.
[0031] One or more technical solutions proposed in this application have at least the following technical effects:
[0032] When the peer device needs to reversely control the IOT device, the IOT device needs to establish a BLE connection with the docking device. The IOT sends a broadcast message carrying a private identifier of the event (target event) that requires establishing a BLE connection. After the docking device scans the broadcast message, it sends a connection request to the IOT device based on the private identifier in the broadcast message. The IOT device establishes a communication connection with the peer device based on the connection request, enabling the peer device to actively communicate with the IOT device, thereby realizing reverse control of the IOT device by the docking device. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0035] Figure 1 A flowchart of the first embodiment of the wireless communication method of the present application is provided;
[0036] Figure 2 A flowchart of the second embodiment of the wireless communication method of the present application is provided;
[0037] Figure 3 A flowchart of the second embodiment of the wireless communication method of the present application is provided;
[0038] Figure 4 A schematic diagram of the broadcast message structure provided by the wireless communication method of this application;
[0039] Figure 5 This is a schematic diagram of the module structure of the wireless communication system according to an embodiment of the present application;
[0040] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the wireless communication method in the embodiment of the present application.
[0041] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The main solution of the embodiment of the present application is: the IOT device in the wireless communication system sends a broadcast message including a private identifier in response to a target event, so that the counterpart device scans the broadcast message, and the private identifier is the identifier of the target event that needs to establish a BLE connection; when receiving a connection request sent by the counterpart device based on the private identifier in the broadcast message, a communication connection is established with the counterpart device based on the connection request, and the connection request is sent when the counterpart device detects the private identifier from the broadcast message.
[0045] In this embodiment, for ease of description, the following description is made with the IoT device as the execution subject.
[0046] Currently, IoT devices and peer devices (vehicles) typically communicate using Bluetooth Low Energy (BLE). To reduce power consumption, these devices are typically disconnected from each other. This means the IoT device packages control information into a broadcast packet and then sends it via Bluetooth. Once the peer device scans and parses the broadcast packet, it executes the corresponding control. However, the peer device cannot actively communicate with the IoT device, preventing it from controlling the IoT device.
[0047] The present application provides a solution. When the peer device needs to reversely control the IOT device, the IOT device needs to establish a BLE connection with the docking device. The IOT sends a broadcast message carrying a private identifier of the event (target event) that requires establishing a BLE connection. After the docking device scans the broadcast message, it sends a connection request to the IOT device based on the private identifier in the broadcast message. The IOT device establishes a communication connection with the peer device based on the connection request, so that the peer device can actively communicate with the IOT device, thereby realizing reverse control of the IOT device by the docking device.
[0048] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a wireless communication system, etc. The following uses a wireless communication system as an example to illustrate this embodiment and the following embodiments.
[0049] Based on this, the embodiment of the present application provides a wireless communication method, which is applied to IOT devices, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the wireless communication method of the present application.
[0050] In this embodiment, the wireless communication method includes steps S10 to S20:
[0051] Step S10: In response to a target event, sending a broadcast message including a private identifier so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established;
[0052] It should be noted that a target event is a specific event preset in an IoT device that triggers the sending of a broadcast message. This specific event may require the IoT device to establish a connection with a peer device, enabling the peer device to actively communicate with the IoT device. The target event's private identifier indicates that a BLE connection is required for the target event. The private identifier is included in the broadcast message for the peer device to detect. A broadcast message is a wireless signal sent by an IoT device to broadcast messages to surrounding devices.
[0053] It should be noted that the connection between the IoT device and the peer device is a BLE connection, where BLE connection is a low-power Bluetooth communication connection method used for communication between IoT devices. It can reduce the energy consumption of the device while ensuring the communication quality.
[0054] It should be noted that the peer device is the other device communicating with the IoT device. This peer device can scan and receive broadcast messages sent by the IoT device and determine whether to send a connection request based on the private identifier in the broadcast message. The peer device can be a vehicle, mobile device, other IoT device, or other device with BLE communication capabilities.
[0055] It is understandable that, since the private identifier is unique and can clearly distinguish different target events, it can ensure that the peer device accurately identifies and responds to events that require establishing a BLE connection.
[0056] It can be understood that by setting a private identifier in the broadcast message, a connection request will be sent only after the peer device detects the private identifier, avoiding unnecessary connection attempts, thereby reducing resource consumption between the IoT device and the peer device during the communication process, and establishing a connection when the IoT device needs to receive information from the peer device, thereby realizing reverse control of the IoT device by the docking device.
[0057] In a specific implementation, an event detection module may be provided inside the IOT device, which can monitor various states and events of the IOT device in real time. When a preset target event (an event that requires establishing a BLE connection with the peer device) is detected, the event detection module will trigger the broadcast message sending module. After receiving the trigger signal, the broadcast message sending module will generate a broadcast message containing a private identifier. The private identifier can be pre-set according to the characteristics of the target event and can uniquely identify the need to establish a BLE connection for the target event. The broadcast message is broadcast within a certain range through a wireless signal so that the surrounding peer devices can scan the broadcast message. The format and content of the broadcast message comply with the requirements of the Bluetooth communication protocol to ensure that it can be correctly received and parsed by the peer device.
[0058] Step S20: upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, establishing a communication connection with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message.
[0059] It should be noted that a connection request is used to request an IoT device to establish a BLE connection. The connection request contains relevant information about the peer device, such as the device address and connection parameters, so that the IoT device can recognize and respond to the request. The communication connection is a BLE connection.
[0060] As you can see, by recognizing the private identifier, the peer device can accurately identify the target event for establishing a BLE connection, reducing the possibility of misconnection. Furthermore, the peer device connection request verification mechanism further ensures that only legitimate peer devices can establish a communication connection with the IoT device, enhancing communication reliability.
[0061] It is understandable that the user can control the connection between the IoT device and the peer device by triggering the target event, thereby enabling the peer device to control the IoT device.
[0062] In a specific implementation, the scanning module of the peer device will continuously scan the surrounding wireless signals to find available broadcast messages. When a broadcast message sent by an IOT device is scanned, the scanning module will pass the broadcast message to the private identification detection module. The private identification detection module will parse the broadcast message to detect whether there is a private identification in it. If a private identification is detected, it means that the IOT device corresponding to the broadcast message has the need to establish a BLE connection. The peer device then generates a connection request based on the detected private identification and sends the connection request to the IOT device. The connection request contains the device information and connection parameters of the peer device so that the IOT device can identify and establish a connection. After the connection request receiving module of the IOT device receives the connection request sent by the peer device, the receiving module will further verify the received connection request to ensure that the connection request is sent based on the private identification in the broadcast message. After the verification is passed, the communication connection establishment module of the IOT device will establish a BLE communication connection with the peer device based on the information in the connection request. After the connection is established, the IOT device and the peer device can transmit and interact data through the BLE connection.
[0063] Furthermore, the broadcast message includes ADV_EXT_IND and AUX_ADV_IND.
[0064] It should be noted that ADV_EXT_IND is a broadcast message type introduced in Bluetooth 5.0 and later, representing an Extended Advertising Indication. ADV_EXT_IND is used to support more complex broadcast data structures and more efficient broadcast communications. The Extended Advertising feature allows devices to send more data in a single advertising event, improving the transmission efficiency and flexibility of broadcast data.
[0065] It should be noted that AUX_ADV_IND is an auxiliary broadcast message type used in conjunction with ADV_EXT_IND, representing an auxiliary advertisement indication. It is used to extend the transmission of broadcast data. When the broadcast data volume is large, AUX_ADV_IND can be used to transmit the data in segments to ensure data integrity and accuracy. AUX_ADV_IND is often used together with ADV_EXT_IND to achieve more efficient broadcast communication.
[0066] It is understandable that using ADV_EXT_IND and AUX_ADV_IND can support more complex broadcast data structures and more efficient broadcast communications. By extending the advertising function, IoT devices can send more data in a single advertising event, reducing the number of broadcast messages sent and improving the transmission efficiency of broadcast data.
[0067] It is understandable that when the wireless signal quality is poor, the IoT device can transmit broadcast data in segments, so that the peer device can obtain complete broadcast data by parsing multiple AUX_ADV_INDs to ensure data integrity and accuracy, thereby improving communication reliability.
[0068] In the specific implementation, the broadcast message generation module divides the broadcast message into multiple parts according to the requirements of the Bluetooth protocol. Among them, ADV_EXT_IND is used to indicate the start of the extended advertisement and contains some basic advertising information, such as the advertisement type, device address, etc. If the data volume of the broadcast message is large and cannot be fully transmitted in a single ADV_EXT_IND, the broadcast message generation module will generate one or more AUX_ADV_INDs for segmented transmission of the remaining data. AUX_ADV_IND is used in conjunction with ADV_EXT_IND to ensure the integrity and accuracy of the broadcast message. After the connection request receiving module of the IoT device receives the connection request sent by the peer device, it verifies the connection request to ensure that the connection request is sent based on the private identifier in the broadcast message.
[0069] After receiving the broadcast message, the peer device first parses ADV_EXT_IND to obtain the basic information of the broadcast message. If the broadcast message contains AUX_ADV_IND, the peer device will further parse AUX_ADV_IND to obtain the complete broadcast data. The private identifier detection module of the peer device will detect the private identifier in the broadcast message. If a private identifier is detected, it means that the IoT device corresponding to the broadcast message needs to establish a BLE connection. The peer device then generates a connection request based on the detected private identifier and sends the connection request to the IoT device. The connection request contains the device information and connection parameters of the peer device, so that the IoT device can identify the peer device and establish a connection with it.
[0070] Furthermore, before step S01, the method further includes:
[0071] In response to the user's physical operation, determining whether a target event requiring establishment of a BLE connection is triggered;
[0072] If triggering is required, a broadcast message including the private identifier of the target event is generated.
[0073] It should be noted that the user's physical operation is a direct physical interaction operation performed by the user on the IoT device, such as key operation, touch operation, rotation operation, etc. This physical operation can be detected by the sensor or input module of the IoT device and serve as the signal source for triggering the target event.
[0074] It is understandable that using the user's physical operation as a clear trigger signal can prevent IoT devices from establishing connections with peer devices without authorization. Only after the user explicitly triggers the target event will the IoT device send a broadcast message containing a private identifier that requires a BLE connection, enabling the IoT device to establish a communication connection with the peer device when it needs to communicate with the peer device, and disconnect when communication is no longer necessary, thereby reducing the power consumption of the IoT device. This allows the peer device to communicate with the IoT device when needed, while maintaining low-power communication between the IoT device and the peer device.
[0075] In a specific implementation, the IoT device is equipped with a user input module to detect the user's physical operations, such as different key press durations / methods, etc., through the user input module. Among them, the user input module can be a button, a touch screen, a sensor, etc. When the user performs a physical operation on the IoT device, the user input module sends the operation signal to the event judgment module, and the event judgment module then judges whether the operation triggers the target event that requires establishing a BLE connection based on preset rules. Among them, the preset rules can be based on operation type, operation sequence, operation duration, etc. If the judgment result is that the target event is triggered, when generating a broadcast message, the broadcast message is made to carry the private identifier corresponding to the target event for establishing a BLE connection.
[0076] This embodiment provides a wireless communication method. When a peer device needs to reversely control an IOT device, the IOT device needs to establish a BLE connection with a docking device. The IOT sends a broadcast message carrying a private identifier of an event (target event) that requires establishing a BLE connection. After the docking device scans the broadcast message, it sends a connection request to the IOT device based on the private identifier in the broadcast message. The IOT device establishes a communication connection with the peer device based on the connection request, so that the peer device can actively communicate with the IOT device, thereby realizing reverse control of the IOT device by the docking device.
[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 The wireless communication method is also applied to the peer device, and the method includes steps S01 to S03:
[0078] Step S01, obtaining a broadcast message sent by the IoT device;
[0079] Step S02: Detect whether there is a private identifier in the broadcast message, where the private identifier is an identifier of a target event for which a BLE connection needs to be established;
[0080] Step S03: If the private identifier exists, a connection request is sent to the IoT device, so that the IoT device establishes a communication connection with the local device based on the connection request.
[0081] It can be understood that after the peer device detects the private identifier from the broadcast message, it means that there is a target event in the broadcast message that requires establishing a BLE connection. Therefore, in order for the peer device to establish a communication connection with the IOT device and actively communicate with the IOT device, it is necessary to send a connection request containing information such as the peer device address and connection parameters to the IOT device, so that the IOT device can establish a communication connection with the peer device based on the information in the connection request, thereby reducing unnecessary signal transmission and processing processes, reducing the energy consumption of the device, and improving communication efficiency.
[0082] In a specific implementation, the scanning module of the peer device continuously scans the surrounding wireless signals to look for available broadcast messages. When an IOT device sends a broadcast message, the scanning module of the peer device will receive and obtain the broadcast message. After obtaining the broadcast message, the peer device will pass the broadcast message to the private identification detection module, so that the private identification detection module can parse the received broadcast message and detect whether there is a private identification from the corresponding bit of the private identification of the broadcast message. If a private identification is detected, it means that the IOT device corresponding to the broadcast message has the need to establish a BLE connection. Therefore, the connection request generation module of the peer device is triggered to generate a connection request and send the request to the IOT device, so that after receiving the connection request, the IOT device verifies whether the request is sent based on the private identification in the broadcast message. After the verification is passed, the IOT device will establish a BLE communication connection with the peer device, thereby realizing data transmission and interaction. If the private identification is not detected in the broadcast message, the control instructions in the broadcast message are directly executed.
[0083] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later. Figure 3 , the step S02 further includes steps S1 to S3:
[0084] Step S1, detecting the bit value corresponding to the private identifier in the broadcast message;
[0085] Step S2: If the bit value is one, it is determined that a private identifier exists in the broadcast message;
[0086] Step S3: If the bit value is zero, it is determined that there is no private identifier in the broadcast message.
[0087] It should be noted that a bit is a specific location in a broadcast message used to indicate a private identifier. In this embodiment, the private identifier occupies one bit in the broadcast message. A bit value is the specific numerical value of the bit, typically 0 or 1. In this embodiment, a bit value of 1 indicates the presence of the private identifier in the broadcast message, while a bit value of 0 indicates the absence of the private identifier in the broadcast message.
[0088] It can be understood that by detecting the bit value of this bit, the peer device can quickly determine whether there is a private identifier in the broadcast message, which not only simplifies the detection process, but also reduces the complexity of hardware and software, thereby improving the response speed of the peer device to the IOT device.
[0089] In a specific implementation, after a peer device receives a broadcast message from an IoT device, the private identifier detection module parses the broadcast message and locates the bit corresponding to the private identifier. The detection module's hardware circuitry or software algorithm reads the value of this bit to determine whether the private identifier exists in the broadcast message, ensuring accurate and efficient detection. If the bit value corresponding to the private identifier is 1, the private identifier is determined to be present in the broadcast message; if the bit value corresponding to the private identifier is 0, the private identifier is determined to be absent from the broadcast message.
[0090] Specifically, the payload of ADV_EXT_IND and AUX_ADV_IND in the broadcast message is as follows: Figure 4 As described above, the "private identifier" is carried in one bit in the AdvData (broadcast data) of the Payload (payload); when the bit value = 1, it indicates that the peer device needs to initiate a connection request; when the bit value = 0, it indicates that the peer device does not need to initiate a connection request.
[0091] Optionally, after step S3, the wireless communication method further includes:
[0092] If the private identifier does not exist in the broadcast message, the forward control instruction in the broadcast message is executed.
[0093] It should be noted that a forward control command is a command included in a broadcast message that instructs the peer device to perform a specific operation, such as turning on the in-car navigation system, reducing the volume of the peer device, or turning on the seat heating function.
[0094] It can be understood that by including forward control instructions in the broadcast message, the IoT device can directly control the peer device without establishing a BLE connection, thereby not establishing a Bluetooth connection with the peer device when unnecessary, thereby reducing the power consumption of the IoT device.
[0095] It can be understood that when no private identifier is detected in the broadcast message, the forward control instructions in the broadcast message are directly executed without waiting for the connection between the peer device and the IOT device to be established and the data transmission to be completed, so that the peer device can quickly respond to the instructions of the IOT device, thereby improving the response speed of the peer device.
[0096] In a specific implementation, if the broadcast message determines that no private identifier exists, the parsing module further parses the broadcast message for positive control instructions. The control module of the peer device then performs corresponding operations based on the parsed positive control instructions. These operations may include changing device status, enabling or disabling functions, or reading data. For example, the positive control instructions may instruct the peer device to update its configuration parameters, query device status, or read sensor data.
[0097] Optionally, step S03 may further include:
[0098] If the private identifier exists, a connection request in a BLE protocol standard message format is sent to the IOT device.
[0099] It should be noted that the BLE protocol is a Bluetooth low energy communication protocol used for wireless communication between low-power devices.
[0100] It is understandable that sending a connection request through the BLE protocol standard message format allows the peer device and the IoT device to communicate when they are not connected, thereby ensuring that the IoT device can receive the connection request.
[0101] It is understandable that since the BLE protocol standard message format has been optimized to reduce unnecessary data redundancy and improve communication efficiency, connection requests to the BLE protocol standard message format can reduce the power consumption of the IoT device and the docking device during the connection establishment process.
[0102] It is understandable that since IOT devices communicate wirelessly via BLE, setting the connection request to the BLE protocol standard message format and then sending it to the IOT device can also ensure that the connection request can be correctly parsed and processed by the IOT device, thereby avoiding communication failures due to inconsistent formats.
[0103] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the wireless communication method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0104] This application also provides a wireless communication system, referring to Figure 5 , the wireless communication system includes: an IOT device and a peer device;
[0105] The IOT device is configured to, in response to a target event, send a broadcast message including a private identifier, so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established; upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, establish a communication connection with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message;
[0106] The peer device is used to obtain the broadcast message sent by the IOT device; detect whether there is a private identifier in the broadcast message, where the private identifier is the identifier of the target event that needs to establish a BLE connection; if the private identifier exists, send a connection request to the IOT device, so that the IOT device establishes a communication connection with the local based on the connection request.
[0107] Optionally, the IOT device is further configured to determine whether to trigger a target event requiring establishment of a BLE connection in response to a user's physical operation; if triggering is required, generate a broadcast message including a private identifier of the target event.
[0108] Optionally, the broadcast message includes ADV_EXT_IND and AUX_ADV_IND.
[0109] Optionally, the peer device is further configured to detect a bit value corresponding to the private identifier in the broadcast message; if the bit value is one, it is determined that the private identifier exists in the broadcast message; if the bit value is zero, it is determined that the private identifier does not exist in the broadcast message. The private identifier occupies one bit in the broadcast message.
[0110] Optionally, the opposite-end device is further configured to execute a forward control instruction in the broadcast message if the private identifier does not exist in the broadcast message.
[0111] Optionally, the opposite-end device is further configured to send a connection request in a BLE protocol standard message format to the IOT device if the private identifier exists.
[0112] The wireless communication system provided in this application, using the wireless communication method described in the above-mentioned embodiments, can resolve the technical problem of a vehicle being unable to control an IoT device when the IoT device and the vehicle are disconnected. Compared to the prior art, the beneficial effects of the wireless communication system provided in this application are the same as those of the wireless communication method described in the above-mentioned embodiments. Other technical features of the wireless communication system are the same as those disclosed in the above-mentioned embodiments and are not further described here.
[0113] The present application provides a wireless communication device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the wireless communication method in the above-mentioned embodiment one.
[0114] Reference below Figure 6 , which shows a schematic structural diagram of a wireless communication device suitable for implementing the embodiments of the present application. The wireless communication device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The wireless communication device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0115] like Figure 6 As shown, the wireless communication device may include a processing system 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage system 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the wireless communication device. Processing system 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1006: an input system 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output system 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage system 1003 including, for example, a magnetic tape, hard disk, etc.; and a communication system 1009. The communication system 1009 can allow the wireless communication device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a wireless communication device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0116] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication system, or installed from a storage system 1003, or installed from a ROM 1002. When the computer program is executed by the processing system 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0117] The wireless communication device provided in this application, using the wireless communication method described in the above-mentioned embodiments, can resolve the technical problem of a vehicle being unable to control an IoT device when the IoT device and the vehicle are disconnected. Compared to the prior art, the beneficial effects of the wireless communication device provided in this application are the same as those of the wireless communication method described in the above-mentioned embodiments. Other technical features of the wireless communication device are the same as those disclosed in the above-mentioned embodiments and are not further described here.
[0118] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0119] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0120] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the wireless communication method in the above embodiment.
[0121] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0122] The computer-readable storage medium may be included in the wireless communication device, or may exist independently without being incorporated into the wireless communication device.
[0123] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the wireless communication device, the wireless communication device: in response to a target event, sends a broadcast message including a private identifier so that the counterpart device scans the broadcast message, and the private identifier is the identifier of the target event that needs to establish a BLE connection; when receiving a connection request sent by the counterpart device based on the private identifier in the broadcast message, establishes a communication connection with the counterpart device based on the connection request, and the connection request is sent when the counterpart device detects the private identifier from the broadcast message.
[0124] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0125] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0127] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the wireless communication method described above. This computer-readable storage medium can resolve the technical issue of a vehicle being unable to control an IoT device when the IoT device and the vehicle are disconnected. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the wireless communication method provided in the above-mentioned embodiment, and are not further elaborated here.
[0128] The present application also provides a computer program product, including a computer program, which implements the steps of the wireless communication method as described above when the computer program is executed by a processor.
[0129] The computer program product provided in this application can solve the technical problem of a vehicle being unable to control an IoT device when the IoT device and the vehicle are disconnected. Compared to the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the wireless communication method provided in the above-mentioned embodiment, and are not further elaborated here.
[0130] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A wireless communication method, characterized in that: Applied to IOT devices, the method includes: In response to a target event, sending a broadcast message including a private identifier so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established; Upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, a communication connection is established with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message.
2. The method according to claim 1, wherein Before the step of sending the broadcast message including the private identifier, the method further includes: In response to the user's physical operation, determining whether a target event requiring establishment of a BLE connection is triggered; If triggering is required, a broadcast message including the private identifier of the target event is generated.
3. The method according to claim 1, wherein The broadcast messages include ADV_EXT_IND and AUX_ADV_IND.
4. A wireless communication method, characterized in that: Applied to a peer device, the method includes: Obtaining the broadcast message sent by the IOT device; Detecting whether there is a private identifier in the broadcast message, where the private identifier is an identifier of a target event for which a BLE connection needs to be established; If the private identifier exists, a connection request is sent to the IOT device, so that the IOT device establishes a communication connection with the local device based on the connection request.
5. The method according to claim 4, wherein The private identifier occupies 1 bit in the broadcast message, and the step of detecting whether the private identifier exists in the broadcast message includes: Detecting a bit value corresponding to a private identifier in the broadcast message; If the bit value is one, it is determined that a private identifier exists in the broadcast message; If the bit value is zero, it is determined that no private identifier exists in the broadcast message.
6. The method according to claim 5, wherein After the step of determining that no private identifier exists in the broadcast message if the bit value is zero, the method further includes: If the private identifier does not exist in the broadcast message, the forward control instruction in the broadcast message is executed.
7. The method according to claim 4, wherein If the private identifier exists, the step of sending a connection request to the IoT device includes: If the private identifier exists, a connection request in a BLE protocol standard message format is sent to the IOT device.
8. A wireless communication system, characterized in that: The system includes: an IOT device and a peer device; The IOT device is configured to, in response to a target event, send a broadcast message including a private identifier, so that the peer device scans the broadcast message, wherein the private identifier is an identifier of the target event for which a BLE connection needs to be established; upon receiving a connection request sent by the peer device based on the private identifier in the broadcast message, establish a communication connection with the peer device based on the connection request, wherein the connection request is sent when the peer device detects the private identifier from the broadcast message; The peer device is used to obtain the broadcast message sent by the IOT device; detect whether there is a private identifier in the broadcast message, where the private identifier is the identifier of the target event that needs to establish a BLE connection; if the private identifier exists, send a connection request to the IOT device, so that the IOT device establishes a communication connection with the local based on the connection request.
9. A wireless communication device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless communication method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the wireless communication method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Wireless communication monitoring control method, system and device
CN110337096A
Communication system and communication method
CN115734169A
Multifunction internet-of-things device and technique for establishing bluetooth low energy connection with such device
KR101936144B1
Device connection method and apparatus, and device, storage medium and chip
WO2023134386A1