Hotspot connection control method, device, computer equipment and storage medium

By establishing an NFC connection between the car and the mobile phone and automatically switching the hotspot status, the problem of cumbersome operation and low efficiency when connecting the hotspot of the car and the mobile phone is solved, and a fast and safe hotspot connection is achieved, which is suitable for vehicle driving scenarios.

CN114501390BActive Publication Date: 2024-12-27CHINA FAW CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210171702.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-12-27
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

The operation of the car computer when connecting to the mobile phone hotspot is cumbersome and is not suitable for vehicle driving scenarios. The hotspot connection efficiency is low, which limits the experience of the Internet of Vehicles.

Method used

By contacting the NFC area of ​​the mobile phone and the car computer, establish an NFC connection, obtain and determine the working status of Wi-Fi and hotspots, and automatically switch the hotspot connection status to achieve a fast and secure hotspot connection between the car computer and the mobile phone.

Benefits of technology

The operation process of connecting the car computer and mobile phone hotspots is simplified, the connection speed and efficiency are improved, suitable for vehicle driving scenarios, and the user interaction cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114501390B_ABST
    Figure CN114501390B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method, device, computer equipment and storage medium for hotspot connection. The control method for hotspot connection includes: when the current mobile phone is in contact with the NFC area of ​​the vehicle computer, establishing an NFC connection with the current mobile phone; determining the first working state of the Wi-Fi in the vehicle computer; obtaining the second working state of the hotspot in the current mobile phone from the current mobile phone through the NFC connection; determining the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; switching the hotspot connection state between the vehicle computer and the current mobile phone. The embodiment of the present invention improves the efficiency of hotspot connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle networking technology, and in particular, to a control method, device, computer equipment and storage medium for hotspot connection. Background Art

[0002] With the development of Internet of Vehicles technology, the IVI (In-Vehicle Infotainment) host integrated in smart cars has gradually developed from a single function to a diversified and rich one. An important link in the IVI host that supports its user experience is the in-vehicle 4G / 5G communication technology.

[0003] The high price of 4G / 5G traffic for car computers limits users' experience of the Internet of Vehicles. However, 4G / 5G on mobile phones is relatively mature and has low usage costs. The car computer can be connected to the mobile phone's hotspot through hotspot sharing.

[0004] When the car computer is connected to a mobile phone hotspot, the operation is cumbersome, not suitable for vehicle driving scenarios, and the hotspot connection efficiency is low. Summary of the invention

[0005] Embodiments of the present invention provide a hotspot connection control method, device, computer equipment and storage medium to improve the efficiency of hotspot connection.

[0006] In a first aspect, an embodiment of the present invention provides a method for controlling a hotspot connection, the method comprising:

[0007] When the current mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established between the current mobile phone and the vehicle computer;

[0008] Determine the first working state of the Wi-Fi in the vehicle computer;

[0009] The second working state of the hotspot in the current mobile phone is obtained from the current mobile phone through the NFC connection;

[0010] Determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected;

[0011] Switch the hotspot connection status between the vehicle computer and the current mobile phone.

[0012] In a second aspect, an embodiment of the present invention provides a method for controlling a hotspot connection, the method comprising:

[0013] When the mobile phone is in contact with the NFC area of ​​the vehicle, an NFC connection is established between the mobile phone and the vehicle.

[0014] Determine the second working state of the hotspot in the current mobile phone;

[0015] Through NFC connection, the second working state of the hotspot in the current mobile phone is sent to the vehicle computer, which is used to instruct the vehicle computer to execute the following: determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; switch the hotspot connection state between the vehicle computer and the current mobile phone.

[0016] In a third aspect, an embodiment of the present invention further provides a hotspot connection control device, the device comprising:

[0017] A connection establishment module is used to establish an NFC connection with the current mobile phone when the current mobile phone is in contact with the NFC area of ​​the vehicle computer;

[0018] A first working state determining module, used to determine the first working state of the Wi-Fi in the vehicle computer;

[0019] A second working state acquisition module, used to acquire the second working state of the hotspot in the current mobile phone from the current mobile phone through NFC connection;

[0020] A hotspot connection state determination module is used to determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected;

[0021] The hotspot connection status switching module is used to switch the hotspot connection status between the vehicle computer and the current mobile phone.

[0022] In a fourth aspect, an embodiment of the present invention further provides a hotspot connection control device, the device comprising:

[0023] The connection establishment module is used to establish an NFC connection between the mobile phone and the vehicle computer when the mobile phone and the vehicle computer are in contact with each other.

[0024] A second working state determining module, used to determine the second working state of the hotspot in the current mobile phone;

[0025] The second working status sending module is used to send the second working status of the hotspot in the current mobile phone to the vehicle computer through NFC connection, and is used to instruct the vehicle computer to execute the following: determine the hotspot connection status between the vehicle computer and the current mobile phone according to the first working status and the second working status; the hotspot connection status is connected or not connected; switch the hotspot connection status between the vehicle computer and the current mobile phone.

[0026] A fifth aspect is a computer device, the computer device comprising:

[0027] one or more processors;

[0028] A storage device for storing one or more programs;

[0029] When one or more programs are executed by one or more processors, the one or more processors implement the hotspot connection control method provided by the embodiment of the present invention.

[0030] In a sixth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a hotspot connection control method as provided in an embodiment of the present invention.

[0031] The present invention establishes a point-to-point connection between the current mobile phone and the vehicle computer by contacting the NFC area of ​​the current mobile phone with the vehicle computer, realizes information interaction between the vehicle computer and the current mobile phone, improves information security, obtains the second working state of the hotspot in the current mobile phone through the NFC connection, determines the hotspot connection state between the vehicle computer and the current mobile phone according to the second working state and the first working state of the Wi-Fi obtained by the vehicle computer after the NFC connection is established, and switches the hotspot connection state between the vehicle computer and the current mobile phone. During the whole process, the user only needs to contact the NFC area of ​​the vehicle computer with the current mobile phone, which is simple to operate and more suitable for vehicle driving scenarios. The communication between the vehicle computer and the current mobile phone can be quickly realized through the NFC connection, and the hotspot connection speed of the vehicle computer is improved. The problems of cumbersome operation, unsuitability for vehicle driving scenarios, and low hotspot connection efficiency when the vehicle computer is connected to the mobile phone hotspot are solved, thereby achieving the effect of improving the efficiency of the vehicle computer connecting to the hotspot. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flowchart of a hotspot connection control method provided in Embodiment 1 of the present invention;

[0033] Figure 2 A flowchart of a hotspot connection control method provided in Embodiment 2 of the present invention;

[0034] Figure 3 A flowchart of a hotspot connection control method provided in Embodiment 3 of the present invention;

[0035] Figure 4 A flowchart of a hotspot connection control method provided in Embodiment 4 of the present invention;

[0036] Figure 5 A schematic diagram of the structure of a hotspot connection control device provided in Embodiment 5 of the present invention;

[0037] Figure 6 A schematic diagram of the structure of a hotspot connection control device provided in Embodiment 6 of the present invention;

[0038] Figure 7It is a structural diagram of a computer device provided in Embodiment 7 of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0040] Embodiment 1

[0041] Figure 1 This is a flow chart of a hotspot connection control method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of controlling a hotspot connection. The method can be executed by a hotspot connection control device, which can be implemented in software and / or hardware. The device can be configured in a vehicle computer and executed by the vehicle computer. The method specifically includes:

[0042] Step 110: When the current mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established with the current mobile phone.

[0043] The current mobile phone is a mobile phone that is currently in contact with the NFC area of ​​the vehicle computer using its own NFC (Near Field Communication) area, and is used to establish an NFC connection with the vehicle computer. The vehicle computer is the abbreviation of the in-vehicle infotainment product installed in the center console of the car, which is used to realize the communication between the vehicle and other smart devices or people, for example, it can realize the communication between people and cars, cars and mobile phones, and cars and satellites. The NFC area is an area in the vehicle computer where the NFC chip is installed, which is used to contact other devices installed with NFC chips. Exemplarily, the NFC area can be below, on the left or above the display screen of the center console, etc. The present invention does not make specific restrictions, and preferably a position that is convenient for the driver to operate. The NFC connection is a wireless communication connection between the mobile phone and the vehicle computer established by contacting the NFC area of ​​the current mobile phone with the vehicle computer, which is used for the subsequent transmission of the hotspot data of the current mobile phone and the vehicle computer. Specifically, a peer-to-peer (P2P) mode NFC connection is established. NFC technology has extremely high security and low cost, which can improve the security of hotspot connection control and reduce equipment costs.

[0044] Step 120: Determine the first working state of the Wi-Fi in the vehicle computer.

[0045] The Wi-Fi (a professional term, a wireless communication technology) in the car computer is used to connect to a wireless network, such as a hotspot. The first working state is the working state of the Wi-Fi in the car computer, including whether the Wi-Fi is turned on and whether the Wi-Fi is connected to a hotspot signal. Specifically, after the NFC connection between the car computer and the current mobile phone is established, the car computer obtains the first working state of the Wi-Fi, that is, whether the Wi-Fi is turned on, and obtains the connection state when the Wi-Fi is turned on, and obtains the name of the connected hotspot when the connection state is connected.

[0046] Step 130: Acquire the second working state of the hotspot in the current mobile phone from the current mobile phone through the NFC connection.

[0047] The hotspot is a transmitting point in the current mobile phone that provides Wi-Fi access to the Internet, and is used to provide a wireless network for the vehicle computer. The second working state is the working state of the hotspot in the current mobile phone, including whether the hotspot is turned on and whether the hotspot is connected. Specifically, after the NFC connection between the vehicle computer and the current mobile phone, the current mobile phone obtains the second working state of its hotspot and sends it to the vehicle computer through the NFC connection. The vehicle computer obtains the second working state of the hotspot in the current mobile phone through the NFC connection, that is, whether the hotspot in the current mobile phone is turned on, and obtains whether the hotspot is connected when the hotspot is turned on, and obtains the name of the hotspot when the connection state is connected.

[0048] Step 140: Determine the hotspot connection status between the vehicle computer and the current mobile phone according to the first working status and the second working status; the hotspot connection status is connected or not connected.

[0049] The connection status is the connection status between the hotspot of the current mobile phone and the Wi-Fi in the car computer, which is used to provide a judgment basis for the subsequent switching of the hotspot connection status. Specifically, the connection status is connected or not connected. According to the first working state of the Wi-Fi in the car computer and the second working state of the hotspot in the current mobile phone, the hotspot connection status between the car computer and the current mobile phone is determined, that is, whether the Wi-Fi in the car computer is connected to the hotspot in the current mobile phone is determined. Specifically, connected means that the Wi-Fi in the car computer has established a connection with the hotspot in the current mobile phone, that is, the Wi-Fi in the car computer has established a connection with the hotspot in the current mobile phone before the current mobile phone contacts the NFC area of ​​the car computer; not connected means that the Wi-Fi in the car computer has not established a connection with the hotspot in the current mobile phone. For example, it can be that the Wi-Fi in the car computer is not turned on, the Wi-Fi in the car computer is not connected to the hotspot, or the Wi-Fi in the car computer is not connected to the hotspot in the current mobile phone, etc.

[0050] Step 150: Switch the hotspot connection status between the vehicle computer and the current mobile phone.

[0051] Switch to the car computer to change the hotspot connection status between the car computer and the current mobile phone, which is used to connect to the hotspot of the current mobile phone or disconnect from the hotspot of the current mobile phone. For example, when the hotspot connection status between the car computer and the current mobile phone is connected, disconnect the hotspot connection with the current mobile phone. When the hotspot connection status between the car computer and the current mobile phone is not connected, establish a hotspot connection with the current mobile phone.

[0052] The technical solution of this embodiment is to establish a point-to-point connection between the current mobile phone and the vehicle computer by contacting the NFC area of ​​the current mobile phone with the vehicle computer, realize information interaction between the vehicle computer and the current mobile phone, improve information security, obtain the second working state of the hotspot in the current mobile phone through the NFC connection, determine the hotspot connection state between the vehicle computer and the current mobile phone according to the second working state and the first working state of the Wi-Fi obtained by the vehicle computer after establishing the NFC connection, and switch the hotspot connection state between the vehicle computer and the current mobile phone. During the whole process, the user only needs to touch the NFC area of ​​the vehicle computer with the current mobile phone, which is simple to operate and more suitable for vehicle driving scenarios. The communication between the vehicle computer and the current mobile phone can be quickly realized through the NFC connection, and the speed of the vehicle computer hotspot connection is improved. The problem of cumbersome operation, unsuitable for vehicle driving scenarios, and low hotspot connection efficiency when the vehicle computer connects to the mobile phone hotspot is solved, thereby achieving the effect of improving the efficiency of the vehicle computer connecting to the hotspot.

[0053] In an optional embodiment, the hotspot connection status between the vehicle computer and the current mobile phone is determined according to the first working status and the second working status, including: if the first working status is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working status is that the current hotspot in the current mobile phone is turned on and connected, then determine whether the hotspot connected to the vehicle computer is the current hotspot; if the hotspot connected to the vehicle computer is the current hotspot, determine that the hotspot connection status between the vehicle computer and the current mobile phone is a connected state; if the hotspot connected to the vehicle computer is not the current hotspot, determine that the hotspot connection status between the vehicle computer and the current mobile phone is a disconnected state; if any of the following items is met, determine that the hotspot connection status between the vehicle computer and the current mobile phone is a disconnected state, the first working status is that the Wi-Fi in the vehicle computer is not turned on or not connected, and the second working status is that the current hotspot in the current mobile phone is not turned on or not connected.

[0054] The Wi-Fi in the car is turned on and connected to the hotspot, and the current hotspot in the current mobile phone is turned on and connected to the hotspot. At this time, the car obtains the name of the hotspot connected to the car and compares it with the name of the current hotspot in the current mobile phone obtained through NFC connection. If the two names are the same, it is determined that the hotspot connected to the car is the current hotspot, that is, before the current mobile phone touches the NFC area of ​​the car, it has established a connection with the hotspot of the current mobile phone, and the hotspot connection status between the car and the current mobile phone is determined to be connected; if the two names are different, it is determined that the hotspot connected to the car is not the current hotspot, that is, before the current mobile phone touches the NFC area of ​​the car, it has established a connection with the hotspot of other mobile phones, and the hotspot connection status between the car and the current mobile phone is determined to be unconnected. Among them, the current hotspot is the hotspot of the current mobile phone. The first working state may also be that the Wi-Fi in the vehicle is not turned on or not connected. Not turned on means that the Wi-Fi function of the vehicle is not turned on, and the connectable hotspot cannot be searched, which means that the vehicle is not connected to the current hotspot; Not connected means that the Wi-Fi function of the vehicle is turned on but is not connected to any hotspot, which means that the vehicle is not connected to the current hotspot. The second working state may also be that the current hotspot in the current mobile phone is not turned on or not connected. Not turned on means that the current hotspot in the current mobile phone is not turned on, and the vehicle cannot obtain the current hotspot information of the current mobile phone, which means that the vehicle is not connected to the current hotspot; Not connected means that the current hotspot is not connected by any device, which means that the vehicle is not connected to the current hotspot. That is, if any of the following items is met, it is determined that the hotspot connection state between the vehicle and the current mobile phone is not connected. The first working state is that the Wi-Fi in the vehicle is not turned on or not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or not connected.

[0055] Exemplarily, after obtaining the first working state and the second working state, the connection state of the current hotspot can be determined preferentially according to the first working state. When the first working state is not turned on or not connected, the connection state of the current hotspot is determined to be not connected. When the first working state is connected, the connection state of the current hotspot can be determined according to the second working state. When the second working state is not turned on or not connected, the connection state of the current hotspot is determined to be not connected. When the second working state is connected, it is determined whether the name of the hotspot connected by the Wi-Fi in the vehicle computer is the same as the name of the current hotspot in the current mobile phone. If they are the same, the connection state of the current hotspot is determined to be connected, otherwise, the connection state of the current hotspot is determined to be not connected. After obtaining the first working state and the second working state, the first working state and the second working state can be judged at the same time. When the first working state and the second working state are both connected, it is determined whether the name of the hotspot connected by the Wi-Fi in the vehicle computer is the same as the name of the current hotspot in the current mobile phone. If they are the same, the connection state of the hotspot is determined to be connected, otherwise, the connection state of the hotspot is determined to be not connected. The present invention does not make any specific limitation on this.

[0056] By judging whether the hotspot connected to the vehicle computer is the current hotspot when the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected, it is possible to accurately judge whether the current hotspot of the current mobile phone has established a connection with the Wi-Fi in the vehicle computer before the current mobile phone contacts the NFC area of ​​the vehicle computer, thereby providing an accurate judgment basis for subsequent switching of the hotspot connection state. When the first working state is that the Wi-Fi in the vehicle computer is not turned on or not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or not connected, it is determined that the hotspot connection state is the unconnected state, thereby quickly judging the unconnected state and improving the efficiency of subsequent connection with the current hotspot.

[0057] In an optional embodiment, the hotspot connection status between the vehicle computer and the current mobile phone is switched, including: if the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer has established connections with other hotspots in other mobile phones, then disconnect the connection with other hotspots, and establish a connection with the current hotspot in the current mobile phone; if the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer is not connected to other hotspots, then establish a connection with the current hotspot in the current mobile phone.

[0058] If the hotspot connection status between the car computer and the current mobile phone is not connected, and the car computer has established a connection with other hotspots in other mobile phones, that is, before the current mobile phone and the NFC area of ​​the car computer touch, the Wi-Fi in the car computer has been connected to the hotspot of other mobile phones. At this time, disconnect the connection with other hotspots and establish a connection with the current hotspot in the current mobile phone, that is, switch the hotspot connected by the Wi-Fi in the car computer to the current hotspot of the current mobile phone. If the hotspot connection status between the car computer and the current mobile phone is not connected, and the car computer is not connected to other hotspots, that is, the Wi-Fi in the car computer is not connected to any hotspot, at this time, establish a connection between the Wi-Fi in the car computer and the current hotspot in the current mobile phone.

[0059] When the hotspot connection status between the car computer and the current mobile phone is not connected, a connection is established between the current hotspot in the current mobile phone to achieve fast switching of the hotspot connection status and improve the hotspot connection efficiency. At the same time, when the hotspot connection status between the car computer and the current mobile phone is not connected and the car computer has established connections with other hotspots in other mobile phones, the connection with other hotspots is disconnected and a connection is established with the current hotspot in the current mobile phone to achieve switching from the already connected hotspot to the current hotspot of the current mobile phone, that is, switching of the connected hotspot. When it is necessary to switch the hotspot connected to the car computer, it is only necessary to touch the current mobile phone to be connected with the NFC area of ​​the car computer. The car computer and the mobile phone that has established a connection with the Wi-Fi in the car computer do not need to perform any operation. The operation is convenient and the efficiency of hotspot switching is improved.

[0060] Embodiment 2

[0061] Figure 2 A flow chart of a control method for hotspot connection provided in the second embodiment of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. Specifically, "if the hotspot connection status between the vehicle computer and the current mobile phone is not connected, a connection with the current hotspot in the current mobile phone will be established" is refined as: "through NFC connection, obtain the ciphertext of the configuration information of the current hotspot from the current mobile phone; the ciphertext of the configuration information of the current hotspot is obtained by encrypting the original text of the configuration information of the current hotspot; decrypt the ciphertext of the configuration information of the current hotspot to obtain the original text of the configuration information of the current hotspot; use the original text of the configuration information of the current hotspot to establish a connection with the current hotspot in the current mobile phone". The method includes:

[0062] Step 210: When the current mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established with the current mobile phone.

[0063] Step 220: Determine the first working state of the Wi-Fi in the vehicle computer.

[0064] Step 230: Acquire the second working state of the hotspot in the current mobile phone from the current mobile phone through the NFC connection.

[0065] Step 240: Determine the hotspot connection status between the vehicle computer and the current mobile phone according to the first working status and the second working status; the hotspot connection status is connected or not connected.

[0066] Step 250: Obtain the ciphertext of the configuration information of the current hotspot from the current mobile phone through the NFC connection; the ciphertext of the configuration information of the current hotspot is obtained by encrypting the original text of the configuration information of the current hotspot.

[0067] The original configuration information is the name of the current hotspot, the connection password and other information, and is used to connect to the current hotspot according to the original configuration information. The ciphertext of the configuration information is the information after the original configuration information is encrypted, that is, the ciphertext of the configuration information of the current hotspot is obtained by encrypting the original configuration information of the current hotspot, and is used to transmit the original configuration information of the current hotspot, thereby improving the security of the original configuration information transmission. When the hotspot connection status between the vehicle computer and the current mobile phone is not connected, the current mobile phone generates the original configuration information of the current hotspot, and encrypts the original configuration information of the current hotspot to obtain the ciphertext of the configuration information of the current hotspot. The vehicle computer obtains the ciphertext of the configuration information of the current hotspot through the NFC connection with the current mobile phone. The ciphertext of the configuration information is obtained through the NFC connection. Due to the high security and fast transmission rate of the NFC technology itself, the transmission security and rate of the ciphertext of the configuration information are improved.

[0068] Step 260: decrypt the ciphertext of the configuration information of the current hotspot to obtain the original text of the configuration information of the current hotspot.

[0069] Decryption decrypts the configuration information ciphertext according to the encryption method of the configuration information ciphertext, and is used to obtain the original configuration information from the configuration information ciphertext. Exemplarily, when the configuration information original text obtains the configuration information ciphertext through a symmetric encryption algorithm, the configuration information ciphertext is decrypted by a symmetric key; when the configuration information original text obtains the configuration information ciphertext through an asymmetric encryption algorithm, the configuration information ciphertext is decrypted by an asymmetric encryption private key.

[0070] Step 270: Use the original configuration information of the current hotspot to establish a connection with the current hotspot in the current mobile phone.

[0071] The original configuration information includes the name of the current hotspot and the connection password. Through the name of the current hotspot, the Wi-Fi in the car computer determines the current hotspot as the hotspot to be connected, and establishes a connection with the current hotspot based on the connection password of the current hotspot.

[0072] This embodiment uses NFC connection to obtain the ciphertext configuration information of the current hotspot from the current mobile phone, thereby improving the speed and security of information transmission. The ciphertext configuration information of the current hotspot is decrypted to obtain the original configuration information. According to the original configuration information, a connection is established with the current hotspot in the current mobile phone to achieve a quick connection with the current hotspot. There is no need to manually select the hotspot name to be connected and enter the connection password. In the vehicle form scenario, the number of interactions between people and mobile phones or vehicle computers will increase safety risks, reduce the cost of human-computer interaction, improve the convenience of operation, improve the efficiency of hotspot connection, and make the hotspot connection more suitable for vehicle driving scenarios.

[0073] In an optional embodiment, the hotspot connection state between the vehicle computer and the current mobile phone is switched, including: if the hotspot connection state between the vehicle computer and the current mobile phone is connected, disconnecting the connection state with the current hotspot in the current mobile phone.

[0074] According to the first working state and the second working state, it is determined that the hotspot connection state between the vehicle computer and the current mobile phone is connected, and the connection state between the current hotspot in the current mobile phone is disconnected. That is, when the current mobile phone touches the NFC area of ​​the vehicle computer and the vehicle computer establishes a connection with the hotspot of the current mobile phone, when the current mobile phone touches the NFC area of ​​the vehicle computer again, the hotspot of the connected current mobile phone is disconnected. Specifically, the vehicle computer deletes the hotspot information of the current mobile phone, where the hotspot information includes information such as the name and connection password of the hotspot of the previous mobile phone.

[0075] When the hotspot connection status between the car computer and the current mobile phone is connected, disconnect the connection status between the current hotspot in the current mobile phone to quickly disconnect the hotspot connection status. The operation is simple. When the user parks and leaves the vehicle, the hotspot connection can be disconnected in time to avoid wasting mobile phone traffic.

[0076] Embodiment 3

[0077] Figure 3 This is a flow chart of a hotspot connection control method provided in Embodiment 3 of the present invention. This embodiment is applicable to the case of controlling hotspot connections. The method can be executed by a hotspot connection control device, which can be implemented in software and / or hardware. The device can be configured in a mobile phone and executed by the mobile phone. The method specifically includes:

[0078] Step 310: When the mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established between the mobile phone and the vehicle computer.

[0079] By touching the NFC area of ​​the current mobile phone with the vehicle computer, a point-to-point NFC connection is established between the current mobile phone and the vehicle computer for data transmission between the current mobile phone and the vehicle computer.

[0080] Step 320: Determine the second working state of the hotspot in the current mobile phone.

[0081] After establishing an NFC connection with the vehicle computer, the current mobile phone obtains the working status of the hotspot in the current mobile phone, that is, the second working status, including whether the hotspot is turned on and whether it is connected, and obtains the hotspot name if it is connected.

[0082] Step 330, through the NFC connection, the second working state of the hotspot in the current mobile phone is sent to the vehicle computer, which is used to instruct the vehicle computer to execute the following: according to the first working state and the second working state, determine the hotspot connection state between the vehicle computer and the current mobile phone; the hotspot connection state is connected or not connected; switch the hotspot connection state between the vehicle computer and the current mobile phone.

[0083] After obtaining the second working state, the second working state of the hotspot in the current mobile phone is sent to the vehicle computer through the NFC connection with the vehicle computer, which is used to instruct the vehicle computer to connect through NFC. After obtaining the second working state, the hotspot connection state between the vehicle computer and the current mobile phone is determined according to the first working state and the second working state, wherein the hotspot connection state is connected or not connected. The vehicle computer switches the hotspot connection state between the vehicle computer and the current mobile phone according to the hotspot connection state. The specific switching process has been described in detail in the aforementioned embodiment and will not be repeated here.

[0084] In an optional embodiment, after sending the second working state of the hotspot in the current mobile phone to the vehicle computer via NFC connection, it also includes: if the hotspot connection state between the vehicle computer and the current mobile phone is not connected, encrypting the original text of the configuration information of the current hotspot to obtain the ciphertext of the configuration information of the current hotspot; sending the ciphertext of the configuration information of the current hotspot to the vehicle computer via NFC connection, to instruct the vehicle computer to execute the following: obtaining the ciphertext of the configuration information of the current hotspot from the current mobile phone via NFC connection; decrypting the ciphertext of the configuration information of the current hotspot to obtain the original text of the configuration information of the current hotspot; and using the original text of the configuration information of the current hotspot to establish a connection with the current hotspot in the current mobile phone.

[0085] If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, that is, the Wi-Fi in the vehicle computer is about to establish a connection with the current hotspot, then the original configuration information of the current hotspot is generated, and the original configuration information is encrypted to generate the ciphertext of the configuration information. The ciphertext of the configuration information is sent to the vehicle computer through the NFC connection with the vehicle computer, thereby improving the security of the transmission of the original configuration information and preventing the current hotspot from being connected by other computer devices with wireless communication functions, causing traffic loss, for example, being connected by other passengers' mobile phones, tablet computers or laptops in the vehicle. Exemplarily, the encryption algorithm used in the encryption process can be a symmetric encryption algorithm or an asymmetric encryption algorithm, etc., and the present invention does not make specific limitations on this. After the vehicle computer obtains the ciphertext of the configuration information through the NFC connection with the current mobile phone, it uses the encryption algorithm with the current mobile phone to decrypt the ciphertext of the configuration information of the current hotspot accordingly, obtains the original configuration information of the current hotspot, and uses the original configuration information of the current hotspot to establish a connection with the current hotspot in the current mobile phone.

[0086] When the hotspot connection status between the vehicle computer and the current mobile phone is not connected, the original configuration information of the current hotspot is encrypted to obtain the ciphertext of the configuration information of the current hotspot, thereby improving the security of the original transmission of the configuration information. Through the NFC connection, the ciphertext of the configuration information of the current hotspot is sent to the vehicle computer, thereby improving the information transmission efficiency and the efficiency of the hotspot connection.

[0087] In an optional embodiment, if the hotspot connection status between the vehicle computer and the current mobile phone is not connected, the configuration information original of the current hotspot is generated, and the configuration information original includes the hotspot name and connection password generated by a random algorithm.

[0088] The current mobile phone obtains the hotspot connection status through the NFC connection with the vehicle computer. If the hotspot connection status between the current vehicle computer and the current mobile phone is not connected, the hotspot name and connection password of the current hotspot are generated according to the random algorithm. The random algorithm is used to generate random numbers and / or text, so that the original configuration information generated by the same mobile phone each time is different, which improves information security and prevents the hotspot from being mistakenly connected by a previously connected computer device and causing traffic loss. Specifically, the hotspot name is used to identify the current hotspot. After the Wi-Fi in the vehicle computer is turned on, the hotspot name is used to obtain the current hotspot as the hotspot that needs to be connected; the connection password is used to obtain the connection permission to the current hotspot, that is, when the Wi-Fi in the vehicle computer obtains the original configuration information, it can establish a connection with the current hotspot.

[0089] This embodiment establishes an NFC connection between the mobile phone and the vehicle computer when the NFC area of ​​the mobile phone is in contact with the vehicle computer, so that point-to-point communication can be established between the mobile phone and the vehicle computer, thereby improving the communication rate and security. After the NFC connection is established, the second working state is determined and sent to the vehicle computer through the NFC connection. The vehicle computer obtains the second working state through the NFC connection, and quickly determines the hotspot connection state in combination with the first working state, and switches the hotspot connection state, thereby reducing the interaction between the user and the mobile phone and improving the hotspot connection efficiency.

[0090] Embodiment 4

[0091] Figure 4 This is a flow chart of a hotspot connection control method provided in Embodiment 4 of the present invention. The technical solution of this embodiment is a specific implementation process of the hotspot connection control method. Specifically, the hotspot connection control method includes:

[0092] Step 410: Establishing an NFC connection. By bringing the current mobile phone into contact with the NFC area of ​​the vehicle computer, a point-to-point NFC connection between the current mobile phone and the vehicle computer is established for communication between the vehicle computer and the current mobile phone.

[0093] Step 420: Is the current hotspot turned on / connected? After the current mobile phone establishes NFC with the vehicle computer, the current mobile phone calls the system interface of the mobile phone to obtain the hotspot turn-on / connection status of the current mobile phone, that is, whether the current hotspot of the current mobile phone is turned on, and whether the hotspot is connected when turned on. If so, that is, the current hotspot is turned on and connected, then go to step 430; if not, that is, the current hotspot is not turned on or turned on but not connected, then go to step 421.

[0094] Step 421, create the original text of the current hotspot configuration information. When the current hotspot is not turned on or turned on but not connected, that is, when the judgment in step 420 is no, it can be determined that the Wi-Fi in the vehicle computer is not connected to the current hotspot, and the current mobile phone system interface automatically creates the original text of the current hotspot configuration information. Specifically, the name and connection password of the current hotspot are randomly generated through a random algorithm, so that the original text of the configuration information created each time is different, to prevent the computer device that has previously established a connection with the hotspot of the current mobile phone from stealing the hotspot of the current mobile phone, causing the loss of mobile phone traffic.

[0095] Step 422: Is Wi-Fi turned on? The vehicle computer calls the system interface to obtain the activation status of Wi-Fi in the vehicle computer. If yes, that is, Wi-Fi in the vehicle computer is already turned on, then the process goes to step 424; if no, that is, Wi-Fi in the vehicle computer is not turned on, then the process goes to step 423.

[0096] Step 423, turn on Wi-Fi. Turn on the Wi-Fi in the car computer in time to quickly establish a connection with the current hotspot after obtaining the original text of the current hotspot configuration information, thereby improving the connection speed.

[0097] Step 424, open the current hotspot. When the NFC connection with the vehicle computer indicates that the Wi-Fi in the vehicle computer is turned on, open the current hotspot of the current mobile phone, and use the Wi-Fi in the vehicle computer to establish a connection with the current hotspot.

[0098] Step 430: Is Wi-Fi turned on / connected? The vehicle computer calls the system interface to obtain the on / connection status of Wi-Fi in the vehicle computer, that is, whether Wi-Fi in the vehicle computer is turned on, and if it is turned on, whether Wi-Fi is connected to the hotspot. If so, that is, the current hotspot is turned on and connected to the hotspot, then go to step 431; if not, that is, Wi-Fi is not turned on or turned on but not connected to the hotspot, then go to step 440.

[0099] Step 440, create the original text of the current hotspot configuration information. When the Wi-Fi in the car computer is not turned on or turned on but not connected to the hotspot, that is, when the judgment in step 430 is no, it can be judged that the Wi-Fi in the car computer is not connected to the current hotspot. The car computer connects to the current mobile phone through NFC and sends the judgment result to the current mobile phone. After the current mobile phone obtains the judgment result of the car computer that the car computer and the current hotspot are not connected, the current mobile phone system interface automatically creates the original text of the current hotspot configuration information. The specific creation process is the same as the above step 421, which can also prevent the loss of mobile phone traffic caused by the theft of the current mobile phone's hotspot.

[0100] Step 450: Turn on Wi-Fi. Turn on the Wi-Fi in the vehicle computer. The specific operation and function are the same as the above step 423, which will not be repeated here.

[0101] Step 460: The current mobile phone generates a configuration information ciphertext and sends it to the vehicle computer. The module in the current mobile phone for encrypting the original configuration information encrypts the original configuration information after the current mobile phone creates the original configuration information to generate the configuration information ciphertext, and sends the configuration information ciphertext to the vehicle computer through the NFC connection with the vehicle computer, thereby improving the security of the configuration information ciphertext transmission process.

[0102] Step 470: The vehicle computer receives the ciphertext of the configuration information and decrypts it to obtain the original text of the configuration information.

[0103] The car computer receives the configuration information ciphertext through the NFC connection with the current mobile phone, decrypts the configuration information ciphertext, and obtains the original configuration information. Specifically, the corresponding decryption algorithm is set in the car computer in advance according to the encryption algorithm of the current mobile phone. When the car computer receives the configuration information ciphertext, the configuration information ciphertext is decrypted.

[0104] Step 480: The Wi-Fi in the vehicle connects to the current hotspot. The Wi-Fi in the vehicle automatically establishes a connection with the current hotspot based on the original configuration information obtained by decryption. If the Wi-Fi in the vehicle is connected to other hotspots, the configuration information of the connected hotspot is deleted, and the current hotspot is connected based on the original configuration information of the current hotspot.

[0105] Step 431: Whether the current hotspot is connected. Determine whether the name of the current hotspot is the same as the name of the hotspot connected to the Wi-Fi in the vehicle. If they are the same, the Wi-Fi in the vehicle has been connected to the current hotspot, that is, the judgment result is yes, and the process goes to step 433; if they are different, the Wi-Fi in the vehicle is not connected to the current hotspot, that is, the judgment result is no, and the process goes to step 432.

[0106] Step 432: Create the original text of the current hotspot configuration information. When the vehicle computer determines that the connection with the current hotspot is not established, the vehicle computer sends the judgment result to the current mobile phone through the NFC connection with the current mobile phone, instructing the current mobile phone to create the original text of the current hotspot configuration information. The specific operation and function are the same as the above step 440.

[0107] Step 433: disconnecting from the current hotspot. When the vehicle computer determines that a connection with the current hotspot has been established, the configuration information of the current hotspot is deleted and the connection with the current hotspot is automatically disconnected.

[0108] In the existing technology, the price of 4G / 5G traffic in car computers is high, which cannot bring into play its rich car networking functions. In contrast, the 4G / 5G traffic technology of mobile phones is relatively mature, and the cost of use is much lower than that of car computer traffic. Therefore, through hotspot connection, car computers can use the 4G / 5G traffic in mobile phones to bring into play the functions of car networking. However, the current hotspot connection of Wi-Fi in car computers to connect to mobile phones involves a series of cumbersome operation steps, including:

[0109] 1. Turn on the hotspot switch of the current mobile phone;

[0110] 2. Turn on the Wi-Fi switch in the car computer;

[0111] 3. Wait for the car's Wi-Fi to find a connectable hotspot and display it in the list of available Wi-Fi;

[0112] 4. The user manually selects the hotspot to connect to;

[0113] 5. Enter the corresponding connection password to complete the connection.

[0114] When the user leaves the in-car usage scenario, he or she may need to repeat the above steps when entering the in-car usage scenario again due to reasons such as restarting the phone or changing the settings by himself or herself. The above cumbersome steps are a process with extremely high interaction costs and major traffic hazards for vehicle driving scenarios, and are not suitable for vehicle driving scenarios.

[0115] This embodiment establishes NFC contact between the vehicle computer and the mobile phone to achieve automatic switching of the connection and disconnection states of the same hotspot, as well as automatic switching between different hotspots. The operation is simple, and hotspots can be switched quickly and accurately. The connection efficiency is high and the interaction cost is low, making it more suitable for vehicle driving scenarios.

[0116] Embodiment 5

[0117] Figure 5 The figure shows a schematic diagram of the structure of a hotspot connection control device provided by the fifth embodiment of the present invention. The fifth embodiment is a corresponding device for implementing the hotspot connection control method provided by the above embodiments of the present invention. The device can be implemented in software and / or hardware, and can generally be integrated in a computer device and executed by a vehicle computer. The hotspot connection control device includes:

[0118] The connection establishment module 510 is used to establish an NFC connection with the current mobile phone when the current mobile phone is in contact with the NFC area of ​​the vehicle computer;

[0119] A first working state determining module 520, used to determine the first working state of the Wi-Fi in the vehicle computer;

[0120] The second working state acquisition module 530 is used to acquire the second working state of the hotspot in the current mobile phone from the current mobile phone through the NFC connection;

[0121] The hotspot connection state determination module 540 is used to determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected;

[0122] The hotspot connection state switching module 550 is used to switch the hotspot connection state between the vehicle computer and the current mobile phone.

[0123] The technical solution of this embodiment is to establish a point-to-point connection between the current mobile phone and the vehicle computer by contacting the NFC area of ​​the current mobile phone with the vehicle computer, realize information interaction between the vehicle computer and the current mobile phone, improve information security, obtain the second working state of the hotspot in the current mobile phone through the NFC connection, determine the hotspot connection state between the vehicle computer and the current mobile phone according to the second working state and the first working state of the Wi-Fi obtained by the vehicle computer after establishing the NFC connection, and switch the hotspot connection state between the vehicle computer and the current mobile phone. During the whole process, the user only needs to touch the NFC area of ​​the vehicle computer with the current mobile phone, which is simple to operate and more suitable for vehicle driving scenarios. The communication between the vehicle computer and the current mobile phone can be quickly realized through the NFC connection, and the speed of the vehicle computer hotspot connection is improved. The problem of cumbersome operation, unsuitable for vehicle driving scenarios, and low hotspot connection efficiency when the vehicle computer connects to the mobile phone hotspot is solved, thereby achieving the effect of improving the efficiency of the vehicle computer connecting to the hotspot.

[0124] Optionally, the hotspot connection status determination module 540 includes:

[0125] A current hotspot connection judgment unit, used to judge whether the hotspot connected to the vehicle computer is the current hotspot if the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected;

[0126] A currently connected hotspot determining unit, used to determine that the hotspot connection state between the vehicle computer and the current mobile phone is a connected state if the hotspot connected to the vehicle computer is the current hotspot;

[0127] A current hotspot unconnected determination unit, used to determine that the hotspot connection state between the vehicle computer and the current mobile phone is unconnected if the hotspot connected to the vehicle computer is not the current hotspot;

[0128] The unconnected state determination unit is used to determine that the hotspot connection state between the vehicle computer and the current mobile phone is an unconnected state if any of the following items is met: the first working state is that the Wi-Fi in the vehicle computer is not turned on or not connected; the second working state is that the current hotspot in the current mobile phone is not turned on or not connected.

[0129] Optionally, the hotspot connection state switching module 550 includes:

[0130] A hotspot switching unit, used for disconnecting the hotspot connection between the vehicle computer and the current mobile phone and establishing a connection with the current hotspot in the current mobile phone if the hotspot connection status between the vehicle computer and the current mobile phone is not connected and the vehicle computer has established a connection with other hotspots in other mobile phones;

[0131] The current hotspot connection unit is used to establish a connection with the current hotspot in the current mobile phone if the hotspot connection status between the vehicle computer and the current mobile phone is not connected and the vehicle computer is not connected to other hotspots.

[0132] Optionally, the hotspot switching unit and the current hotspot connecting unit include:

[0133] The configuration information ciphertext acquisition subunit is used to obtain the configuration information ciphertext of the current hotspot from the current mobile phone through the NFC connection; the configuration information ciphertext of the current hotspot is obtained by encrypting the original configuration information of the current hotspot;

[0134] The configuration information ciphertext decryption subunit is used to decrypt the configuration information ciphertext of the current hotspot to obtain the original configuration information of the current hotspot;

[0135] The current hotspot connection establishment subunit is used to establish a connection with the current hotspot in the current mobile phone using the original configuration information of the current hotspot.

[0136] Optionally, the hotspot connection state switching module 550 includes:

[0137] The current hotspot disconnection module is used to disconnect the connection status between the current hotspot in the current mobile phone if the hotspot connection status between the vehicle computer and the current mobile phone is connected.

[0138] The above-mentioned device can execute the control method of hotspot connection provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the control method of hotspot connection.

[0139] Embodiment 6

[0140] Figure 6 The figure shows a schematic diagram of the structure of a hotspot connection control device provided by the sixth embodiment of the present invention. The sixth embodiment is a corresponding device for implementing the hotspot connection control method provided by the above embodiments of the present invention. The device can be implemented in software and / or hardware, and can generally be integrated in a computer device and executed by a mobile phone. The hotspot connection control device includes:

[0141] The connection establishment module 610 is used to establish an NFC connection between the mobile phone and the vehicle computer when the mobile phone is in contact with the NFC area of ​​the vehicle computer;

[0142] The second working state determining module 620 is used to determine the second working state of the hotspot in the current mobile phone;

[0143] The second working state sending module 630 is used to send the second working state of the hotspot in the current mobile phone to the vehicle computer through NFC connection, and is used to instruct the vehicle computer to execute the following: determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; and switch the hotspot connection state between the vehicle computer and the current mobile phone.

[0144] The technical solution of this embodiment, by establishing an NFC connection between the current mobile phone and the vehicle computer when the NFC area of ​​the vehicle computer is in contact, can establish point-to-point communication between the mobile phone and the vehicle computer, thereby improving the communication rate and security. After the NFC connection is established, the second working state is determined and sent to the vehicle computer through the NFC connection. The vehicle computer obtains the second working state through the NFC connection, and quickly determines the hotspot connection state in combination with the first working state, and switches the hotspot connection state, thereby reducing the interaction between the user and the mobile phone and improving the hotspot connection efficiency.

[0145] Optionally, the hotspot connection control device also includes:

[0146] The configuration information original text encryption module is used to encrypt the configuration information original text of the current hotspot to obtain the configuration information ciphertext of the current hotspot if the hotspot connection status between the vehicle computer and the current mobile phone is not connected;

[0147] The configuration information ciphertext sending module is used to send the configuration information ciphertext of the current hotspot to the vehicle computer through the NFC connection, and is used to instruct the vehicle computer to execute the following: obtain the configuration information ciphertext of the current hotspot from the current mobile phone through the NFC connection; decrypt the configuration information ciphertext of the current hotspot to obtain the original configuration information of the current hotspot; use the original configuration information of the current hotspot to establish a connection with the current hotspot in the current mobile phone.

[0148] The above-mentioned device can execute the control method of hotspot connection provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the control method of hotspot connection.

[0149] Embodiment 7

[0150] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 7 of the present invention is shown in FIG. Figure 7 As shown, the computer device includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of processors 710 in the computer device can be one or more. Figure 7 A processor 710 is taken as an example; the processor 710, memory 720, input device 730 and output device 740 in the computer device can be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0151] The memory 720, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the hotspot connection control method in the embodiment of the present invention (for example, the connection establishment module 510, the first working state determination module 520, the second working state acquisition module 530, the hotspot connection state determination module 540 and the hotspot connection state switching module 550). The processor 710 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 720, that is, realizes the above-mentioned hotspot connection control method.

[0152] The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0153] The input device 730 may be used to receive input character information and generate key signal input related to user settings and function control of the computer device. The output device 740 may include a display device such as a display screen.

[0154] Embodiment 8

[0155] Embodiment 8 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a hotspot connection control method when executed by a computer processor, the method comprising (executed by a vehicle computer):

[0156] When the current mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established between the current mobile phone and the vehicle computer;

[0157] Determine the first working state of the Wi-Fi in the vehicle computer;

[0158] The second working state of the hotspot in the current mobile phone is obtained from the current mobile phone through the NFC connection;

[0159] Determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected;

[0160] Switch the hotspot connection status between the vehicle computer and the current mobile phone.

[0161] The method also includes (performed by the mobile phone):

[0162] When the mobile phone is in contact with the NFC area of ​​the vehicle, an NFC connection is established between the mobile phone and the vehicle.

[0163] Determine the second working state of the hotspot in the current mobile phone;

[0164] Through NFC connection, the second working state of the hotspot in the current mobile phone is sent to the vehicle computer, which is used to instruct the vehicle computer to execute the following: determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; switch the hotspot connection state between the vehicle computer and the current mobile phone.

[0165] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method operations described above, and can also execute related operations in the hotspot connection control method provided by any embodiment of the present invention.

[0166] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0167] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0168] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for controlling hotspot connection, characterized in that: The method comprises: When the current mobile phone is in contact with the NFC area of ​​the vehicle computer, an NFC connection is established between the current mobile phone and the vehicle computer; Determine a first working state of Wi-Fi in the vehicle computer; wherein the first working state includes whether Wi-Fi is turned on and whether Wi-Fi is connected to a hotspot signal; Acquire, from the current mobile phone, a second working state of the hotspot in the current mobile phone through the NFC connection; wherein the second working state includes whether the hotspot is turned on and whether the hotspot is connected; Determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; Switching the hotspot connection state between the vehicle computer and the current mobile phone; Wherein, determining the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state includes: If the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected, then determine whether the hotspot connected to the vehicle computer is the current hotspot; If the hotspot connected to the vehicle computer is the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a connected state; If the hotspot connected to the vehicle computer is not the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a disconnected state; If any of the following conditions is met, it is determined that the hotspot connection state between the vehicle computer and the current mobile phone is not connected, the first working state is that the Wi-Fi in the vehicle computer is not turned on or is not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or is not connected; The switching of the hotspot connection state between the vehicle computer and the current mobile phone includes: If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer has established a connection with other hotspots in other mobile phones, disconnect the connection with the other hotspots and establish a connection with the current hotspot in the current mobile phone; If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer is not connected to other hotspots, a connection with the current hotspot in the current mobile phone is established.

2. The method according to claim 1, characterized in that The establishing of a connection with the current hotspot in the current mobile phone includes: Acquire the ciphertext of the configuration information of the current hotspot from the current mobile phone through the NFC connection; the ciphertext of the configuration information of the current hotspot is obtained by encrypting the original text of the configuration information of the current hotspot; Decrypting the ciphertext of the configuration information of the current hotspot to obtain the original text of the configuration information of the current hotspot; The original configuration information of the current hotspot is used to establish a connection with the current hotspot in the current mobile phone.

3. The method according to claim 1, characterized in that The switching of the hotspot connection state between the vehicle computer and the current mobile phone also includes: If the hotspot connection status between the vehicle computer and the current mobile phone is connected, the connection status with the current hotspot in the current mobile phone is disconnected.

4. A method for controlling hotspot connection, characterized in that: The method comprises: When the mobile phone is in contact with the NFC area of ​​the vehicle, an NFC connection is established between the mobile phone and the vehicle. Determine the second working state of the hotspot in the current mobile phone; wherein the second working state includes whether the hotspot is turned on and whether the hotspot is connected; Through the NFC connection, the second working state of the hotspot in the current mobile phone is sent to the vehicle computer, which is used to instruct the vehicle computer to perform the following: determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; switch the hotspot connection state between the vehicle computer and the current mobile phone; wherein the first working state includes whether Wi-Fi is turned on and whether Wi-Fi is connected to a hotspot signal; Wherein, determining the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state includes: If the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected, then determine whether the hotspot connected to the vehicle computer is the current hotspot; If the hotspot connected to the vehicle computer is the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a connected state; If the hotspot connected to the vehicle computer is not the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a disconnected state; If any of the following conditions is met, it is determined that the hotspot connection state between the vehicle computer and the current mobile phone is not connected, the first working state is that the Wi-Fi in the vehicle computer is not turned on or is not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or is not connected; Wherein, the switching of the hotspot connection state between the vehicle computer and the current mobile phone includes: If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer has established a connection with other hotspots in other mobile phones, disconnect the connection with the other hotspots and establish a connection with the current hotspot in the current mobile phone; If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer is not connected to other hotspots, a connection with the current hotspot in the current mobile phone is established.

5. The method according to claim 4, characterized in that After the second working state of the hotspot in the current mobile phone is sent to the vehicle computer through the NFC connection, the method further includes: If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, encrypting the original text of the configuration information of the current hotspot to obtain the ciphertext of the configuration information of the current hotspot; Through the NFC connection, the configuration information ciphertext of the current hotspot is sent to the vehicle computer, which is used to instruct the vehicle computer to execute the following: through the NFC connection, the configuration information ciphertext of the current hotspot is obtained from the current mobile phone; the configuration information ciphertext of the current hotspot is decrypted to obtain the original configuration information of the current hotspot; and the original configuration information of the current hotspot is used to establish a connection with the current hotspot in the current mobile phone.

6. A hotspot connection control device, characterized in that: include: A connection establishment module, used to establish an NFC connection with the current mobile phone when the current mobile phone is in contact with the NFC area of ​​the vehicle computer; A first working state determination module, used to determine the first working state of the Wi-Fi in the vehicle computer; wherein the first working state includes whether the Wi-Fi is turned on and whether the Wi-Fi is connected to a hotspot signal; A second working state acquisition module, which acquires the second working state of the hotspot in the current mobile phone from the current mobile phone through NFC connection; wherein the second working state includes whether the hotspot is turned on and whether the hotspot is connected; A hotspot connection state determination module, used to determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; A hotspot connection state switching module is used to switch the hotspot connection state between the vehicle computer and the current mobile phone; The hotspot connection status determination module includes: A current hotspot connection judgment unit, configured to judge whether the hotspot connected to the vehicle computer is the current hotspot if the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected; A currently connected hotspot determining unit, configured to determine that the hotspot connection state between the vehicle computer and the current mobile phone is a connected state if the hotspot connected to the vehicle computer is the current hotspot; A current hotspot unconnected determination unit, configured to determine that the hotspot connection state between the vehicle computer and the current mobile phone is an unconnected state if the hotspot connected to the vehicle computer is not the current hotspot; An unconnected state determination unit, configured to determine that the hotspot connection state between the vehicle computer and the current mobile phone is an unconnected state if any of the following conditions is met, wherein the first working state is that the Wi-Fi in the vehicle computer is not turned on or is not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or is not connected; The hotspot connection state switching module includes: A hotspot switching unit, configured to disconnect the connection with other hotspots and establish a connection with the current hotspot in the current mobile phone if the hotspot connection state between the vehicle computer and the current mobile phone is not connected and the vehicle computer has established a connection with other hotspots in other mobile phones; The current hotspot connection unit is used to establish a connection with the current hotspot in the current mobile phone if the hotspot connection status between the vehicle computer and the current mobile phone is not connected and the vehicle computer is not connected to other hotspots.

7. A control device for hotspot connection, characterized in that: include: The connection establishment module is used to establish an NFC connection between the mobile phone and the vehicle computer when the mobile phone and the vehicle computer are in contact with each other. A second working state determination module, used to determine the second working state of the hotspot in the current mobile phone; wherein the second working state includes whether the hotspot is turned on and whether the hotspot is connected; The second working state sending module is used to send the second working state of the hotspot in the current mobile phone to the vehicle computer through NFC connection, and is used to instruct the vehicle computer to perform the following: determine the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state; the hotspot connection state is connected or not connected; switch the hotspot connection state between the vehicle computer and the current mobile phone; wherein the first working state includes whether Wi-Fi is turned on and whether Wi-Fi is connected to a hotspot signal; Wherein, determining the hotspot connection state between the vehicle computer and the current mobile phone according to the first working state and the second working state includes: If the first working state is that the Wi-Fi in the vehicle computer is turned on and connected, and the second working state is that the current hotspot in the current mobile phone is turned on and connected, then determine whether the hotspot connected to the vehicle computer is the current hotspot; If the hotspot connected to the vehicle computer is the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a connected state; If the hotspot connected to the vehicle computer is not the current hotspot, determining that the hotspot connection state between the vehicle computer and the current mobile phone is a disconnected state; If any of the following conditions is met, it is determined that the hotspot connection state between the vehicle computer and the current mobile phone is not connected, the first working state is that the Wi-Fi in the vehicle computer is not turned on or is not connected, and the second working state is that the current hotspot in the current mobile phone is not turned on or is not connected; Wherein, the switching of the hotspot connection state between the vehicle computer and the current mobile phone includes: If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer has established a connection with other hotspots in other mobile phones, disconnect the connection with the other hotspots and establish a connection with the current hotspot in the current mobile phone; If the hotspot connection status between the vehicle computer and the current mobile phone is not connected, and the vehicle computer is not connected to other hotspots, a connection with the current hotspot in the current mobile phone is established.

8. A computer device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the hotspot connection control method as described in any one of claims 1-5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a hotspot connection control method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Network sharing method, device and computer storage medium

    CN112866961A