Electronic device connection method, connection device, electronic device, medium and system

By creating Wi-Fi direct groups and SoftAp in the Wi-Fi direct mode of the vehicle system and broadcasting corresponding connection information, the problem of users needing to manually switch communication mode to connect to mobile phones on different platforms is solved, and automatic connection, reducing costs and improving user experience is achieved.

CN115314856BActive Publication Date: 2025-03-21SHANGHAI QINGGAN INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110491784.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-06
Publication Date
2025-03-21
Estimated Expiration
2041-05-06

AI Technical Summary

Technical Problem

When connecting to mobile phones on different platforms, existing in-vehicle systems require users to manually turn on hotspots or switch Wi-Fi mode, resulting in complex operation, time-consuming and degraded user experience.

Method used

By creating a Wi-Fi direct group and compatible SoftAp in Wi-Fi direct mode, broadcasting the first connection information and the second connection information, the platform electronic devices that support Wi-Fi direct and do not support Wi-Fi direct use different connection information to establish communication connections with the on-board system.

Benefits of technology

Without user intervention or switching communication modes, electronic devices on different platforms can automatically connect to the on-board system, reducing the cost of using the on-board system, improving the user experience, and reducing the time for electronic devices to discover the on-board system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115314856B_ABST
    Figure CN115314856B_ABST
Patent Text Reader

Abstract

The present invention discloses a connection method, a connection device, an electronic device, a medium and a system for an electronic device, the connection method comprising the following steps: setting the communication connection mode to the Wi-Fi direct mode; creating a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; broadcasting connection information; receiving a communication connection request initiated by the electronic device based on the connection information; and establishing a communication connection with the electronic device. The present invention ensures that electronic devices of different platforms can be connected to the vehicle-mounted system without human intervention and switching back and forth between the hotspot mode and the Wi-Fi mode, without the need to transform a single-mode vehicle-mounted system into a dual-mode vehicle-mounted system, thereby reducing the use cost of the vehicle-mounted system, and will not affect the performance of the vehicle-mounted system itself, and will not affect the user's ability to access the Internet through the electronic device, greatly improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent driving, and in particular to an electronic equipment connection method, a connection device, an electronic equipment, a medium and a system. Background Art

[0002] In the prior art, mobile phones using the Android platform support Wi-Fi direct technology and also support hotspot connection. However, when a mobile phone using the Android platform connects to a vehicle system through a hotspot, if the vehicle system has no Internet traffic, the mobile phone will be unable to access the Internet after successfully connecting to the vehicle system (even if the vehicle system is not assigned to a mobile phone gateway). Therefore, in this case, the only way to connect to the vehicle system is to use Wi-Fi direct technology.

[0003] At the same time, mobile phones using the IOS (Apple system) platform and other platforms that do not support Wi-Fi direct technology can only connect to the car system by turning on the hotspot on the mobile phone (at the same time, the car system is not assigned to the mobile phone gateway) to maintain the phone's own Internet access capabilities.

[0004] However, for most Wi-Fi (wireless) single-mode in-vehicle systems, hotspots and Wi-Fi direct cannot coexist. As a result, when connecting mobile phones of different platforms, users are required to turn the hotspot on and off to switch between hotspot mode and Wi-Fi mode to ensure that mobile phones of different platforms can connect to the in-vehicle system. This method has high operating and learning costs for users, and the mode switching operation itself is time-consuming, which will lead to a decrease in user experience.

[0005] Currently, there are dual-mode coexistence (supporting both Wi-Fi direct mode and hotspot mode) in-vehicle systems on the market. Although this method does not require users to intervene in the in-vehicle system, it is more expensive, and the coexistence of the two modes will affect the processing power of the in-vehicle system, resulting in a decrease in the performance of the in-vehicle system. Summary of the invention

[0006] One purpose of the present application is to provide a connection method for electronic devices, which has the advantage that, without the need to convert a single-mode vehicle-mounted system into a dual-mode vehicle-mounted system, by creating a Wi-Fi direct group in Wi-Fi direct mode and creating a SoftAp compatible with the Wi-Fi direct group, electronic devices on platforms that support Wi-Fi direct technology can connect to the vehicle-mounted system through first connection information, while electronic devices on platforms that do not support Wi-Fi direct technology can connect to the vehicle-mounted system through second connection information, thereby ensuring that electronic devices on different platforms can be connected to the vehicle-mounted system without the need for human intervention or switching back and forth between hotspot mode and Wi-Fi mode, thereby reducing the use cost of the vehicle-mounted system, and will not affect the performance of the vehicle-mounted system itself. At the same time, it will not affect the user's ability to access the Internet through electronic devices, greatly improving the user experience.

[0007] Another object of the present application is to provide a connection method for an electronic device, which has the advantage that when the connection name carried in the communication connection request is consistent with the broadcast connection name, the vehicle system can establish a communication connection with the electronic device. In this way, a communication connection can be established between the vehicle system and the electronic device simply and efficiently.

[0008] Another object of the present application is to provide a connection method for an electronic device, which has the advantage that when the connection name and connection password carried in the communication connection request are consistent with the broadcast connection name and connection password, the vehicle system can establish a communication connection with the electronic device. In this way, while the communication connection is automatically established between the vehicle system and the electronic device, the security of the communication connection is enhanced.

[0009] Another object of the present application is to provide a method for connecting electronic devices, the advantage of which is that the vehicle-mounted system can reduce channel interference during the communication connection process by creating an operating frequency of a Wi-Fi direct group.

[0010] Another object of the present application is to provide a connection method for an electronic device, which has the advantage of being able to directly use Wi-Fi direct to broadcast the first connection information. On the one hand, it improves the resource utilization of the vehicle system. On the other hand, when the first connection information and the second connection information are broadcast at the same time, it also avoids conflicts with the broadcasting method of the second connection information. Broadcasting the second connection information of SoftAp through BLE can ensure that the electronic device can receive the second connection information, further ensuring the communication connection between the electronic device and the vehicle system.

[0011] Another object of the present application is to provide a connection device for electronic devices, which has the advantage that when the first processor executes the instructions stored in the first memory, the communication module can establish a communication connection between electronic devices of different platforms and the vehicle-mounted system by executing a series of steps. On the one hand, the user does not need to switch the communication mode of the vehicle-mounted system according to the electronic devices of different platforms, and does not need to intervene in the vehicle-mounted system; on the other hand, there is no need to change the hardware equipment of the single-mode vehicle-mounted system, making the cost of the vehicle-mounted system lower; in addition, it can also reduce the time for the electronic device to discover the vehicle-mounted system, such as: before turning on the hotspot, the vehicle-mounted system must first turn off the Wi-Fi direct connection mode, which takes about 1.5 seconds, turning on the hotspot takes about 2.5 seconds, and the electronic device takes about 1 second to scan the vehicle-mounted system. In the prior art, the total time required for the electronic device to discover the vehicle-mounted system is (1.5+2.5+1)=5 seconds. When using the solution in this embodiment, there is no need to switch the hotspot, nor is there a need to turn off the Wi-Fi direct connection mode first. It only takes 1 second for the electronic device to scan the vehicle-mounted system, saving 80% of the discovery time, further improving the connection efficiency and user experience.

[0012] Another object of the present application is to provide an electronic device, which has the advantage of comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the electronic device connection method in the present application when executing the computer program.

[0013] Another object of the present application is to provide a computer-readable storage medium, which has the advantage that a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the electronic device connection method in the present application are implemented.

[0014] Another object of the present application is to provide a connection system for electronic devices, which has the advantage that electronic devices of different platforms can establish communication connections with the vehicle-mounted system according to different connection information. On the one hand, the user does not need to switch the communication mode of the vehicle-mounted system according to the electronic devices of different platforms, and does not need to intervene in the vehicle-mounted system; on the other hand, there is no need to change the hardware equipment of the single-mode vehicle-mounted system, making the cost of the vehicle-mounted system lower; in addition, it can also reduce the time for electronic devices to discover the vehicle-mounted system

[0015] The present invention solves the above technical problems through the following technical solutions:

[0016] A first aspect of the present application provides a method for connecting an electronic device, the method comprising the following steps:

[0017] Set the communication connection mode to Wi-Fi direct mode;

[0018] Create a Wi-Fi direct group and a SoftAp (soft access point) compatible with the Wi-Fi direct group;

[0019] Broadcast connection information, where the connection information includes first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp;

[0020] receiving a communication connection request initiated by the electronic device based on the connection information;

[0021] A communication connection is established with the electronic device.

[0022] A second aspect of the present application provides a connection device for an electronic device, comprising: a processor, a communication module, and a memory;

[0023] The processor is communicatively connected to the communication module; and

[0024] The memory is configured to store instructions, which, when executed by the processor, cause the communication module to perform steps, the steps comprising:

[0025] Set the connection mode to Wi-Fi direct mode;

[0026] Create a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group;

[0027] Broadcast connection information, where the connection information includes first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp;

[0028] receiving a communication connection request initiated by the electronic device based on the connection information;

[0029] A communication connection is established with the electronic device.

[0030] A third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the electronic device connection method as described above when executing the computer program.

[0031] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the electronic device connection method as described above.

[0032] A fifth aspect of the present application provides a connection system for electronic devices, the connection system comprising: a vehicle-mounted system and the electronic device;

[0033] The vehicle-mounted system sets the communication connection mode to the Wi-Fi direct mode; creates a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; and broadcasts connection information, the connection information including the first connection information of the Wi-Fi direct group and / or the second connection information of the SoftAp;

[0034] The electronic device receives the connection information and initiates a connection request according to the connection information;

[0035] The in-vehicle system receives the connection request and establishes a communication connection with the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Schematic diagram of an application scenario of an embodiment of the present invention.

[0037] Figure 2 This is a flow chart of a method for connecting an electronic device according to Embodiment 1 of the present invention.

[0038] Figure 3 This is a module schematic diagram of a connecting device for an electronic device according to Embodiment 2 of the present invention.

[0039] Figure 4 This is a schematic diagram of the modules of the electronic device in Embodiment 3 of the present invention.

[0040] Figure 5 This is a module diagram of a connection system for an electronic device according to Embodiment 5 of the present invention.

[0041] Figure 6 This is a schematic diagram of the interaction between the vehicle-mounted system and the connection system of the electronic device in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0042] In order to better understand the embodiments of the present invention, some commonly used technical terms in the embodiments are explained below:

[0043] [Definition of including] The terms "having", "may have", "including" or "may include" as used herein indicate the existence of the corresponding functions, operations, elements, etc. of the present disclosure, and do not limit the existence of one or more other functions, operations, elements, etc. In addition, it should be understood that the terms "including" or "having" as used herein indicate the existence of the features, numbers, steps, operations, elements, parts or combinations thereof described in the specification, without excluding the existence or addition of one or more other features, numbers, steps, operations, elements, parts or combinations thereof.

[0044] [Definition of and / or] As used herein, the terms "A or B", "at least one of A and / or B", or "one or more of A and / or B" include any and all combinations of the words listed therewith. For example, "A or B", "at least one of A and B", or "at least one of A or B" means (1) including at least one A, (2) including at least one B, or (3) including both at least one A and at least one B.

[0045] [Definition of first and second] The descriptions of first, second, etc. that appear in the embodiments of the present disclosure are only used for illustration and distinction of the described objects, and have no order, nor do they represent a special limitation on the number of devices in the embodiments of the present disclosure, and cannot constitute any limitation on the embodiments of the present disclosure. For example, a first element may be referred to as a second element without departing from the scope of the present disclosure, and similarly, a second element may be referred to as a first element.

[0046] [Definition of connection] It will be understood that when an element (e.g., a first element) is “connected to” or “(operably or communicatively) coupled to” another element (e.g., a second element), the element may be directly connected or coupled to the other element, and there may be an intermediate element (e.g., a third element) between the element and the other element. Conversely, it will be understood that when an element (e.g., a first element) is “directly connected to” or “directly coupled to” another element (e.g., a second element), there are no intermediate elements (e.g., a third element) between the element and the other element.

[0047] [Meaning of electronic device] The electronic device according to various embodiments of the present disclosure may include, for example, at least one of the following: a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, an in-car infotainment device, a car stereo, etc.;

[0048] The electronic device according to various embodiments of the present disclosure may also include a combination of one or more of the above-mentioned devices. Further, the electronic device according to various embodiments of the present disclosure is not limited to the above-mentioned devices, which will be obvious to those skilled in the art.

[0049] [Meaning of user] Here, the term "user" may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).

[0050] [Whether applicable to each generation of communication systems] The technical solution of this invention can be applicable to 5G (5Generation) communication systems, as well as 4G and 3G communication systems, and can also be applicable to various new communication systems in the future, such as 6G, 7G, etc.

[0051] In addition, it should be noted that Figure 1 As shown, the embodiments of the present disclosure are specifically applied in the scenario where an in-vehicle system and an electronic device interact with each other.

[0052] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0053] Example 1

[0054] This embodiment provides a method for connecting electronic devices, such as Figure 2 As shown, the connection method includes the following steps:

[0055] Step 101: Set the communication connection mode to Wi-Fi direct mode.

[0056] It should be understood that in step 101, when the current communication connection mode of the vehicle system is already the Wi-Fi direct mode, the Wi-Fi direct mode is maintained; when the current communication connection mode is not the Wi-Fi direct mode, the communication connection mode is automatically set to the Wi-Fi direct mode. The specific setting of the Wi-Fi direct mode can be selected according to the existing technology, and this embodiment does not limit it.

[0057] Step 102: Create a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group.

[0058] It should be understood that in this embodiment, the methods of creating a Wi-Fi direct group and creating a SoftAp can be selected according to the existing technology, and this embodiment is not limited to this.

[0059] Step 103: Broadcast connection information.

[0060] The connection information includes the first connection information of the Wi-Fi direct group and / or the second connection information of SoftAp. The first connection information is used for electronic devices that support Wi-Fi direct to communicate with the vehicle system, such as electronic devices configured with the Android system, and the second connection information is used for electronic devices that do not support Wi-Fi direct to communicate with the vehicle device, such as electronic devices configured with the IOS system.

[0061] Step 104: Receive a communication connection request initiated by the electronic device based on the connection information.

[0062] Step 105: Establish a communication connection with the electronic device.

[0063] In this embodiment, when the electronic device is an electronic device that supports Wi-Fi direct, this type of electronic device can discover the first connection information and establish a communication connection with the vehicle system based on the first connection information; when the electronic device is an electronic device that does not support Wi-Fi direct, this type of electronic device can discover the second connection information and establish a communication connection with the vehicle system based on the second connection information.

[0064] This embodiment can connect electronic devices of different platforms to the vehicle-mounted system by utilizing the connection information sent by the vehicle-mounted system without converting the single-mode vehicle-mounted system into a dual-mode vehicle-mounted system. This embodiment does not require human intervention, and the user does not need to switch back and forth between the hotspot mode and the Wi-Fi mode, thereby reducing the cost of using the equipment. In addition, this embodiment will not affect the performance of the vehicle-mounted system itself, nor will it affect the user's ability to access the Internet through electronic devices, thereby greatly improving the user experience.

[0065] In a specific implementation manner, the connection information specifically includes: a connection name.

[0066] Step 105 specifically includes: when the connection information carried in the communication connection request is consistent with the broadcast connection information, establishing a communication connection with the electronic device.

[0067] In this embodiment, when the connection name carried in the communication connection request is consistent with the broadcast connection name, the vehicle system can establish a communication connection with the electronic device. In this way, a communication connection can be established between the vehicle system and the electronic device simply and efficiently.

[0068] In a specific implementation manner, the connection information specifically includes a connection name and a connection password.

[0069] Step 105 specifically includes: when the connection name and connection password carried in the communication connection request are consistent with the broadcast connection name and connection password, establishing a communication connection with the electronic device.

[0070] In this embodiment, when the connection name and connection password carried in the communication connection request are consistent with the broadcast connection name and connection password, the vehicle system can establish a communication connection with the electronic device. In this way, while the communication connection is automatically established between the vehicle system and the electronic device, the security of the communication connection is enhanced.

[0071] In a specific implementation, the first connection information may further include: an operating frequency of the Wi-Fi direct group. Specifically, in this embodiment, the operating frequency of the Wi-Fi direct group may be randomly created.

[0072] In this embodiment, channel interference during the communication connection process can be reduced by creating the working frequency of the Wi-Fi direct group.

[0073] In a specific implementation, when the connection information includes the first connection information, step 103 specifically includes the step of broadcasting the first connection information of the Wi-Fi direct group via Wi-Fi direct.

[0074] In this embodiment, the first connection information can be directly broadcast using Wi-Fi direct. On the one hand, this improves the resource utilization of the vehicle system. On the other hand, when the first connection information and the second connection information are broadcast at the same time, it also avoids conflicts with the broadcasting method of the second connection information.

[0075] In a specific implementation, when the connection information includes the second connection information, the step of broadcasting the connection information specifically includes the step of: broadcasting the second connection information of SoftAp via BLE (Bluetooth Low Energy Protocol).

[0076] In this embodiment, in some scenarios, the electronic device may not have the authority to obtain the second connection information broadcast by the surrounding routers (including SoftAp). In this case, the router to be connected cannot be displayed to the user for selection, and automatic connection cannot be performed.

[0077] Based on this, this embodiment broadcasts the second connection information of SoftAp through BLE. Since the electronic device has the authority to obtain the second connection information being broadcasted through BLE in the surrounding area, and also has the authority to initiate a communication connection request to SoftAp, therefore, in this way, it is possible to further ensure the establishment of a communication connection between the electronic device and the vehicle-mounted system.

[0078] In order to better understand the present embodiment, the present embodiment is described below by using a specific example:

[0079] The vehicle system works in the Wi-Fi direct communication connection mode by default. After the vehicle system is started, a Wi-Fi direct group is created in advance, and the connection name of this Wi-Fi direct group and the connection password for joining this group are set, and a random operating frequency (such as 5745Mhz (megahertz)) is selected to reduce the probability of channel interference.

[0080] When the Wi-Fi direct group of the vehicle system is successfully created, the first connection information of this group will continue to be broadcast through Wi-Fi direct so that electronic devices can discover it.

[0081] After the Wi-Fi direct group of the vehicle system is successfully created, a SoftAp compatible with Wi-Fi direct will be created at the same time. The vehicle system will also broadcast the second connection information of the SoftAp through BLE. Electronic devices that do not support Wi-Fi direct can discover and connect to this SoftAp.

[0082] Electronic devices supporting Wi-Fi direct, such as mobile phones configured with an Android operating system, can receive the first connection information broadcast by Wi-Fi direct through the Wi-Fi direct scanning technology to discover the vehicle system.

[0083] Electronic devices that do not support Wi-Fi direct, such as mobile phones configured with IOS operating system, can receive the second connection information broadcast by the vehicle system through BLE via BLE, or automatically or manually scan the second connection information of SoftAp broadcast by the vehicle system through Wi-Fi.

[0084] It can be seen that whether it is an electronic device configured with an Android operating system, an electronic device configured with an IOS operating system, or an electronic device configured with other operating systems, it can establish a communication connection with the vehicle-mounted system without the need for user intervention in the vehicle-mounted system.

[0085] In the present embodiment, firstly, the user does not need to intervene in the vehicle-mounted system, thus reducing the user's learning cost (most users do not understand why they need to turn on and off the hotspot to establish a communication connection between the electronic device and the vehicle-mounted system). Secondly, compared with the dual-mode vehicle-mounted system in which Wi-Fi direct and the hotspot coexist, the vehicle-mounted system in the present embodiment has a lower cost. In addition, the time for the electronic device to discover the vehicle-mounted system can also be reduced. For example, before turning on the hotspot, the vehicle-mounted system must first turn off the Wi-Fi direct connection mode, which takes about 1.5 seconds, turning on the hotspot takes about 2.5 seconds, and the electronic device takes about 1 second to scan the vehicle-mounted system. In the prior art, the total time required for the electronic device to discover the vehicle-mounted system is (1.5+2.5+1)=5 seconds. When using the solution in the present embodiment, there is no need to switch the hotspot or turn off the Wi-Fi direct connection mode first. It only takes 1 second for the electronic device to scan the vehicle-mounted system, saving 80% of the discovery time, further improving the connection efficiency and user experience.

[0086] Example 2

[0087] This embodiment provides a connection device for electronic equipment, such as Figure 3 As shown, it includes: a first processor 201, a communication module 203, and a first memory 202, wherein the first processor 201 is communicatively connected with the communication module 203; and

[0088] The first memory 202 is configured to store instructions, which, when executed by the first processor, cause the communication module 203 to perform steps, including:

[0089] Set the connection mode to Wi-Fi direct mode;

[0090] Create a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group;

[0091] Broadcast connection information, where the connection information includes first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp;

[0092] receiving a communication connection request initiated by the electronic device based on the connection information;

[0093] Establish a communication link with the electronic device.

[0094] The specific implementation of the above steps can refer to steps 101-105 in Example 1, which will not be repeated in this embodiment.

[0095] In this embodiment, when the first processor executes the instructions stored in the first memory, the communication module can establish a communication connection between electronic devices of different platforms and the vehicle-mounted system by executing a series of steps. On the one hand, the user does not need to switch the communication mode of the vehicle-mounted system according to the electronic devices of different platforms, and does not need to intervene in the vehicle-mounted system; on the other hand, there is no need to change the hardware equipment of the single-mode vehicle-mounted system, making the cost of the vehicle-mounted system lower; in addition, the time for the electronic device to discover the vehicle-mounted system can also be reduced, such as: before turning on the hotspot, the vehicle-mounted system must first turn off the Wi-Fi direct connection mode, which takes about 1.5 seconds, turning on the hotspot takes about 2.5 seconds, and the electronic device takes about 1 second to scan the vehicle-mounted system. In the prior art, the total time required for the electronic device to discover the vehicle-mounted system is (1.5+2.5+1)=5 seconds. Using the solution in this embodiment, there is no need to switch the hotspot, nor is there a need to turn off the Wi-Fi direct connection mode first. It only takes 1 second for the electronic device to scan the vehicle-mounted system, saving 80% of the discovery time, further improving the connection efficiency and user experience.

[0096] Example 3

[0097] This embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, a server device), including a second memory, a second processor, and a computer program stored in the second memory and executable on the second processor, wherein the steps of the connection method of the electronic device in Embodiment 1 can be implemented when the second processor executes the computer program.

[0098] Figure 4 FIG. 4 shows a schematic diagram of the hardware structure of this embodiment. Figure 4 As shown, the electronic device 9 specifically includes:

[0099] At least one second processor 91, at least one second memory 92, and a bus 93 for connecting different system components (including the second processor 91 and the second memory 92), wherein:

[0100] The bus 93 includes a data bus, an address bus, and a control bus.

[0101] The second memory 92 includes a volatile second memory, such as a random access second memory (RAM) 921 and / or a cache second memory 922 , and may further include a read-only second memory (ROM) 923 .

[0102] The second memory 92 also includes a program / utility 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0103] The second processor 91 executes various functional applications and data processing by running the computer programs stored in the second memory 92, such as the steps of the electronic device connection method in Embodiment 1 of the present invention.

[0104] The electronic device 9 can further communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication can be performed through an input / output (I / O) interface 95. In addition, the electronic device 9 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 96. The network adapter 96 communicates with other modules of the electronic device 9 through a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant second processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0105] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0106] Example 4

[0107] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the electronic device connection method in Embodiment 1 are implemented.

[0108] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0109] In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the electronic device connection method in Example 1.

[0110] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0111] Example 5

[0112] This embodiment provides a connection system for electronic devices. Figure 5 The module schematic diagram of the connection system of this embodiment is shown, and the connection system includes: a vehicle-mounted system 501 and an electronic device 502, Figure 6 The schematic diagram of the interaction between the vehicle system and the electronic device is shown, and the specific interaction mode is as follows:

[0113] The vehicle system sets the communication connection mode to the Wi-Fi direct mode; creates a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; and broadcasts connection information, the connection information including first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp;

[0114] Among them, the specific implementation method of the vehicle system setting the communication connection mode and creating Wi-Fi direct and SoftAp can refer to steps 101 to 104 in Example 1, which will not be repeated in this embodiment.

[0115] The electronic device receives the connection information and initiates a connection request according to the connection information.

[0116] Among them, when the electronic device is an electronic device supporting Wi-Fi direct, it receives the first connection information and initiates a connection request based on the first connection information. When the electronic device is an electronic device supporting SoftAp, it receives the second connection information and initiates a connection request based on the second connection information.

[0117] The vehicle-mounted system receives the connection request and establishes a communication connection with the electronic device.

[0118] The specific implementation method of the vehicle-mounted system receiving the connection request and establishing a communication connection with the electronic device can refer to step 105 in Example 1, which will not be repeated here.

[0119] In this embodiment, electronic devices of different platforms can establish communication connections with the vehicle-mounted system according to different connection information. On the one hand, users do not need to switch the communication mode of the vehicle-mounted system according to electronic devices of different platforms, and do not need to intervene in the vehicle-mounted system; on the other hand, there is no need to change the hardware equipment of the single-mode vehicle-mounted system, making the cost of the vehicle-mounted system lower; in addition, the time for electronic devices to discover the vehicle-mounted system can also be reduced, such as: before turning on the hotspot, the vehicle-mounted system must first turn off the Wi-Fi direct connection mode, which takes about 1.5 seconds, turning on the hotspot takes about 2.5 seconds, and the electronic device takes about 1 second to scan the vehicle-mounted system. In the prior art, the total time required for electronic devices to discover the vehicle-mounted system is (1.5+2.5+1)=5 seconds. Through the solution in this embodiment, there is no need to switch hotspots, nor is there any need to turn off the Wi-Fi direct connection mode first. It only takes 1 second for the electronic device to scan the vehicle-mounted system, saving 80% of the discovery time, further improving connection efficiency and user experience.

[0120] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A method for connecting electronic devices, characterized in that: The connection method comprises the following steps: Set the communication connection mode to Wi-Fi direct mode; Create a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; Broadcast connection information, where the connection information includes first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp; receiving a communication connection request initiated by the electronic device based on the connection information; establishing a communication connection with the electronic device; When the connection information includes the first connection information, the step of broadcasting the connection information specifically includes the steps of: broadcasting the first connection information of the Wi-Fi direct group via Wi-Fi direct; When the connection information includes the second connection information, the step of broadcasting the connection information specifically includes the step of: broadcasting the second connection information of the SoftAp through BLE.

2. The method for connecting an electronic device according to claim 1, wherein the connection information specifically comprises: Connection name and connection password; The step of establishing a communication connection with the electronic device specifically comprises the following steps: When the connection information carried in the communication connection request is consistent with the broadcast connection information, a communication connection is established with the electronic device.

3. The method for connecting an electronic device according to claim 1, wherein the first connection information comprises: The operating frequency of the Wi-Fidirect group.

4. The method for connecting an electronic device according to any one of claims 1 to 3, wherein the electronic device comprises an electronic device configured with an Android system and / or an electronic device configured with an IOS system.

5. A connecting device for an electronic device, comprising: Processor, communication module, memory; The processor is communicatively connected with the communication module; as well as The memory is configured to store instructions, which, when executed by the processor, cause the communication module to perform steps, the steps comprising: Set the connection mode to Wi-Fi direct mode; Create a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; Broadcast connection information, where the connection information includes first connection information of the Wi-Fi direct group and / or second connection information of the SoftAp; receiving a communication connection request initiated by the electronic device based on the connection information; establishing a communication connection with the electronic device; When the connection information includes the second connection information, the step of broadcasting the connection information specifically includes the steps of: broadcasting the second connection information of the SoftAp via BLE; When the connection information includes the first connection information, the step of broadcasting the connection information specifically includes the step of broadcasting the first connection information of the Wi-Fi direct group via Wi-Fi direct.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the electronic device connection method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the electronic device connection method according to any one of claims 1 to 4 are implemented.

8. A connection system for electronic equipment, characterized in that: The connection system comprises: a vehicle-mounted system and the electronic device; The in-vehicle system sets the communication connection mode to the Wi-Fi direct mode; creates a Wi-Fi direct group and a SoftAp compatible with the Wi-Fi direct group; and broadcasts connection information, the connection information including the first connection information of the Wi-Fi direct group and / or the second connection information of the SoftAp; The electronic device receives the connection information and initiates a connection request according to the connection information; The vehicle-mounted system receives the connection request and establishes a communication connection with the electronic device; When the connection information includes the second connection information, the step of broadcasting the connection information specifically includes the steps of: broadcasting the second connection information of the SoftAp via BLE; When the connection information includes the first connection information, the step of broadcasting the connection information specifically includes the step of broadcasting the first connection information of the Wi-Fi direct group via Wi-Fi direct.

Citation Information

Patent Citations

  • Information interaction method and device for vehicle-mounted equipment

    CN105933951A