CN115515255A - Method, device, equipment and storage medium for establishing wireless connection - Google Patents

Method, device, equipment and storage medium for establishing wireless connection Download PDF

Info

Publication number
CN115515255A
CN115515255A CN202210930164.9A CN202210930164A CN115515255A CN 115515255 A CN115515255 A CN 115515255A CN 202210930164 A CN202210930164 A CN 202210930164A CN 115515255 A CN115515255 A CN 115515255A
Authority
CN
China
Prior art keywords
direct connection
wifi direct
bluetooth signal
bluetooth
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210930164.9A
Other languages
Chinese (zh)
Inventor
王昌明
黄启立
陈言强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Apollo Zhilian Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing Technology Co Ltd
Priority to CN202210930164.9A priority Critical patent/CN115515255A/en
Publication of CN115515255A publication Critical patent/CN115515255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a method, a device, equipment and a storage medium for establishing wireless connection, and relates to the technical field of communication, in particular to the technical fields of car networking, intelligent cabins and the like. The method for establishing the wireless connection comprises the following steps: acquiring a Bluetooth signal of a vehicle-mounted machine broadcast, wherein the Bluetooth signal comprises wifi direct connection information; determining the distance to the car machine based on the Bluetooth signal; based on the wifi direct connection information and the distance, establishing wifi direct connection with the car machine. This openly can establish wifi directly automatically and directly link and improve the stability that wifi directly links.

Description

Method, device, equipment and storage medium for establishing wireless connection
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for establishing a wireless connection, in particular, to the technical fields of car networking and intelligent cabins.
Background
With the spread of vehicles, it is desired to interconnect terminals such as mobile phones and car machines. The interconnection scheme between the mobile phone and the car machine may include a wired connection, such as a Universal Serial Bus (USB) connection, or a wireless connection, such as a bluetooth connection or a wifi connection.
Disclosure of Invention
The disclosure provides a method, an apparatus, a device and a storage medium for establishing wireless connection.
According to an aspect of the present disclosure, there is provided a method of establishing a wireless connection, including: acquiring a Bluetooth signal broadcasted by a vehicle machine, wherein the Bluetooth signal comprises wifi direct connection information; determining the distance to the car machine based on the Bluetooth signal; based on the wifi direct connection information and the distance, establishing wifi direct connection with the car machine.
According to another aspect of the present disclosure, there is provided a method of establishing a wireless connection, including: broadcasting a Bluetooth signal, wherein the Bluetooth signal comprises wifi direct connection information; responding to a wifi direct connection request sent by a terminal, establishing the wifi direct connection with the terminal, wherein the wifi direct connection request is sent by the terminal based on the wifi direct connection information and the distance between the terminal and a vehicle machine, and the distance is determined by the terminal based on the Bluetooth signal.
According to another aspect of the present disclosure, there is provided an apparatus for establishing a wireless connection, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a Bluetooth signal broadcasted by a vehicle machine, and the Bluetooth signal comprises wifi direct connection information; the determining module is used for determining the distance between the vehicle and the vehicle machine based on the Bluetooth signal; and the connection module is used for establishing wifi direct connection based on the wifi direct connection information and the distance and the vehicle machine.
According to another aspect of the present disclosure, there is provided an apparatus for establishing a wireless connection, including: the broadcasting module is used for broadcasting Bluetooth signals, and the Bluetooth signals comprise wifi direct connection information; the establishing module is used for responding to a wifi direct connection request sent by the terminal, and establishing the wifi direct connection with the terminal, wherein the wifi direct connection request is that the terminal is based on the wifi direct connection information and the distance between the terminal and the vehicle machine is sent, and the distance is determined by the terminal based on the Bluetooth signal.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the above aspects.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to any one of the above aspects.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of the above aspects.
According to the technical scheme, wifi direct connection can be automatically established, and the stability of the wifi direct connection is improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
fig. 3 is a schematic diagram of an application scenario corresponding to an embodiment of the present disclosure;
FIG. 4 is a schematic illustration of a third embodiment according to the present disclosure;
FIG. 5 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 6 is a schematic diagram according to a fifth embodiment of the present disclosure;
fig. 7 is a schematic diagram of an electronic device for implementing a method of establishing a wireless connection according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the related art, the interconnection scheme of the mobile phone and the vehicle machine may include: and the USB wired connection, the Bluetooth connection or the wifi connection are adopted.
And the USB wired connection is adopted, so that the use is not convenient enough.
Adopt the bluetooth to connect or wifi connects, need the equipment that the manual selection is waited to connect, unable automatic connection.
In addition, when there is the demand that wifi is connected in cell-phone and car machine, the problem that how to improve the stability that wifi is connected also needs to be solved.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, which provides a method for establishing a wireless connection, the method including:
101. and acquiring a Bluetooth signal broadcasted by the vehicle-mounted device, wherein the Bluetooth signal contains wifi direct connection information.
102. And determining the distance between the vehicle and the vehicle machine based on the Bluetooth signal.
103. Based on wifi directly links the information with the distance, with wifi directly links is established to the car machine.
The method provided by the embodiment can be applied to terminals, such as mobile phones, tablet computers and other terminals to be wirelessly connected with a vehicle machine.
Taking the terminal as a mobile phone as an example, the mobile phone may adopt a bluetooth module configured in the mobile phone to acquire a bluetooth signal broadcasted by the vehicle.
The Bluetooth module may be a classic Bluetooth module or a Bluetooth Low Energy (BLE) module.
Bluetooth low energy is a personal area network technology designed and sold by the bluetooth special interest group, and is intended for emerging applications in the fields of medical care, sports fitness, beacons, security, home entertainment, etc. Bluetooth low energy is intended to significantly reduce power consumption and cost while maintaining equivalent communication range compared to classical bluetooth.
Different from the traditional wifi connection, the embodiment adopts wifi direct connection (wifi-direct), and the traditional wifi connection is usually a point-to-end connection; wifi direct is a point-to-point connection, which may also be referred to as wifi peer-to-peer (wifi P2P) connection.
The wifi direct information may include: wifi direct name, media Access Control (MAC) address of the car machine, etc.
The terminal acquires the Bluetooth signal, and can calculate the distance to the vehicle machine based on the Bluetooth signal, specifically based on the signal intensity value of the Bluetooth signal.
If the distance is smaller than or equal to the preset value, the preset value is 1 meter, for example, a connection request can be initiated to the vehicle machine based on wifi direct connection information, and after the vehicle machine responds to the connection request, wifi direct connection between the terminal and the vehicle machine is established.
In this embodiment, because wifi directly links the information in the bluetooth signal of car machine broadcast, consequently can obtain wifi directly links the information from this bluetooth signal to and directly link the information based on wifi and establish wifi directly, do not need the equipment of manual selection treating the connection, realize that wifi directly links automatically. In addition, for the scene that wifi is directly connected needs to be established, wifi is directly connected based on wifi direct connection information and the distance, and the stability that wifi is directly connected can be improved.
Fig. 2 is a schematic diagram according to a second embodiment of the present disclosure, which provides a method for establishing a wireless connection, where the method includes:
201. broadcasting a Bluetooth signal, wherein the Bluetooth signal contains wifi direct connection information.
202. Responding to a wifi direct connection request sent by a terminal, and establishing wifi direct connection with the terminal; the wifi direct connection request is sent by the terminal based on the wifi direct connection information and the distance between the terminal and the vehicle machine, and the distance is determined by the terminal based on the Bluetooth signal.
The method provided by the embodiment can be applied to a vehicle machine.
The car machine is opening the back, can broadcast bluetooth signal, can end the broadcast after establishing wifi directly connecting with the terminal.
Wherein, the built-in bluetooth module broadcast bluetooth signal of car machine can be adopted to the car machine. The bluetooth module may be a classic bluetooth module or a bluetooth low energy module.
A wifi module can be further arranged in the automobile machine, so that wifi direct connection can be established with the wifi module arranged in the terminal.
The Wifi direct information may include: wifi direct name, media Access Control (MAC) address of the car machine, etc.
When the terminal determines to initiate wifi direct connection, the terminal can send a wifi direct connection request to the car machine based on wifi direct connection information, and the car machine can respond to the request after receiving the wifi direct connection request so as to establish wifi direct connection between the car machine and the terminal.
In this embodiment, carry the bluetooth signal of wifi direct connection information through the broadcast, can directly link the information and establish wifi directly based on wifi, do not need the equipment that manual selection waited to connect, realize automatically establishing wifi and directly link. In addition, for the scene that wifi is directly connected needs to be established, wifi is directly connected based on wifi direct connection information and the distance, and the stability that wifi is directly connected can be improved.
For better understanding of the embodiments of the present disclosure, application scenarios of the embodiments of the present disclosure are described. In this embodiment, a wifi direct connection is established between a mobile phone and a vehicle machine, and a bluetooth signal is a bluetooth signal corresponding to a low power consumption bluetooth module.
As shown in fig. 3, the device involved in the application scenario includes: a car machine 301 and a mobile phone 302. The car machine 30 and the mobile phone 302 may both include a wifi direct connection module and a low power consumption bluetooth module. For differentiation, the wifi direct connection module and the bluetooth low energy module in the car machine 301 may be referred to as a first wifi direct connection module and a first bluetooth low energy module, and the wifi direct connection module and the bluetooth low energy module in the mobile phone 302 may be referred to as a second wifi direct connection module and a second bluetooth low energy module.
As shown in fig. 3, the in-vehicle device 301 includes a first wifi direct connection module and a first bluetooth low energy module, and the first wifi direct connection module may send wifi direct connection information (such as a name and a MAC address of the in-vehicle device) of itself to the first bluetooth low energy module. The first low-power-consumption Bluetooth module can broadcast a Bluetooth signal after being started and carries a wifi direct connection signal in the Bluetooth signal.
The mobile phone 302 includes a second bluetooth low energy module, a second wifi direct connection module, and may further include a computing module, where the computing module may be a Central Processing Unit (CPU) or other processor.
And the second low-power Bluetooth is used for acquiring Bluetooth signals broadcasted by the vehicle machine through scanning, and carrying wifi direct connection information.
In addition, the bluetooth Signal may also carry a Signal Strength value, for example, a Received Signal Strength Indicator (RSSI) value, and the low power consumption bluetooth module and/or the computing module may obtain the RSSI value of the bluetooth Signal by using various related techniques (such as scan call back or connection reading).
The calculation module can calculate the distance between the mobile phone and the vehicle machine based on the signal intensity value of the Bluetooth signal. Taking the RSSI value as an example, there is a specific functional relationship between the RSSI and the distance, which can be determined according to practical experience, wherein the RSSI is inversely related to the distance, i.e. the distance is smaller as the signal strength is larger.
Based on a preset functional relationship, the calculation module can calculate the distance.
When the calculated distance is smaller than or equal to a preset value (such as 1 meter), the calculating module can trigger the second wifi direct connection module to initiate a wifi direct connection request.
The second wifi direct connection module can obtain wifi direct connection information from the Bluetooth signal, and sends a wifi direct connection request to the first wifi direct connection module based on the wifi direct connection information after receiving a trigger instruction of the calculation module so as to establish wifi direct connection between the mobile phone and the vehicle machine.
In combination with the above scenario, the embodiment of the present disclosure further provides a method for establishing a wireless connection.
Fig. 4 is a schematic diagram according to a third embodiment of the present disclosure, where the method provided by this embodiment includes:
401. the vehicle machine broadcasts a Bluetooth signal with a specific Universal Unique Identifier (UUID) by adopting a first low-power Bluetooth module, wherein the Bluetooth signal carries wifi direct connection information.
The specific UUID is a UUID agreed in advance by the vehicle machine and the mobile phone, and both the vehicle machine and the mobile phone are known in advance.
Wifi direct information includes, for example: name, MAC address of the car machine, etc.
The bluetooth signal broadcasted by the car machine using the first bluetooth low energy module may be referred to as a BLE broadcast packet, and includes a plurality of data items according to a Length-Type-Value (TLV) format, where the main data items include: broadcast flag bits (flags), device name, UUID, and vendor custom data (manufacturer data), among others.
The UUID is used for identifying the Bluetooth service, and different UUIDs correspond to different Bluetooth services.
In this embodiment, the car machine and the mobile phone can agree on the same UUID in advance, so that the car machine can carry wifi direct connection information through a bluetooth signal with a specific UUID, and the mobile phone obtains the wifi direct connection information from the bluetooth signal with the specific UUID through scanning.
Wifi direct information may be included in the vendor-defined data described above.
Wherein, the car machine can just to broadcasting bluetooth signal in the surrounding environment after the start, end broadcasting bluetooth signal after establishing wifi directly connecting with the cell-phone.
In addition, when the car machine adopts the low-power-consumption Bluetooth module to broadcast the Bluetooth signal, the Bluetooth connection with the mobile phone is not required to be established, so that the operations such as pairing required by the Bluetooth connection can be avoided, and the operation can be simplified.
402. The mobile phone scans the Bluetooth signals in the surrounding environment by adopting a second low-power Bluetooth module to acquire the Bluetooth signals with the specific UUID.
In this embodiment, through adopting the broadcast of specific UUID and scanning bluetooth signal, can improve the pertinence, filter out invalid equipment.
403. And the mobile phone calculates the distance between the mobile phone and the vehicle machine based on the signal intensity value of the Bluetooth signal.
The RSSI value may specifically be an RSSI value, and a preset functional relationship may exist between the RSSI value and the distance, and the distance may be calculated based on the functional relationship.
404. And the mobile phone acquires wifi direct connection information from the Bluetooth signal with the specific UUID.
After the mobile phone obtains the Bluetooth signal with the specific UUID through scanning, the data of the mobile phone can be decoded and the like, so that wifi direct connection information can be obtained.
403 and 404 have no timing constraints.
405. And the mobile phone responds to the fact that the distance is smaller than or equal to a preset value, and based on the wifi direct connection information, wifi direct connection is established with the car machine.
When the distance between the mobile phone and the vehicle-mounted device is smaller than or equal to the preset value, the mobile phone can send a wifi direct connection request to the vehicle-mounted device, and the vehicle-mounted device responds to the wifi direct connection request and then establishes wifi direct connection between the wifi direct connection request and the vehicle-mounted device.
On the other hand, if the distance is larger than the preset value, the mobile phone does not initiate wifi direct connection.
The connection range that Wifi directly links can reach 200 meters, but can not show the connection stability in succession, in order to improve stability, the distance factor has been considered in this embodiment, just establishes Wifi directly links apart from being less than or equal to the default.
After the vehicle machine and the mobile phone are directly connected by wifi, data channels related To the vehicle-mounted scene, such as an instruction channel, a video channel, a media channel, a Text To Speech (TTS) broadcast channel, a voice channel, a reverse control channel and the like, can be further established based on the wifi direct connection.
Various related technologies may be adopted for establishing the data channel, for example, a car networking Application (APP) such as a carrife may be installed on the car machine and the mobile phone, respectively, and the data channel is established based on the APP of this type on the basis of wifi direct connection.
After the data channel is established between the vehicle and the mobile phone, data such as audio, video, images, instructions and the like can be mutually transmitted, and the vehicle, the mobile phone and the vehicle can be interconnected.
In this embodiment, adopt bluetooth low energy broadcast or scanning bluetooth signal, bluetooth low energy compares in classic bluetooth more energy saving, and in addition, bluetooth low energy need not to carry out the bluetooth connection like classic bluetooth to can simplify the operation.
In this embodiment, through calculating the distance between car machine and the cell-phone, just establish wifi directly between the two when the distance is short and directly link, can guarantee the stability that wifi directly links. In addition, the distance is calculated based on the signal intensity value of the Bluetooth signal, so that the distance can be calculated more simply and efficiently.
In this embodiment, the car machine and the cell-phone interact based on the bluetooth signal that has specific UUID, and the pertinence is high, can filter a lot of invalid equipment, can establish wifi directly more efficiently.
Fig. 5 is a schematic diagram of a fourth embodiment according to the present disclosure, which provides an apparatus for establishing a wireless connection. As shown in fig. 5, the apparatus 500 includes: an acquisition module 501, a determination module 502 and a connection module 503.
The obtaining module 501 is configured to obtain a bluetooth signal broadcasted by a vehicle, where the bluetooth signal includes wifi direct connection information; the determining module 502 is configured to determine a distance to the vehicle device based on the bluetooth signal; the connection module 503 is configured to establish wifi direct connection with the car machine based on the wifi direct connection information and the distance.
In this embodiment, because wifi directly links information in the bluetooth signal of car machine broadcast, consequently can obtain wifi directly links information from this bluetooth signal to and establish wifi directly based on wifi directly links information, do not need the equipment of manual selection treating connection, realize that wifi directly links automatically. In addition, for the scene that wifi is directly connected needs to be established, wifi is directly connected based on wifi direct connection information and the distance, and the stability that wifi is directly connected can be improved.
In some embodiments, the connection module 503 is further configured to: and if the distance is smaller than or equal to a preset value, establishing wifi direct connection with the vehicle machine based on the wifi direct connection information.
In this embodiment, when being less than or equal to the default through the distance, establish wifi and directly link, because wifi directly links stability when less distance is stronger, consequently can further improve the stability that wifi directly links.
In some embodiments, the obtaining module 501 is further configured to: and a Bluetooth signal broadcasted by the vehicle-mounted machine is acquired by adopting a low-power-consumption Bluetooth module.
In this embodiment, adopt bluetooth low energy to scan bluetooth signal, bluetooth low energy compares in classic bluetooth more energy saving, and in addition, bluetooth low energy need not to carry out the bluetooth connection like classic bluetooth to can the simplified operation.
In some embodiments, the bluetooth signal broadcast by the car machine is a bluetooth signal having a specific UUID, and the obtaining module 501 is further configured to: and scanning the Bluetooth signals in the surrounding environment to acquire the Bluetooth signals with the specific UUID.
In this embodiment, the car machine and the cell-phone interact based on the bluetooth signal that has specific UUID, and the pertinence is high, can filter a lot of invalid equipment, can establish wifi directly more efficiently.
In some embodiments, the determining module 502 is further configured to: acquiring a signal strength value of the Bluetooth signal; and calculating the distance between the car machine and the car machine based on the signal intensity value.
In this embodiment, through calculating the distance between car machine and the cell-phone, just establish wifi between the two and directly link when the distance is short, can guarantee the stability that wifi directly links. In addition, the distance is calculated based on the signal intensity value of the Bluetooth signal, so that the distance can be calculated more simply and efficiently.
Fig. 6 is a schematic diagram according to a fifth embodiment of the present disclosure, which provides an apparatus for establishing a wireless connection. As shown in fig. 6, the apparatus 600 includes: a broadcast module 601 and a connection module 602.
The broadcasting module 601 is used for broadcasting a Bluetooth signal, wherein the Bluetooth signal comprises wifi direct connection information; the connection module 602 is configured to establish wifi direct connection with a terminal in response to a wifi direct connection request sent by the terminal; the wifi direct connection request is sent by the terminal based on the wifi direct connection information and the distance between the terminal and the vehicle machine, and the distance is determined by the terminal based on the Bluetooth signal.
In this embodiment, carry the bluetooth signal of wifi direct connection information through the broadcast, can directly link the information and establish wifi directly based on wifi, do not need the equipment that manual selection waited to connect, realize automatically establishing wifi and directly link. In addition, for the scene that wifi is directly connected needs to be established, wifi is directly connected based on wifi direct connection information and the distance, and the stability that wifi is directly connected can be improved.
In some embodiments, the wifi direct connection request is sent based on the wifi direct connection information when the distance is less than or equal to a preset value.
In this embodiment, when being less than or equal to the default through the distance, establish wifi and directly link, because wifi directly links stability when less distance is stronger, consequently can further improve the stability that wifi directly links.
In some embodiments, the broadcast module 601 is further configured to: and broadcasting the Bluetooth signal by adopting a low-power Bluetooth module.
In this embodiment, adopt bluetooth low energy to broadcast bluetooth signal, bluetooth low energy compares in classic bluetooth energy saving more, and in addition, bluetooth low energy need not to carry out the bluetooth connection like classic bluetooth to can the simplified operation.
In some embodiments, the broadcasting module 602 is further configured to: a bluetooth signal with a particular UUID is broadcast.
In this embodiment, the car machine and the cell-phone interact based on the bluetooth signal that has specific UUID, and the pertinence is high, can filter a lot of invalid equipment, can establish wifi directly more efficiently.
It is to be understood that in the disclosed embodiments, the same or similar contents in different embodiments may be mutually referred to.
It is to be understood that "first", "second", and the like in the embodiments of the present disclosure are used for distinction only, and do not indicate the degree of importance, the order of timing, and the like.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 707 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as the method of establishing a wireless connection. For example, in some embodiments, the method of establishing a wireless connection may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 700 via the ROM 702 and/or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method of establishing a wireless connection described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by means of firmware) to perform the method of establishing a wireless connection.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a 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 may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (21)

1. A method of establishing a wireless connection, comprising:
acquiring a Bluetooth signal broadcasted by a vehicle machine, wherein the Bluetooth signal comprises wifi direct connection information;
determining the distance to the car machine based on the Bluetooth signal;
based on the wifi direct connection information and the distance, establishing wifi direct connection with the car machine.
2. The method of claim 1, wherein the establishing wifi direct connection with the in-vehicle machine based on the wifi direct connection information and the distance comprises:
and if the distance is smaller than or equal to a preset value, establishing wifi direct connection with the vehicle machine based on the wifi direct connection information.
3. The method of claim 1, wherein the acquiring the bluetooth signal broadcasted by the car machine comprises:
and a Bluetooth signal broadcasted by the vehicle-mounted machine is acquired by adopting a low-power-consumption Bluetooth module.
4. The method of claim 1, wherein the bluetooth signal broadcasted by the car machine is a bluetooth signal with a specific UUID, and the acquiring the bluetooth signal broadcasted by the car machine comprises:
and scanning the Bluetooth signals in the surrounding environment to acquire the Bluetooth signals with the specific UUID.
5. The method according to any one of claims 1-4, wherein said determining a distance to said vehicle machine based on said Bluetooth signal comprises:
acquiring a signal intensity value of the Bluetooth signal;
and calculating the distance between the car machine and the car machine based on the signal intensity value.
6. A method of establishing a wireless connection, comprising:
broadcasting a Bluetooth signal, wherein the Bluetooth signal comprises wifi direct connection information;
responding to a wifi direct connection request sent by a terminal, and establishing wifi direct connection with the terminal; the wifi direct connection request is sent by the terminal based on the wifi direct connection information and the distance between the terminal and the vehicle machine, and the distance is determined by the terminal based on the Bluetooth signal.
7. The method of claim 6, wherein the wifi direct connection request is sent by the terminal based on the wifi direct connection information when the distance is less than or equal to a preset value.
8. The method of claim 6, wherein the broadcasting the Bluetooth signal comprises:
and broadcasting the Bluetooth signal by adopting a low-power Bluetooth module.
9. The method of any of claims 6-8, wherein the broadcasting a Bluetooth signal comprises:
a bluetooth signal with a specific UUID is broadcast.
10. An apparatus for establishing a wireless connection, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a Bluetooth signal broadcasted by a vehicle machine, and the Bluetooth signal comprises wifi direct connection information;
the determining module is used for determining the distance between the vehicle-mounted device and the vehicle-mounted device based on the Bluetooth signal;
and the connection module is used for establishing wifi direct connection based on the wifi direct connection information and the distance and the vehicle machine.
11. The apparatus of claim 9, wherein the connection module is further to:
and if the distance is smaller than or equal to a preset value, establishing wifi direct connection with the vehicle machine based on the wifi direct connection information.
12. The apparatus of claim 9, wherein the means for obtaining is further configured to:
and a Bluetooth signal broadcasted by the vehicle-mounted device is acquired by adopting a Bluetooth module with low power consumption.
13. The apparatus of claim 9, wherein the bluetooth signal broadcast by the car machine is a bluetooth signal having a specific UUID, and the obtaining module is further configured to:
and scanning the Bluetooth signals in the surrounding environment to acquire the Bluetooth signals with the specific UUID.
14. The apparatus of any of claims 9-12, wherein the means for determining is further configured to:
acquiring a signal intensity value of the Bluetooth signal;
and calculating the distance between the vehicle and the vehicle machine based on the signal intensity value.
15. An apparatus for establishing a wireless connection, comprising:
the broadcasting module is used for broadcasting Bluetooth signals, and the Bluetooth signals comprise wifi direct connection information;
the connection module is used for responding to a wifi direct connection request sent by the terminal and establishing wifi direct connection with the terminal; the wifi direct connection request is sent by the terminal based on the wifi direct connection information and the distance between the terminal and the vehicle machine, and the distance is determined by the terminal based on the Bluetooth signal.
16. The device of claim 15, wherein the wifi direct connection request is sent by the terminal based on the wifi direct connection information when the distance is less than or equal to a preset value.
17. The apparatus of claim 15, wherein the broadcast module is further configured to:
and broadcasting the Bluetooth signal by adopting a low-power Bluetooth module.
18. The apparatus of any of claims 15-18, wherein the broadcast module is further configured to:
a bluetooth signal with a specific UUID is broadcast.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-9.
21. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-9.
CN202210930164.9A 2022-08-03 2022-08-03 Method, device, equipment and storage medium for establishing wireless connection Pending CN115515255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210930164.9A CN115515255A (en) 2022-08-03 2022-08-03 Method, device, equipment and storage medium for establishing wireless connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210930164.9A CN115515255A (en) 2022-08-03 2022-08-03 Method, device, equipment and storage medium for establishing wireless connection

Publications (1)

Publication Number Publication Date
CN115515255A true CN115515255A (en) 2022-12-23

Family

ID=84502721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210930164.9A Pending CN115515255A (en) 2022-08-03 2022-08-03 Method, device, equipment and storage medium for establishing wireless connection

Country Status (1)

Country Link
CN (1) CN115515255A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112654020A (en) * 2020-12-15 2021-04-13 北京百度网讯科技有限公司 Method, device, equipment and storage medium for establishing wireless connection
CN113068161A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 Bluetooth low-energy-consumption communication method, device and system and storage medium
CN113329373A (en) * 2021-06-08 2021-08-31 阿波罗智联(北京)科技有限公司 Vehicle machine interconnection method and device
CN113395689A (en) * 2021-05-28 2021-09-14 昇辉控股有限公司 Bluetooth Mesh network-based equipment pairing method, system and storage medium
CN114286324A (en) * 2021-12-31 2022-04-05 南京四维智联科技有限公司 Vehicle-mounted machine interconnection method, system, device and computer equipment
CN114650520A (en) * 2020-12-17 2022-06-21 广东朝歌智慧互联科技有限公司 Method and device for realizing wireless network connection based on standard Bluetooth broadcast
CN114786279A (en) * 2022-03-30 2022-07-22 青岛海尔空调器有限总公司 Method, device and system for directly connecting control of air conditioner and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068161A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 Bluetooth low-energy-consumption communication method, device and system and storage medium
CN112654020A (en) * 2020-12-15 2021-04-13 北京百度网讯科技有限公司 Method, device, equipment and storage medium for establishing wireless connection
CN114650520A (en) * 2020-12-17 2022-06-21 广东朝歌智慧互联科技有限公司 Method and device for realizing wireless network connection based on standard Bluetooth broadcast
CN113395689A (en) * 2021-05-28 2021-09-14 昇辉控股有限公司 Bluetooth Mesh network-based equipment pairing method, system and storage medium
CN113329373A (en) * 2021-06-08 2021-08-31 阿波罗智联(北京)科技有限公司 Vehicle machine interconnection method and device
CN114286324A (en) * 2021-12-31 2022-04-05 南京四维智联科技有限公司 Vehicle-mounted machine interconnection method, system, device and computer equipment
CN114786279A (en) * 2022-03-30 2022-07-22 青岛海尔空调器有限总公司 Method, device and system for directly connecting control of air conditioner and storage medium

Similar Documents

Publication Publication Date Title
CN112654020B (en) Method, device, equipment and storage medium for establishing wireless connection
EP2936748B1 (en) Methods and apparatus for transmitting data between different peer-to-peer communication groups
US10764805B2 (en) Signal strength measurement method and device
CN113329373A (en) Vehicle machine interconnection method and device
CN106028266B (en) Information transmission method, device and system
CN113316124A (en) Vehicle machine interconnection method and device
JP2017531339A (en) Method and apparatus for interconnecting smart terminals and in-vehicle terminals
CN112311753A (en) Information interaction method and device and electronic equipment
US20170257897A1 (en) Communication Method and Device
CN108605371A (en) It was found that the method and bluetooth equipment of bluetooth equipment
CN115023964A (en) WLAN (Wireless local area network) perception measurement establishment termination method and device, electronic equipment and storage medium
US10225800B2 (en) Portable device control method and device
CN111148171B (en) Call switching method and server
CN105979475B (en) Short-range wireless connection method and terminal
CN115515255A (en) Method, device, equipment and storage medium for establishing wireless connection
CN113825123A (en) Communication method, communication device, electronic equipment and computer storage medium
CN113726608B (en) Data processing method and device
CN114143907B (en) Wireless connection establishment method, device, electronic equipment and storage medium
CN104580296A (en) Method, device and terminals for sharing resources
CN102111732B (en) Method and device for sharing information between wireless terminals
CN115098052A (en) Screen projection method, device, equipment and storage medium
CN111355650B (en) Real-time chat method, platform, system and related equipment
US10725809B2 (en) Application interaction method and apparatus, and terminal
US10349456B2 (en) Video communication system, video transmission terminal, video reception terminal, communication method, and recording medium
CN111565476A (en) Communication method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination