CN117241243A - WiFi connection method and device, electronic equipment and storage medium - Google Patents
WiFi connection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117241243A CN117241243A CN202311178600.2A CN202311178600A CN117241243A CN 117241243 A CN117241243 A CN 117241243A CN 202311178600 A CN202311178600 A CN 202311178600A CN 117241243 A CN117241243 A CN 117241243A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- electronic device
- wifi
- event
- electronic equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 230000001960 triggered effect Effects 0.000 claims abstract description 27
- 238000004891 communication Methods 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 14
- 230000001976 improved effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000001939 inductive effect Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
The application discloses a WiFi connection method, a WiFi connection device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: acquiring a first event, wherein the first event is triggered by a user through electronic equipment or triggered by the user through a vehicle; according to a first event, determining a first vehicle control scene matched with the first event, wherein the first vehicle control scene at least comprises a WIFI connection request based on a vehicle and a WIFI connection established between the vehicle under the condition that the wireless fidelity WIFI connection is not established between the vehicle and the electronic equipment; and executing the operation corresponding to the first vehicle control scene.
Description
Technical Field
The application belongs to the technical field of communication, and particularly relates to a WiFi connection method, a WiFi connection device, electronic equipment and a storage medium.
Background
Currently, users may connect with the vehicle through an electronic device, such as wireless fidelity (Wireless Fidelity, wiFi) that connects the electronic device with the vehicle. In the related art, a user may turn on WiFi in an electronic device and WiFi in a vehicle after getting on a vehicle, so that WiFi in the electronic device may be connected with WiFi in the vehicle.
However, in the above method, the WiFi process of the WiFi connection vehicle of the electronic device is complicated and cumbersome, resulting in poor efficiency of the WiFi connection vehicle in the electronic device.
Disclosure of Invention
The embodiment of the application aims to provide a WiFi connection method, a WiFi connection device, electronic equipment and a storage medium, which can improve the WiFi connection efficiency of WiFi in a vehicle in the electronic equipment.
In a first aspect, an embodiment of the present application provides a WiFi connection method, where the WiFi connection method includes: acquiring a first event, wherein the first event is triggered by a user through electronic equipment or triggered by the user through a vehicle; according to a first event, determining a first vehicle control scene matched with the first event, wherein the first vehicle control scene at least comprises a WIFI connection request based on a vehicle and a WIFI connection established between the vehicle and the electronic equipment under the condition that the wireless fidelity WIFI connection is not established between the vehicle and the electronic equipment; and executing the operation corresponding to the first vehicle control scene.
In a second aspect, an embodiment of the present application provides a WiFi connection device, including: the device comprises an acquisition module, a determination module and an execution module. The acquisition module is used for acquiring a first event, wherein the first event is triggered by a user through the electronic equipment or triggered by the user through the vehicle. The determining module is configured to determine, according to the first event acquired by the acquiring module, a first vehicle control scene that matches the first event, where the first vehicle control scene at least includes a WIFI connection request based on the vehicle and establishes a WIFI connection with the vehicle when no WIFI connection is established between the vehicle and the electronic device. And the execution module is used for executing the operation corresponding to the first vehicle control scene determined by the determination module.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the electronic device can acquire a first event, wherein the first event is triggered by a user through the electronic device or triggered by the user through a vehicle; according to the first event, determining a first vehicle control scene matched with the first event, wherein the first vehicle control scene at least comprises a WIFI connection request based on the vehicle and a WIFI connection established between the vehicle under the condition that the wireless fidelity WIFI connection is not established between the vehicle and the electronic equipment; and the electronic device may further execute an operation corresponding to the first vehicle control scene. In the scheme, because the electronic device can preset the association relationship between the first event and the first vehicle control scene, after the electronic device acquires the first event, the electronic device can automatically execute the operation corresponding to the first vehicle control scene according to the first vehicle control scene corresponding to the first event, that is, the electronic device can automatically establish connection between WiFi in the electronic device and WiFi in the vehicle through the first event, so that the process that the electronic device needs to manually connect the WiFi in the vehicle is simplified, and the efficiency of connecting the WiFi in the electronic device with the WiFi in the vehicle is improved.
Drawings
Fig. 1 is one of flowcharts of a WiFi connection method provided in an embodiment of the present application;
FIG. 2 is a second flowchart of a WiFi connection method according to an embodiment of the application;
fig. 3 is one of interaction diagrams of a WiFi connection method provided by an embodiment of the present application;
fig. 4 is a third flowchart of a WiFi connection method according to an embodiment of the present application;
FIG. 5 is a second interaction diagram of a WiFi connection method according to an embodiment of the application;
fig. 6 is a flowchart of a WiFi connection method according to an embodiment of the present application;
fig. 7 is a flowchart of a WiFi connection method according to an embodiment of the present application;
fig. 8 is a flowchart of a WiFi connection method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a WiFi connection device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 11 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims, mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
The method, the device, the electronic equipment and the storage medium for WiFi connection provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The WiFi connection method, the WiFi connection device, the electronic equipment and the storage medium can be applied to a WiFi connection scene of a vehicle.
With the rapid development of intelligence and the internet, functions in electronic devices are increasing, for example, the electronic devices can control vehicles. In the related art, the current manner of connecting to the WiFi of the vehicle by using the electronic device mainly includes the following two ways:
1) The user may make a vehicle WiFi connection by using a vehicle application in the electronic device. For example, when a user needs to connect to the WiFi of the vehicle through the electronic device, the user may unlock the electronic device first, so that the electronic device may display an application icon interface, i.e. a desktop; the user can perform sliding input on the desktop, so that the electronic device can update the application icons displayed in the desktop, and further display the application icons corresponding to the vehicle application programs, which are hereinafter referred to as first application icons; the user can click and input the first application icon, so that the electronic equipment can start an application program corresponding to the first application icon, and the application program is called as a first application program for short; the user may determine a vehicle control function, such as a WiFi connection function, from the first application program, and then click input the vehicle control function, so that the electronic device may control the vehicle based on the control function. Thus, the electronic device can complete the WiFi connection process through the 5 steps.
2) The user may make a WiFi connection by shaking the electronic device, for example with a vehicle. For example, a user may set an acceleration sensor in the electronic device, which may be used to detect the direction, angle and speed of the electronic device during movement. Then, the electronic equipment can judge the intention of the user based on the direction, the angle and the speed, and send a corresponding control signal to the vehicle end; the vehicle end may include a controller and an actuator; if the electronic equipment is located within the preset effective operation distance, the controller sends a corresponding control instruction to a corresponding actuator based on the control signal, if the control instruction is an opening instruction, the actuator is opened, and if the control instruction is a closing instruction, the actuator is closed. Thus, the electronic device can complete the WiFi connection process by shaking the electronic device by the user.
However, for the first mode, when the electronic device performs WiFi connection through the vehicle application program, the WiFi connection step needs at least 5 steps or more, which results in complicated operation steps of performing WiFi connection on the electronic device, which is not convenient enough. Aiming at the second mode, when WiFi connection is performed through shaking the electronic equipment, one-to-one simple control can be realized, and complex scenes or personalized vehicle control requirements cannot be met, for example: because the vehicle-mounted traffic is expensive, after a user needs to unlock the vehicle door, the vehicle-mounted traffic can automatically connect with a hot spot in the electronic device, and the process is completed by triggering a series of ordered interaction events between the electronic device and the vehicle-mounted traffic through a single instruction, which comprises the following steps: the mobile phone is swung, the main driving door is unlocked, the personal hot spot is opened by the mobile phone, the car is electrified, the WIFI of the mobile phone is connected, and the electronic equipment cannot meet the requirements of users in the second mode.
In the WiFi connection method, the device, the electronic device and the storage medium provided in the embodiments of the present application, because the electronic device may preset an association relationship between the first event and the first control scene, after the electronic device obtains the first event, the electronic device may automatically execute the operation corresponding to the first control scene according to the first control scene corresponding to the first event, that is, the electronic device may automatically connect the WiFi in the electronic device with the WiFi in the vehicle through the first event, which simplifies a process that the electronic device needs to manually connect the WiFi in the vehicle, and thus improves the efficiency of connecting the WiFi in the vehicle with the WiFi in the electronic device.
The implementation main body of the WiFi connection method provided in the embodiment of the present application may be a WiFi connection device, and the WiFi connection device may be an electronic device or a functional module in the electronic device. The technical solution provided by the embodiment of the present application is described below by taking an electronic device as an example.
The embodiment of the application provides a WiFi connection method, and fig. 1 shows a flow chart of the WiFi connection method provided by the embodiment of the application. As shown in fig. 1, the WiFi connection method provided by the embodiment of the present application may include the following steps 201 to 203.
Step 201, the electronic device obtains a first event.
In the embodiment of the present application, the first event is an event triggered by a user through an electronic device or triggered by a user through a vehicle.
In the embodiment of the application, the electronic equipment can determine the first vehicle control scene matched with the first event through the first event triggered by the user, and then automatically execute the first vehicle control scene so as to realize convenient control of the vehicle.
Optionally, in an embodiment of the present application, the first event may be unlocking the vehicle by the user through the electronic device; alternatively, the first event may be a user opening an application in the vehicle through the vehicle.
Optionally, in the embodiment of the present application, the unlocking the vehicle by the user through the electronic device may be any one of the following: the user unlocks the vehicle through a bluetooth module in the electronic device, the user unlocks the vehicle through a wireless fidelity (Wireless Fidelity, WIFI) module in the electronic device, or the user unlocks the vehicle through a near field wireless communication (Near Field Communication, NFC) module in the electronic device.
For example, the unlocking of the vehicle by the user through the bluetooth module in the electronic device may be: under the condition that Bluetooth in the electronic equipment is connected with Bluetooth in the vehicle, a user can click and input a vehicle unlocking control in a vehicle application program, so that the electronic equipment can send an unlocking message to the vehicle through Bluetooth to control the vehicle to unlock.
Also for example, the unlocking the vehicle by the user through the WIFI module in the electronic device may be: under the condition that the WIFI in the electronic equipment is connected with the WIFI in the vehicle, a user can click and input the vehicle unlocking control in the vehicle application program, so that the electronic equipment can send an unlocking message to the vehicle through the WIFI to control the vehicle to unlock.
Also exemplary, the user unlocks the vehicle via an NFC module in the electronic device: the electronic device may include an NFC module, so that when the electronic device approaches the vehicle, the electronic device may unlock the vehicle through the NFC module.
Optionally, in the embodiment of the present application, before the electronic device unlocks the vehicle through the NFC module, the user may set an association relationship between the NFC module and the vehicle, so when the electronic device approaches the vehicle, the electronic device may unlock the vehicle through the NFC module.
Optionally, in the embodiment of the present application, the user opening the application in the vehicle through the vehicle may be: the vehicle may include an in-vehicle electronic device, and the user may perform click input on an application icon displayed on a screen of the in-vehicle electronic device, so that the in-vehicle electronic device may launch an application corresponding to the application icon selected by the user.
Alternatively, in the embodiment of the present application, the application type of the application may be any application type. For example, a music class application type, a game class application type, or a video class application type; preferably, the application type of the application may be a music type application type.
Step 202, the electronic device determines a first vehicle control scene matched with the first event according to the first event.
In the embodiment of the application, the vehicle control scene is used for indicating the electronic equipment to control the execution of the vehicle, and the first vehicle control scene at least comprises the establishment of the WIFI connection with the vehicle based on the WIFI connection request of the vehicle under the condition that the wireless fidelity WIFI connection is not established between the vehicle and the electronic equipment.
In the embodiment of the application, after the electronic device acquires the first event, the electronic device may determine the first vehicle control scene from the N vehicle control scenes according to the corresponding relationship between the first vehicle control scene and the first event, where N is a positive integer.
For example, the electronic device may traverse the vehicle control scene matching the matching item among the N vehicle control scenes using the first event as the matching item, so that the first vehicle control scene may be determined from the N vehicle control scenes.
Optionally, in the embodiment of the present application, the N vehicle control scenes may be stored in a hard disk or a cache of the electronic device; alternatively, the N vehicle control scenes may be stored in the server.
Optionally, in the embodiment of the present application, the N vehicle control scenes may be preset by an electronic device; or, customized for the user.
Optionally, in the embodiment of the present application, a correspondence between the first vehicle control scene and the first event may be preset by the electronic device; or, customized for the user.
Optionally, in an embodiment of the present application, the N vehicle control scenarios may include at least one of the following: when the system time of the vehicle reaches the appointed time, the electronic equipment indicates the vehicle to automatically drive to the appointed position; the electronic equipment instructs the vehicle to start a music playing mode; the electronic device instructs the vehicle to turn on the driving mode, etc.
It should be noted that, for the N vehicle control scenes, the first event corresponding to each of the N vehicle control scenes is different, that is, the electronic device may control the vehicle to execute different vehicle control scenes through different triggering events.
For example, assuming that the first event is that the user taps the back N of the electronic device, the car control scene matching the first event may be that a trunk of the car is opened.
For example, the user creates a car control scene in the car control module, sets a scene name, such as: the mobile phone wifi is connected by timing to send out and get in duty and drive in a non-inductive mode, one key enters a K song mode and one key enters a driving mode. Then, trigger conditions are selected, two types: 1. triggering a mobile phone shortcut instruction, including shaking the mobile phone, tapping the back n of the mobile phone, clicking the screen n, pressing a combination key for n seconds for a long time, a voice instruction and the like; 2. the event triggering comprises a mobile phone key unlocking event, a mobile phone departure event, a mobile phone clock event, a mobile phone alarm clock event, a mobile phone schedule event and the like. And finally, adding a vehicle control instruction, wherein the vehicle control instruction comprises the steps of reserving and starting an air conditioner, reserving seat heating, checking vehicle information (position, oil quantity, electric quantity and health state), unlocking a vehicle door, locking the vehicle door, opening a trunk, connecting a mobile phone hot spot, navigating to a schedule destination, entering a driving mode, entering a K song mode, automatically driving to a designated position, automatically parking and the like.
Step 203, the electronic device executes an operation corresponding to the first vehicle control scene.
In the embodiment of the application, after the electronic device determines the first vehicle control scene, the electronic device may send a target message to the vehicle, where the target message is used to instruct the vehicle to execute an operation corresponding to the first vehicle control scene.
Optionally, in the embodiment of the present application, the electronic device may send the target message to the vehicle through WIFI or bluetooth, so as to execute an operation corresponding to the first vehicle control scenario.
It should be noted that, before the electronic device executes the first vehicle control scene, the electronic device may send the operation corresponding to the first vehicle control scene to the vehicle server, and then the vehicle server may send the operation corresponding to the first vehicle control scene to the vehicle-mounted electronic device of the vehicle, so that after the vehicle receives the target message, the vehicle may execute the operation corresponding to the first vehicle control scene according to the target message.
Optionally, in the embodiment of the present application, the electronic device may send the operations corresponding to the N vehicle control scenes to the vehicle server, and then the vehicle server may sequentially send the N vehicle control scenes to the vehicle-mounted electronic device of the vehicle, so that the vehicle may execute the operations corresponding to the corresponding first vehicle control scenes according to different first events.
In the WiFi connection method provided in the embodiment of the present application, the electronic device may acquire a first event, where the first event is triggered by the user through the electronic device or is triggered by the user through the vehicle; according to the first event, a first vehicle control scene matched with the first event is determined, the first vehicle control scene at least comprises a WIFI connection request based on the vehicle when wireless fidelity (WIFI) connection is not established between the vehicle and the electronic equipment, the WIFI connection is established between the vehicle and the electronic equipment, and the electronic equipment can execute the first vehicle control scene. In the scheme, because the electronic device can preset the association relationship between the first event and the first vehicle control scene, after the electronic device acquires the first event, the electronic device can automatically execute the operation corresponding to the first vehicle control scene according to the first vehicle control scene corresponding to the first event, that is, the electronic device can automatically establish connection between WiFi in the electronic device and WiFi in the vehicle through the first event, so that the process that the electronic device needs to manually connect the WiFi in the vehicle is simplified, and the efficiency of connecting the WiFi in the electronic device with the WiFi in the vehicle is improved.
Optionally, in an embodiment of the present application, referring to fig. 1, as shown in fig. 2, the first event is that a user unlocks the vehicle through the electronic device; the above step 203 may be specifically implemented by steps 301 to 303 described below.
Step 301, the electronic device sends a first message to the vehicle.
In the embodiment of the present application, the first message is used to indicate that WIFI in the electronic device is in a connectable state.
In the embodiment of the application, after the electronic device determines the first vehicle control scene, the electronic device can send the first message to the vehicle, so that the vehicle can execute the first vehicle control scene after receiving the first message.
Alternatively, in the embodiment of the present application, the first message may be sent to the vehicle in a broadcast manner.
For example, after the electronic device successfully unlocks the vehicle through the NFC module, the electronic device may control the NFC module to send a first message to the vehicle in a broadcast manner, so that the vehicle performs an operation corresponding to the first vehicle control scenario after hearing the first message.
Optionally, in the embodiment of the present application, after the electronic device sends the first message to the vehicle, the electronic device may automatically turn on WIFI in the electronic device.
After the electronic device sends the first message to the vehicle, if the electronic device detects that the WIFI in the electronic device is in a closed state, the WIFI is automatically turned on; if the electronic equipment detects that the WIFI in the electronic equipment is in the on state, the current on state is maintained.
Step 302, the electronic device receives a second message sent by the vehicle.
In the embodiment of the application, the second message is sent by the vehicle in the starting state when the vehicle detects that the electronic device is in the vehicle and the WIFI of the electronic device is in the connectable state, and the second message is used for requesting to establish the WIFI connection.
In the embodiment of the application, after the vehicle receives the first message, the vehicle can judge that the electronic device is in the vehicle, and send the second message to the electronic device under the condition that the WIFI of the electronic device is in a connectable state, so that the electronic device can receive the second message sent by the vehicle.
Optionally, in an embodiment of the present application, the second message may be received by the electronic device through an NFC module; or received by the electronic device through the vehicle server.
Illustratively, the receiving, by the electronic device, the second message through the vehicle server may be: and under the condition that the vehicle determines that the electronic device is in the vehicle and determines that the WIFI of the electronic device is in a connectable state, the vehicle can send a second message to the vehicle server, then the vehicle server sends the second message to the server of the electronic device after receiving the second message, and finally the server of the electronic device sends the second message to the electronic device, so that the electronic device can receive the second message sent by the vehicle.
Step 303, the electronic device establishes a WIFI connection between the vehicle and the electronic device according to the second message.
In the embodiment of the application, after the electronic device receives the message requesting to establish the WIFI, the electronic device can establish the WIFI connection between the vehicle and the electronic device under the condition that the WIFI is in an idle state.
It should be noted that, when the WIFI is in the idle state, the WIFI in the electronic device is not connected to other electronic devices.
Optionally, in the embodiment of the present application, in the case that the electronic device includes two WIFI modules, the electronic device may select any one of the two WIFI modules to perform WIFI connection with the vehicle.
The case where the electronic device includes two WIFI modules is explained in four different manners below.
In the mode 1, when two WIFI modules are in an idle state, the electronic device may select any one of the WIFI modules to perform WIFI connection with the vehicle.
Mode 2, other electronic equipment has been connected to one WIFI in two WIFI modules, and electronic equipment can carry out the WIFI with another WIFI in two WIFI modules and vehicle and be connected.
Mode 3, under the condition that two WIFI modules are connected with other electronic equipment, the electronic equipment can automatically disconnect any one of the WIFI modules to be connected with the vehicle.
Mode 4, under the condition that two WIFI modules are connected with other electronic equipment, the electronic equipment can wait for one WIFI, is called first WIFI for short below, is disconnected with other electronic equipment, and then is connected with the vehicle through the first WIFI.
Optionally, in the embodiment of the present application, after the vehicle is changed from the start state to the power-off state or the vehicle detects that the electronic device is off, the vehicle-mounted electronic device in the vehicle may automatically disconnect the WIFI connection, and the electronic device may control the on-off state of the WIFI in the electronic device to return to the state before the vehicle.
By way of example, as shown in fig. 3, a specific explanation will be given below of a case where the electronic device controls the vehicle to execute the first vehicle control scene "in the case where the above-described first event is that the user unlocks the vehicle through the electronic device, through interaction between the specific electronic device and the vehicle. In particular, steps 20 to 24 can be implemented.
Step 20, the electronic device sends a first message to the vehicle.
In the embodiment of the application, the first message is used for indicating the electronic equipment to unlock the vehicle successfully.
Step 21, the vehicle receives a first message.
In the embodiment of the application, after the vehicle receives the first message, the vehicle can determine that the electronic device is in the vehicle through the received signal strength indication (Received Signal Strength Indication, RSSI), and the vehicle-mounted electronic device in the vehicle can start WIFI so as to scan that the WIFI of the electronic device is in a connectable state.
Step 22, the vehicle sends a second message to the electronic device.
In the embodiment of the present application, the second message is a request for establishing WIFI connection with the electronic device for the vehicle.
Step 23, the electronic equipment receives the second message sent by the vehicle.
In the embodiment of the application, the second message is sent by the vehicle in the starting state when the vehicle detects that the electronic device is in the vehicle and the WIFI of the electronic device is in the connectable state.
And step 24, the electronic equipment establishes WIFI connection between the vehicle and the electronic equipment according to the second message.
Also, as an example, a specific explanation will be given below of the case where the electronic device controls the vehicle to execute the first vehicle control scenario "in the case where the above-described first event is that the user unlocks the vehicle through the electronic device, by way of a specific example. Specifically, the steps S20 to S26 are performed.
Step S20, a user firstly sets a scene instruction in the vehicle control module, and a new scene is created.
Wherein, set up scene name as: the wireless fidelity (WIFI) of the mobile phone is connected without sense, and the selection triggering conditions are as follows: event triggering, event selection is successful in unlocking a mobile phone NFC car key, then a car control instruction is added to connect a mobile phone WIFI, the car control module judges the number of the mobile phone NFC car keys which are opened by the car, if the number is more than or equal to 1, the car control module prompts ' creation completion ', otherwise prompts ' creation failure, the car does not temporarily open the mobile phone NFC key-! ".
Step S21: after the electronic equipment unlocks the vehicle door through the NFC vehicle key, the vehicle control module monitors that the vehicle key sent by the NFC sensor is successfully broadcast in unlocking, the vehicle control scene to be executed is matched according to the unlocking event, then, the vehicle control scene matched with the unlocking event is started to be executed, meanwhile, a user is prompted to be in operation in a WIFI scene of the noninductive connection mobile phone, and the user can also select to terminate the process.
Step S22: the electronic equipment judges whether the personal hot spot switch state is on, if not, the personal hot spot is automatically started, and the periodic broadcast is sent to wait for the connection of the vehicle and the machine.
Step S23: after the vehicle door is unlocked, an electronic control unit (Electronic Control Unit, ECU) in the vehicle door control sends an unlocking notification to the vehicle-mounted electronic device.
Step S24: and the vehicle-mounted electronic equipment judges whether the vehicle is electrified and whether the mobile phone is in the vehicle, if so, the WIFI of the mobile phone is actively connected, and if the connection fails, the connection is continued at intervals of 3 seconds until the connection is successful.
Step S25: after the WIFI of the vehicle-mounted electronic equipment is successfully connected with the WIFI of the electronic equipment, the user is prompted to 'successful connection of the vehicle and the machine to the mobile phone WIFI'! At this time, the operation of the WIFI scene of the noninductive connection mobile phone is completed.
Step S26: after the vehicle is powered off or the mobile phone is away from the vehicle, the vehicle-mounted electronic equipment can automatically disconnect the WIFI connection and the switching state of the WIFI in the electronic equipment is restored to the state before the vehicle.
According to the embodiment of the application, the electronic equipment can realize the non-inductive connection of the vehicle to the WIFI scene of the electronic equipment by unlocking the door event, and the WIFI in the electronic equipment is required to be started manually after a user enters the vehicle, and the WIFI connection can be established between the vehicle and the electronic equipment after the WIFI in the vehicle-mounted electronic equipment is started manually, so that the process of connecting the electronic equipment to the vehicle-mounted WIFI is simplified, and the efficiency of connecting the electronic equipment to the WiFi is improved.
Optionally, in an embodiment of the present application, referring to fig. 1, as shown in fig. 4, the event triggered by the user through the vehicle is specifically that the user opens an application in the vehicle through the vehicle; the above step 203 may be specifically implemented by steps 401 to 404 described below.
Step 401, sending a query message to the vehicle under the condition that the electronic device establishes Bluetooth connection with the vehicle.
In the embodiment of the application, the query message is used for requesting to query whether the electronic device is in the vehicle.
It can be appreciated that the electronic device may query the vehicle via bluetooth whether the electronic device is located in the vehicle, so that after the vehicle receives the query message, the vehicle may determine that the electronic device is in the vehicle via the RSSI described above, and send the query result to the electronic device.
Step 402, the electronic device receives a query result sent by the vehicle, and starts the WIFI of the electronic device to be in a connectable state according to the query result.
In the embodiment of the application, the query result is used for indicating that the electronic equipment is in the vehicle.
In the embodiment of the application, the electronic equipment can receive the inquiry result sent by the vehicle through Bluetooth.
It can be understood that when the electronic device determines that the electronic device is located in the vehicle, the electronic device can turn on the connection state of the WIFI to a connectable state, so as to save energy consumption of the electronic device.
Step 403, the electronic device sends a third message to the vehicle.
In the embodiment of the present application, the third message indicates that the vehicle is connected to WIFI.
For example, the third message may be used to indicate that the electronic device is currently ready, and the vehicle may be connected to WIFI.
Optionally, in the embodiment of the present application, the electronic device may send a third message to the vehicle through bluetooth; alternatively, the electronic device may send a third message to the vehicle via a server of the electronic device.
For example, sending the third message to the vehicle by the server of the electronic device for the electronic device may be: and under the condition that the electronic equipment determines that the electronic equipment is in the vehicle and the WIFI of the electronic equipment is in a connectable state, the electronic equipment can send a third message to a server of the electronic equipment, then the server of the electronic equipment sends the second message to a vehicle server after receiving the third message, and finally the vehicle server sends the third message to the vehicle, so that the electronic equipment can send the third message to the vehicle through the server of the electronic equipment.
Step 404, the electronic device receives the fourth message sent by the vehicle, and establishes WIFI connection between the vehicle and the electronic device according to the fourth message.
In the embodiment of the present application, the fourth message is used to request to establish WIFI connection.
By way of example, as shown in fig. 5, a specific explanation will be given below of the case where "the above-described first event is that the user opens an application in the vehicle through the vehicle" through interaction between the electronic device and the vehicle, and the electronic device controls the vehicle to execute the first vehicle control scene. In particular, steps 30 to 37 can be implemented.
And step 30, under the condition that the electronic equipment establishes Bluetooth connection with the vehicle, the electronic equipment sends a query message to the vehicle.
In the embodiment of the application, the query message is used for requesting to query whether the electronic device is in the vehicle.
Step 31, the vehicle receives the query message sent by the electronic device.
In the embodiment of the application, after the vehicle receives the query message, the vehicle can judge whether the electronic equipment is in the vehicle or not through the RSSI.
And step 32, the vehicle sends the query result to the electronic equipment.
In the embodiment of the application, the vehicle can send the query result to the electronic device under the condition that the electronic device is determined to be positioned in the vehicle.
Optionally, in the embodiment of the present application, if the vehicle determines that the electronic device is not in the vehicle, the vehicle may not send the query result to the electronic device; or sending a query failure result to the electronic device, wherein the query failure result is used for indicating that the electronic device is not currently in the vehicle. At this time, the vehicle may perform RSSI determination every a preset period of time until it is determined that the electronic device is located in the vehicle, and then send the query result to the electronic device.
And step 33, the electronic equipment receives the query result sent by the vehicle and starts the WIFI of the electronic equipment to be in a connectable state according to the query result.
In the embodiment of the application, the query result is used for indicating that the electronic equipment is in the vehicle.
Step 34, the electronic device sends a third message to the vehicle.
In the embodiment of the present application, the third message indicates that the vehicle is connected to WIFI.
Optionally, in the embodiment of the present application, the electronic device may send a third message to the vehicle through bluetooth; or the electronic device may send a third message to the electronic device through the server; alternatively, the electronic device may send the third message to the vehicle in the form of a broadcast.
Step 35, the vehicle receives the third message sent by the electronic device.
It can be appreciated that the vehicle may receive the third message through a receiving manner corresponding to the electronic device sending the third message.
For example, assuming that the electronic device transmits the third message to the vehicle via bluetooth, the vehicle may receive the third message transmitted by the electronic device via bluetooth.
Step 36, the vehicle sends a fourth message to the electronic device.
In the embodiment of the present application, the fourth message is used to request to establish WIFI connection with the electronic device.
And 37, the electronic equipment receives a fourth message sent by the vehicle, and establishes WIFI connection between the vehicle and the electronic equipment according to the fourth message.
By way of example, the following specifically explains a case where the above-mentioned first event is that the user opens an application in the vehicle through the vehicle, and the electronic device controls the vehicle to execute the first vehicle control scene. Specifically, the steps S30 to S38 are performed.
Step S30: the user firstly opens the vehicle control module, creates a scene instruction and selects a newly built scene.
Wherein, set up scene name as: the method comprises the steps that a mobile phone WIFI is connected in a non-inductive mode, a triggering condition is selected as event triggering, an application program of a specified type, such as an audio-visual application program, in the vehicle-mounted electronic equipment is selected as being opened, the electronic equipment is in a vehicle, then a vehicle control instruction is added to connect the electronic equipment WIFI, the vehicle control module judges whether Bluetooth of the electronic equipment and Bluetooth of the vehicle-mounted electronic equipment are paired, if yes, establishment is completed, and otherwise prompting: the creation failed and the car was not paired with the cell phone bluetooth.
Step S31: the method comprises the steps that a user carries electronic equipment into a vehicle, the vehicle is started, an ECU of the vehicle sends out a power-on notification, the vehicle-mounted electronic equipment is on a screen, a user opens a specified application program or a specified type application program, the vehicle-mounted electronic equipment judges whether the WIFI of the electronic equipment is connected or not, if not, the specified application program or the specified type application program event is uploaded to a vehicle server, the vehicle server synchronizes the event notification to the electronic equipment server, and the electronic equipment server synchronizes the event notification to a vehicle control module on the electronic equipment, so that the electronic equipment and the vehicle can synchronize a vehicle control scene.
Step S32: after the vehicle control module receives the event, the vehicle control scene to be executed is matched according to the event of the application program of the opening vehicle, the vehicle control module starts to execute, and meanwhile, the user is prompted to be in operation in the WIFI scene of the noninductive connection mobile phone, and the user can also select to terminate the flow.
Step S33: the vehicle control module issues a WIFI connection instruction to the electronic equipment Bluetooth module, the electronic equipment Bluetooth module periodically scans nearby Bluetooth equipment, and the matched vehicle Bluetooth is found, so that the electronic equipment Bluetooth module is actively connected.
Step S34: after the vehicle Bluetooth and the electronic equipment Bluetooth are successfully connected, the electronic equipment Bluetooth module requests the vehicle host Bluetooth module to inquire whether the mobile phone is in the vehicle or not, the vehicle host Bluetooth module sends an instruction to the vehicle host Bluetooth module to monitor the Bluetooth module, multipoint positioning is carried out, the area where the electronic equipment is located is calculated according to RSSI data of the monitoring node, whether the electronic equipment is in the vehicle or not is judged, and then a result is returned to the electronic equipment Bluetooth module.
Step S35: if the result is yes, the Bluetooth of the electronic equipment informs the WIFI module of the electronic equipment to open the personal hot spot switch, and sends a WIFI connection instruction to the Bluetooth of the main control of the vehicle, the Bluetooth of the main control of the vehicle transmits the instruction to the vehicle-mounted electronic equipment, and the vehicle-mounted electronic equipment is actively connected with the WIFI of the electronic equipment.
Step S36: after the WIFI of the vehicle is successfully connected with the WIFI of the electronic equipment, the vehicle-mounted electronic equipment informs the vehicle host computer of the successful connection result of the Bluetooth, and at the moment, the appointed application program or the appointed type application program can be normally opened for use, and the vehicle host computer Bluetooth informs the electronic equipment of the successful connection result of the Bluetooth.
Step S37: the Bluetooth of the electronic equipment informs the vehicle control module of the successful connection result, and the vehicle control module prompts the user that the vehicle machine is connected with the mobile phone WIFI successfully-! And if yes, completing the operation of the WIFI scene of the noninductive connection mobile phone.
Step S38: after the vehicle is powered off or the mobile phone leaves the vehicle, the vehicle-mounted electronic equipment automatically disconnects the WIFI connection and the WIFI switching state of the electronic equipment is restored to the state before the vehicle.
According to the embodiment of the application, the electronic equipment can realize the non-inductive connection of the WIFI scene of the electronic equipment for the vehicle through the appointed application event in the vehicle started by the user, the WIFI in the electronic equipment is required to be started manually after the user enters the vehicle, the WIFI in the vehicle-mounted electronic equipment is started manually, and then the WIFI connection can be established between the vehicle and the electronic equipment, so that the process of connecting the electronic equipment with the vehicle-mounted WIFI is simplified, and the efficiency of connecting the electronic equipment with the WiFi is improved.
Optionally, in the embodiment of the present application, as shown in fig. 6 in conjunction with fig. 4, before the step 401, the WiFi connection method provided in the embodiment of the present application further includes the following steps 501 and 502.
Step 501, the electronic device sends a WIFI instruction to a bluetooth module in the electronic device through a car control module in the electronic device.
In the embodiment of the application, the WIFI instruction is used for indicating the Bluetooth module to be connected with other Bluetooth devices in a pairing manner.
It can be appreciated that the above WIFI instruction is a bluetooth connection instruction.
In an exemplary embodiment, the vehicle control module may automatically turn on a bluetooth module in the electronic device and send a connection instruction to bluetooth of the vehicle, so that the electronic device may establish a connection with bluetooth of the vehicle.
Step 502, the electronic device scans and establishes bluetooth connection with the vehicle through a bluetooth module in the electronic device.
In the embodiment of the application, after the Bluetooth module in the electronic device and the Bluetooth module in the vehicle are connected, the electronic device can determine whether the electronic device is positioned in the vehicle according to the Bluetooth module, so as to determine whether the electronic device is connected with the vehicle through WIFI.
It should be noted that, the specific connection process may be described in detail in the above embodiments, and in order to avoid repetition, the description is omitted here.
In the embodiment of the application, the electronic equipment can be used as a message transmission channel through Bluetooth, so that whether the electronic equipment is positioned in a vehicle or not is determined, and the diversity and flexibility of the electronic equipment in determining the message transmission mode are improved.
Optionally, in the embodiment of the present application, as shown in fig. 7 in conjunction with fig. 1, before the step 201, the WiFi connection method provided in the embodiment of the present application further includes the following steps 601 to 603.
Step 601, the electronic device creates at least one car control scene according to a first instruction of a user.
In the embodiment of the application, the electronic equipment can establish at least one vehicle control scene through the vehicle control module according to the input of the user.
Optionally, in an embodiment of the present application, each of the at least one vehicle control scene may include a scene name, a scene triggering event, and a vehicle control instruction.
For example, the user may first create a car control scene in the car control module, and set a scene name of the draft car control scene, for example: the mobile phone wifi is connected by timing to send and get off duty, the mobile phone wifi is connected without feeling on duty, the mobile phone wifi enters a K song mode through one key, and the mobile phone wifi enters a driving mode through one key.
Step 602, the electronic device selects at least one trigger event according to a second instruction of the user.
In the embodiment of the present application, the triggering event is an event that triggers the vehicle to execute the driving control scene.
Optionally, in an embodiment of the present application, the at least one triggering event may be preset by an electronic device; or custom for the user.
It will be appreciated that after the electronic device determines the name of the vehicle control scene, the electronic device may display a prompt that indicates to the user that at least one trigger event was selected by the user so that the electronic device may determine the at least one trigger event selected by the user as an event that triggers the vehicle to perform the vehicle control scene.
Illustratively, the user selecting at least one trigger event may be: the user selects from a plurality of triggering events preset by the electronic equipment; alternatively, at least one trigger event is user entered.
Optionally, in the embodiment of the present application, the triggering event may include the following two types, which are classified into: mobile phone shortcut instruction triggering and event triggering.
Illustratively, the mobile phone shortcut trigger may include at least one of: shake the phone, tap the back of the phone n down, click the screen n down, press the combination key for n seconds and voice command, etc. The method can be specifically determined according to actual use conditions, and the embodiment of the application is not limited.
Still further by way of example, the event trigger may include at least one of: an electronic device car key unlocking event, an electronic device car leaving event, an electronic device clock event, an electronic device alarm clock event, an electronic device schedule event and the like. The method can be specifically determined according to actual use conditions, and the embodiment of the application is not limited.
Step 603, the electronic device adds at least one first operation for each triggering event.
In the embodiment of the present application, each first operation in the at least one first operation is used to characterize an operation corresponding to a vehicle control scene corresponding to the trigger event executed by the electronic device.
Optionally, in an embodiment of the present application, the first operation may include at least one of: the method comprises the steps of indicating that a vehicle reserves to start an air conditioner, indicating that a vehicle reserves to heat a seat, checking vehicle information, such as vehicle position, vehicle oil quantity, vehicle electric quantity, vehicle health state, vehicle door unlocking, vehicle door locking, opening a trunk, connecting a mobile phone hot spot, navigating to a schedule destination, indicating that the vehicle enters a driving mode, indicating that the vehicle enters a K song mode, indicating that the vehicle automatically drives to a specified position, indicating that the vehicle automatically parks, and the like.
It should be noted that, adding at least one first operation to each triggering event by the electronic device may be understood as: if the user needs to set multi-step vehicle control operation, a plurality of operations can be added according to a time sequence, and after the addition is finished, the creation of a custom vehicle control scene can be finished in the electronic equipment.
For example, assuming that the user needs to control the vehicle to unlock the door, connect the mobile phone hotspot and enter the K song mode, the electronic device may correspond a trigger event to the plurality of vehicle control instructions, and when the vehicle executes the door unlock, connect the mobile phone hotspot and enter the K song mode, the vehicle may execute sequentially according to the adding timing sequence of the plurality of first operations.
Optionally, in the embodiment of the present application, for each of N vehicle control scenes, after the electronic device creates a vehicle control scene through the vehicle control module, the vehicle control module may upload the vehicle control scene created by the user to the electronic device server, and the electronic device server synchronizes to the vehicle server, and then issues the vehicle control scene to the vehicle-mounted electronic device through the vehicle server, so that the vehicle control scene in the electronic device may be kept consistent with the vehicle control scene in the vehicle.
Optionally, in the embodiment of the present application, after the vehicle control module and the vehicle electronic device receive the newly created vehicle control scene, the vehicle control module and the vehicle electronic device may each add a new monitoring event, where the monitoring event is used to monitor whether the triggering event is triggered, that is, the monitoring event may determine the first vehicle control scene when the triggering event is detected to be triggered, so that the electronic device may control the vehicle to execute the first vehicle control scene.
Optionally, in the embodiment of the present application, the listening event corresponds to one car control scene, that is, how many car control scenes have a one-to-one correspondence between the two listening events.
Optionally, in the embodiment of the present application, after the vehicle control scene is created, the electronic device may edit the vehicle control scene, and synchronize the edited or vehicle control scene to the vehicle.
Optionally, in an embodiment of the present application, the editing process includes at least one of: delete and add.
It should be noted that, if the electronic device deletes a certain vehicle control scene, the electronic device also needs to delete a listening event corresponding to the certain vehicle control scene.
Optionally, in the embodiment of the application, the electronic device can provide intelligent instruction suggestion for the user through user portrait and behavior analysis so as to help the user to quickly set the car control scene and manage the instructions.
For example, for a user with an automatic parking function frequently used by a female car owner, recommending a shortcut instruction for one-key parking; and for the users of the public officers who get off the work in the quasi-spot mode, one-key recommending is performed to set the time of getting off the work, and the users are picked up by automatically driving the vehicle to a designated position.
In the embodiment of the application, the electronic equipment can establish a vehicle control scene according to the requirements of users, so that the electronic equipment can perform personalized, intelligent and convenient WiFi connection according to the requirements of different users on different scenes, and the flexibility and the operation efficiency of WiFi connection of the electronic equipment are improved.
Optionally, in the embodiment of the present application, as shown in fig. 8 in conjunction with fig. 1, after the step 203, the WiFi connection method provided in the embodiment of the present application further includes the following step 701.
Step 701, the electronic device displays prompt information.
In an embodiment of the present application, the prompt information is used to prompt the vehicle to execute an execution state of the first vehicle control scene, where the execution state includes any one of the following: the first vehicle control scene is in the operation process, the operation of the first vehicle control scene is completed, and the operation of the first vehicle control scene fails.
Optionally, in the embodiment of the present application, the electronic device may display the prompt information on the lock screen interface.
Optionally, in the embodiment of the present application, the electronic device may output the prompt information through voice.
Optionally, in the embodiment of the present application, after the electronic device displays the prompt information, the electronic device may receive an input from a user, so that the electronic device may stop running an operation corresponding to the first vehicle control scene.
After the prompt information is displayed on the screen locking interface, the electronic device may further include a first control scene exiting control identifier, and the user may click the identifier to input the first control scene, so that the electronic device may stop running the operation corresponding to the first control scene.
In another example, after the electronic device displays the prompt information on the screen locking interface, the electronic device may receive voice audio of the user, where the voice audio includes target audio, where the target audio is used to instruct the electronic device to stop running the first vehicle control scene, and in a case where the electronic device detects the target audio, the electronic device may stop running an operation corresponding to the first vehicle control scene.
In the embodiment of the application, the electronic equipment can display the prompt information to prompt the user of the vehicle control scene where the current electronic equipment is located, so that the electronic equipment can intuitively display the current running vehicle control scene and the running state of the vehicle control scene to the user.
It should be noted that, in the WiFi connection method provided in the embodiment of the present application, the execution body may be a WiFi connection device, or an electronic device, or may also be a functional module or entity in the electronic device. In the embodiment of the application, a WiFi connection method performed by a WiFi connection device is taken as an example, and the WiFi connection device provided by the embodiment of the application is described.
Fig. 9 shows a schematic diagram of a possible structure of a WiFi connection device according to an embodiment of the application. As shown in fig. 9, the WiFi connection device 70 may include: an acquisition module 71, a determination module 72 and an execution module 73.
The acquiring module 71 is configured to acquire a first event, where the first event is triggered by a user through an electronic device or is triggered by a user through a vehicle. The determining module 72 is configured to determine, according to the first event acquired by the acquiring module 71, a first vehicle control scenario that matches the first event, where the first vehicle control scenario includes at least that, in a case where a WIFI connection is not established between the vehicle and the electronic device, a WIFI connection is established between the vehicle and the vehicle based on a WIFI connection request of the vehicle. The execution module 73 is configured to execute the operation corresponding to the first control scenario determined by the determination module 72.
In one possible implementation manner, the first event is unlocking the vehicle by the user through the electronic device; the executing module 73 is specifically configured to send a first message to the vehicle, where the first message is used to indicate that WIFI in the electronic device is in a connectable state; receiving a second message sent by the vehicle, wherein the second message is sent by the vehicle in a starting state when the vehicle detects that the electronic equipment is in the vehicle and the WIFI of the electronic equipment is in a connectable state, and the second message is used for requesting to establish WIFI connection; and establishing the WIFI connection between the vehicle and the electronic equipment according to the second message.
In one possible implementation manner, the first event is an event triggered by a user through a vehicle, specifically, an application in the vehicle is started by the user through the vehicle. The executing module 73 is specifically configured to send a query message to the vehicle when the electronic device establishes a bluetooth connection with the vehicle, where the query message is used to request to query whether the electronic device is located in the vehicle; receiving a query result sent by a vehicle, and starting WIFI of the electronic equipment to be in a connectable state according to the query result, wherein the query result is used for indicating that the electronic equipment is in the vehicle; sending a third message to the vehicle, wherein the third message indicates that the vehicle is connected with the WIFI; and receiving a fourth message sent by the vehicle, and establishing WIFI connection between the vehicle and the electronic equipment according to the fourth message, wherein the fourth message is used for requesting to establish the WIFI connection.
In a possible implementation manner, the WiFi connection device provided by the embodiment of the present application further includes a sending module and a processing module, where the sending module is configured to send, by the executing module 73, a WiFi instruction to the bluetooth module in the electronic device through the vehicle control module in the electronic device before sending a query message to the vehicle when the electronic device establishes a bluetooth connection with the vehicle, where the WiFi instruction is used to instruct the bluetooth module to connect with other bluetooth devices in a pairing manner. And the processing module is used for scanning and establishing Bluetooth connection with the vehicle through the Bluetooth module in the electronic equipment.
In one possible implementation manner, the vehicle control scene further includes at least one of the following: when the system time of the vehicle reaches the appointed time, the electronic equipment indicates the vehicle to automatically drive to the appointed position; the electronic equipment instructs the vehicle to start a music playing mode; the electronic device instructs the vehicle to turn on the driving mode.
In a possible implementation manner, the WiFi connection device provided by the embodiment of the application further includes: the system comprises a creation module, a selection module and an addition module. The creating module is configured to create at least one vehicle control scene according to a first instruction of a user before the acquiring module 71 acquires the first event. And the selection module is used for selecting at least one trigger event according to a second instruction of the user, wherein the trigger event is an event for triggering the vehicle to execute the driving scene. The adding module is used for adding at least one first operation for each triggering event, and each first operation is used for representing the electronic equipment to execute the operation corresponding to the vehicle control scene corresponding to the triggering event.
In a possible implementation manner, the WiFi connection device provided by the embodiment of the application further includes: the display module, after the execution module 73 controls the vehicle to execute the first vehicle control scene, displays a prompt message, where the prompt message is used to prompt the vehicle to execute the execution state of the first vehicle control scene, and the execution state includes any one of the following: the first vehicle control scene is in the operation process, the operation of the first vehicle control scene is completed, and the operation of the first vehicle control scene fails.
The embodiment of the application provides a WiFi connection device, because the WiFi connection device can preset the association relation between the first event and the first vehicle control scene, after the WiFi connection device acquires the first event, the WiFi connection device can automatically execute the operation corresponding to the first vehicle control scene according to the first vehicle control scene corresponding to the first event, that is, the WiFi connection device can automatically establish connection between WiFi in the WiFi connection device and WiFi in a vehicle through the first event, so that the process that the WiFi connection device needs to manually connect WiFi in the vehicle is simplified, and the efficiency of WiFi in the WiFi connection device for connecting WiFi in the vehicle is improved.
The WiFi connection device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., and may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., without limitation of the embodiments of the present application.
The WiFi connection device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The WiFi connection device provided by the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an electronic device 90, which includes a processor 91 and a memory 92, where a program or an instruction that can be executed on the processor 91 is stored in the memory 92, and when the program or the instruction is executed by the processor 91, the steps of the embodiment of the WiFi connection method are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein.
The input unit 104 is configured to obtain a first event, where the first event is triggered by a user through an electronic device or is triggered by a user through a vehicle. The processor 110 is configured to determine, according to a first event, a first vehicle control scenario that matches the first event, where the first vehicle control scenario includes at least that, in a case where a WIFI connection is not established between the vehicle and the electronic device, a WIFI connection request is based on the WIFI connection request of the vehicle, and a WIFI connection is established between the vehicle and the first vehicle; and executing the operation corresponding to the first vehicle control scene.
The embodiment of the application provides an electronic device, because the electronic device can preset the association relation between the first event and the first vehicle control scene, after the electronic device acquires the first event, the electronic device can automatically execute the corresponding operation of the first vehicle control scene according to the first vehicle control scene corresponding to the first event, that is, the electronic device can automatically establish connection between WiFi in the electronic device and WiFi in a vehicle through the first event, so that the process that the electronic device needs to manually connect the WiFi in the vehicle is simplified, and the efficiency of connecting the WiFi in the electronic device with the WiFi in the vehicle is improved.
Optionally, in an embodiment of the present application, the first event is unlocking the vehicle by the user through the electronic device; the processor 110 is specifically configured to send a first message to the vehicle, where the first message is used to indicate that WIFI in the electronic device is in a connectable state; receiving a second message sent by the vehicle, wherein the second message is sent by the vehicle in a starting state when the vehicle detects that the electronic equipment is in the vehicle and the WIFI of the electronic equipment is in a connectable state, and the second message is used for requesting to establish WIFI connection; and establishing the WIFI connection between the vehicle and the electronic equipment according to the second message.
Optionally, in the embodiment of the present application, the first event is an event triggered by a user through a vehicle, and specifically, the user opens an application in the vehicle through the vehicle; the processor 110 is specifically configured to send a query message to the vehicle when the electronic device establishes a bluetooth connection with the vehicle, where the query message is used to request to query whether the electronic device is located in the vehicle; receiving a query result sent by a vehicle, and starting WIFI of the electronic equipment to be in a connectable state according to the query result, wherein the query result is used for indicating that the electronic equipment is in the vehicle; transmitting a third message to the vehicle, the third message indicating that the vehicle is connected to WIFI; and receiving a fourth message sent by the vehicle, and establishing WIFI connection between the vehicle and the electronic equipment according to the fourth message, wherein the fourth message is used for requesting to establish the WIFI connection.
Optionally, in the embodiment of the present application, the radio frequency unit 101 is further configured to send, before sending the inquiry message to the vehicle, a WIFI instruction to a bluetooth module in the electronic device through a vehicle control module in the electronic device when the electronic device establishes bluetooth connection with the vehicle, where the WIFI instruction is used to instruct the bluetooth module to connect with other bluetooth devices in a pairing manner. The processor 110 is further configured to scan and establish a bluetooth connection with the vehicle through a bluetooth module in the electronic device.
Optionally, in the embodiment of the present application, before the processor 110 is further configured to obtain the first event, at least one vehicle control scene is created according to a first instruction of a user; according to a second instruction of the user, selecting at least one triggering event, wherein the triggering event is an event for triggering the vehicle to execute a driving scene; and adding at least one vehicle control instruction for each triggering event, wherein each vehicle control instruction in the at least one vehicle control instruction is used for representing the electronic equipment to execute the operation corresponding to the vehicle control scene corresponding to the triggering event.
Optionally, in the embodiment of the present application, the display unit 106 is further configured to display a prompt message after the vehicle executes the first vehicle control scene, where the prompt message is used to prompt the vehicle to execute an execution state of the first vehicle control scene, and the execution state includes any one of the following: the first vehicle control scene is in the operation process, the operation of the first vehicle control scene is completed, and the operation of the first vehicle control scene fails.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the WiFi connection method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (10)
1. A method of WiFi connectivity, performed by an electronic device, the method comprising:
acquiring a first event, wherein the first event is triggered by a user through electronic equipment or triggered by a user through a vehicle;
determining a first vehicle control scene matched with the first event according to the first event, wherein the first vehicle control scene at least comprises a WIFI connection request based on the vehicle and a WIFI connection established between the vehicle under the condition that the wireless fidelity WIFI connection is not established between the vehicle and the electronic equipment;
and executing an operation corresponding to the first vehicle control scene.
2. The method of claim 1, wherein the first event is a user unlocking the vehicle through the electronic device;
the performing an operation corresponding to the first control scene includes:
sending a first message to the vehicle, wherein the first message is used for indicating that WIFI in the electronic equipment is in a connectable state;
receiving a second message sent by the vehicle, wherein the second message is sent by the vehicle in a starting state under the condition that the vehicle detects that the electronic equipment is in the vehicle and WIFI of the electronic equipment is in a connectable state, and the second message is used for requesting to establish WIFI connection;
And establishing WIFI connection between the vehicle and the electronic equipment according to the second message.
3. The method according to claim 1, wherein the first event is a user-triggered event by a vehicle, in particular a user opening an application in the vehicle by the vehicle;
the performing an operation corresponding to the first control scene includes:
sending a query message to the vehicle under the condition that the electronic equipment and the vehicle are connected by Bluetooth, wherein the query message is used for requesting to query whether the electronic equipment is in the vehicle;
receiving a query result sent by the vehicle, and starting WIFI of the electronic equipment to be in a connectable state according to the query result, wherein the query result is used for indicating that the electronic equipment is in the vehicle;
sending a third message to the vehicle, the third message indicating that the vehicle is connected to WIFI;
and receiving a fourth message sent by the vehicle, and establishing WIFI connection between the vehicle and the electronic equipment according to the fourth message, wherein the fourth message is used for requesting to establish the WIFI connection.
4. A method according to claim 3, wherein, in the event that the electronic device establishes a bluetooth connection with the vehicle, before sending a query message to the vehicle, the method further comprises:
Sending a WIFI instruction to a Bluetooth module in the electronic equipment through a vehicle control module in the electronic equipment, wherein the WIFI instruction is used for indicating the Bluetooth module to be connected with other Bluetooth equipment in a pairing way;
and scanning and establishing Bluetooth connection with the vehicle through a Bluetooth module in the electronic equipment.
5. The method of claim 1, wherein the vehicle control scene further comprises at least one of:
when the system time of the vehicle reaches the appointed time, the electronic equipment indicates the vehicle to automatically drive to the appointed position;
the electronic equipment instructs the vehicle to start a music playing mode;
the electronic device instructs the vehicle to turn on a driving mode.
6. The method of any one of claims 1 to 5, wherein prior to the acquiring the first event, the method further comprises:
creating at least one car control scene according to a first instruction of a user;
according to a second instruction of a user, selecting at least one triggering event, wherein the triggering event is an event for triggering the vehicle to execute the vehicle control scene;
and adding at least one first operation for each triggering event, wherein each first operation is used for representing the electronic equipment to execute the operation corresponding to the automobile control scene corresponding to the triggering event.
7. The method of claim 1, wherein after the controlling the vehicle to execute the first control scene, the method further comprises:
the method comprises the steps of displaying prompt information, wherein the prompt information is used for prompting the vehicle to execute the execution state of the first vehicle control scene, and the execution state comprises any one of the following steps: the first control scene is in the operation process, the operation of the first control scene is completed, and the operation of the first control scene fails.
8. A WiFi connection device, the device comprising: the device comprises an acquisition module, a determination module and an execution module;
the acquisition module is used for acquiring a first event, wherein the first event is triggered by a user through electronic equipment or triggered by the user through a vehicle;
the determining module is configured to determine, according to the first event acquired by the acquiring module, a first vehicle control scene that matches the first event, where the first vehicle control scene includes at least establishing WIFI connection with the vehicle based on a WIFI connection request of the vehicle when no WIFI connection is established between the vehicle and the electronic device;
the execution module is used for executing the operation corresponding to the first vehicle control scene.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the WiFi connection method of any of claims 1 to 7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the WiFi connection method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311178600.2A CN117241243A (en) | 2023-09-12 | 2023-09-12 | WiFi connection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311178600.2A CN117241243A (en) | 2023-09-12 | 2023-09-12 | WiFi connection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117241243A true CN117241243A (en) | 2023-12-15 |
Family
ID=89083753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311178600.2A Pending CN117241243A (en) | 2023-09-12 | 2023-09-12 | WiFi connection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117241243A (en) |
-
2023
- 2023-09-12 CN CN202311178600.2A patent/CN117241243A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905871B (en) | Intelligent electrical appliance control, device and terminal | |
KR101837333B1 (en) | Method and apparatus for awakening electronic device | |
CN106356060B (en) | Voice communication method and device | |
US11233671B2 (en) | Smart internet of things menus with cameras | |
CN105607499A (en) | Equipment grouping method and apparatus | |
US20170156166A1 (en) | Method and Apparatus for Connecting With Controlled Smart Device, and Storage Medium | |
KR101808773B1 (en) | Method, device, system, program and recording medium for starting target function | |
CN104735548A (en) | Event prompting method and device | |
CN105511318A (en) | Method and device for controlling pre-heating of vehicle | |
CN104915094A (en) | Terminal control method and device and terminal | |
CN105306743A (en) | Screen control method and device | |
CN105338040A (en) | Water dispenser control methods, devices and system | |
CN105915401A (en) | Firmware upgrading method and device of smart hardware, and equipment | |
CN105517277A (en) | Controlling method and apparatus for lighting equipment | |
CN105388779A (en) | Control method and device for intelligent equipment | |
CN105093980B (en) | Control the method and device of smart machine start and stop | |
CN105607834A (en) | Screen control method and apparatus as well as terminal | |
CN108810866B (en) | Method and device for connecting intelligent equipment and storage medium | |
US20160349779A1 (en) | Method and device for controlling smart home power supply | |
CN105644501A (en) | Method, device and terminal for remote control of automobile | |
CN105843708A (en) | Data processing method and device | |
CN105207994A (en) | Account number binding method and device | |
CN108712736A (en) | Find the methods, devices and systems of equipment | |
CN105487798B (en) | The method and device that messaging application is operated on touch screen terminal | |
EP3225510B1 (en) | Methods and devices for controlling self-balanced vehicle to park |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |