Network connection mode switching method and terminal equipment
By automatically switching the network connection mode in the in-vehicle infotainment system, the problem of users needing to manually switch the network connection mode is solved, which improves operational convenience and ensures driving safety.
Patent Information
- Application Number
- CN202411385486.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-09-30
AI Technical Summary
In the prior art, when the vehicle infotainment system needs to be connected to other network devices, the user needs to manually switch the network connection mode, which is cumbersome and may distract the driver's attention during driving and increase the risk of traffic accidents.
A network connection mode switching method is provided, by confirming the operating mode of the vehicle equipment and automatically switching to site mode in the access point mode to connect to the vehicle infotainment system, or switching to access point mode in the site mode to achieve automatic connection.
Automatic switching of network connection mode is realized, user operations are simplified, the hassle of manually adjusting settings is reduced, and safety is ensured during driving, avoiding safety hazards caused by distracted operation.
Smart Images

Figure CN119521170A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a network connection mode switching method and a terminal device. Background Art
[0002] The vehicle's in-vehicle infotainment system and in-vehicle devices support access point mode (AP) and station mode (STA), and support switching between the two modes. Users can actively switch to the desired working mode according to different usage requirements. For example, the in-vehicle device can be operated in access point mode and connected to the in-vehicle infotainment system operating in station mode. However, in this working mode, the in-vehicle infotainment system cannot be connected to other network devices at the same time, such as smartphones or other peripherals. This situation not only limits the user's ability to handle multiple tasks at the same time, but also affects the efficiency of information acquisition. Therefore, users need to switch modes in time so that the in-vehicle infotainment system can connect to other network devices.
[0003] The existing network connection mode switching mostly relies on the physical buttons of the device itself or dedicated mobile applications. This switching mechanism requires manual operation by the user, which is significantly inconvenient in practical applications, especially in the use scenarios of in-vehicle products. For users who pursue operational continuity and convenience, frequent manual adjustments to network settings are cumbersome. In addition, during driving, the driver needs to concentrate on the road conditions to ensure driving safety. If the working mode of the in-vehicle device needs to be adjusted during this period, it may distract the driver's attention and increase the risk of traffic accidents. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a network connection mode switching method and a terminal device, which can realize automatic switching of the network connection mode, make the switching of the network connection mode more convenient, and ensure driving safety.
[0005] A first aspect of an embodiment of the present application provides a method for switching a network connection mode of a vehicle, which is applied to an in-vehicle infotainment system, and the method includes:
[0006] Confirm the operating mode of the vehicle equipment;
[0007] When the vehicle-mounted device operates in the access point mode, operating in the station mode and sending a connection request signal to the vehicle-mounted device;
[0008] If the connection is successful, a mode switching request signal is sent to the vehicle-mounted device;
[0009] Receiving a confirmation signal sent by the vehicle-mounted device;
[0010] Sending the network name and password of the in-vehicle infotainment system to the in-vehicle device;
[0011] Switch to access point mode, and establish a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device, wherein the vehicle-mounted device is used to switch to site mode and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
[0012] A second aspect of an embodiment of the present application provides a vehicle network connection mode switching method, which is applied to an in-vehicle device, and the method includes:
[0013] When operating in access point mode, establishing a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system;
[0014] Receiving a mode switching request signal sent by the in-vehicle infotainment system;
[0015] Sending a confirmation signal to the in-vehicle infotainment system;
[0016] Receiving a network name and password sent by the in-vehicle infotainment system;
[0017] Switch to the station mode, and send a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system, wherein the in-vehicle infotainment system is used to switch to the access point mode and establish a connection with the in-vehicle device in response to the connection request signal.
[0018] A third aspect of an embodiment of the present application provides a vehicle network connection mode switching device, which is applied to an in-vehicle infotainment system, and the device includes:
[0019] A mode confirmation module, used to confirm the operation mode of the vehicle-mounted device;
[0020] A first sending module, configured to operate in a station mode and send a connection request signal to the vehicle-mounted device when the vehicle-mounted device operates in an access point mode;
[0021] A second sending module, configured to send a mode switching request signal to the vehicle-mounted device if the connection is successful;
[0022] A receiving module, used for receiving a confirmation signal sent by the vehicle-mounted device;
[0023] A third sending module, used for sending the network name and password of the in-vehicle infotainment system to the in-vehicle device;
[0024] A mode switching module is used to switch to an access point mode and establish a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device, wherein the vehicle-mounted device is used to switch to a site mode and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
[0025] A fourth aspect of an embodiment of the present application provides a vehicle network connection mode switching device, which is applied to an in-vehicle device, and the device includes:
[0026] a connection module, configured to establish a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system when operating in the access point mode;
[0027] A first receiving module, configured to receive a mode switching request signal sent by the in-vehicle infotainment system;
[0028] A sending module, used for sending a confirmation signal to the in-vehicle infotainment system;
[0029] A second receiving module, used to receive a network name and a password sent by the in-vehicle infotainment system;
[0030] A mode switching module is used to switch to a site mode and send a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system, wherein the in-vehicle infotainment system is used to switch to an access point mode and establish a connection with the in-vehicle device in response to the connection request signal.
[0031] A fifth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the terminal device is an in-vehicle infotainment system, the processor implements the steps of the network connection mode switching method provided in the first aspect of the embodiments of the present application when executing the computer program;
[0032] When the terminal device is a vehicle-mounted device, the processor implements the steps of the network connection mode switching method provided in the second aspect of the embodiment of the present application when executing the computer program.
[0033] The first aspect of the embodiment of the present application is a method for switching the network connection mode of a vehicle, which is applied to an in-vehicle infotainment system. The method confirms the operation mode of the in-vehicle device; when the in-vehicle device is operating in access point mode, it operates in site mode and sends a connection request signal to the in-vehicle device; if the connection is successful, it sends a mode switching request signal to the in-vehicle device; receives a confirmation signal sent by the in-vehicle device; sends the network name and password of the in-vehicle infotainment system to the in-vehicle device; switches to access point mode, and establishes a connection with the in-vehicle device in response to the connection request signal of the in-vehicle device, wherein the in-vehicle device is used to switch to site mode, and sends a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system. The method can realize automatic switching of the network connection mode, making the switching of the network connection mode more convenient and ensuring driving safety.
[0034] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 This is a flow chart of a method for switching a network connection mode provided by an embodiment of the present application;
[0037] Figure 2 This is a flow chart of a method for switching a network connection mode provided by another embodiment of the present application;
[0038] Figure 3 This is a flow chart of a method for switching a network connection mode provided by another embodiment of the present application;
[0039] Figure 4 is a structural diagram of a network connection mode switching device provided in an embodiment of the present application;
[0040] Figure 5 is a structural diagram of a network connection mode switching device provided by another embodiment of the present application;
[0041] Figure 6 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0045] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0048] The embodiment of the present application provides a network connection mode switching method, which is applied to an in-vehicle infotainment system and can be executed by a processor of a terminal device when running a computer program with corresponding functions, by confirming the operation mode of the in-vehicle device; when the in-vehicle device is running in access point mode, running in site mode and sending a connection request signal to the in-vehicle device; if the connection is successful, sending a mode switching request signal to the in-vehicle device; receiving a confirmation signal sent by the in-vehicle device; sending the network name and password of the in-vehicle infotainment system to the in-vehicle device; switching to access point mode, and establishing a connection with the in-vehicle device in response to the connection request signal of the in-vehicle device, wherein the in-vehicle device is used to switch to site mode, and send a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system. The automatic switching of the network connection mode can be realized, making the switching of the network connection mode more convenient and ensuring driving safety.
[0049] like Figure 1 As shown, the network connection mode switching method provided in the embodiment of the present application includes the following steps S101 to S106:
[0050] Step S101: confirm the operation mode of the vehicle-mounted device.
[0051] In the application, when the vehicle-mounted device is powered on, it performs a self-test of the operating mode to identify whether the current working state of the vehicle-mounted device is access point mode (AP) or station mode (STA). This step ensures that subsequent operations can be performed based on the correct prerequisites.
[0052] Step S102: When the vehicle-mounted device operates in the access point mode, the device operates in the station mode and sends a connection request signal to the vehicle-mounted device.
[0053] In the application, when it is determined that the vehicle-mounted device is in the access point mode, the vehicle-mounted infotainment system operates in the station mode. At this time, the vehicle-mounted infotainment system sends a connection request signal to the vehicle-mounted device to try to establish a connection with the vehicle-mounted device.
[0054] Step S103: If the connection is successful, a mode switching request signal is sent to the vehicle-mounted device.
[0055] In the application, if the in-vehicle infotainment system successfully connects to the in-vehicle device as an access point, it will send a mode switching request to the in-vehicle device, indicating that it is ready to change the working mode. This step is used to make the in-vehicle infotainment system actively switch to the access point mode, so that it can connect with more network devices. The entire switching process is automatically performed by the in-vehicle infotainment system, and the entire switching process is automated without manual intervention.
[0056] In an application, the mode switching request signal may include preset switching time information, which is used to agree with the vehicle-mounted device to perform mode switching simultaneously when the preset switching time is reached.
[0057] Step S104: receiving a confirmation signal sent by the vehicle-mounted device.
[0058] In the application, after receiving the mode switching request, the vehicle device will send back a confirmation signal to indicate that it is ready for mode switching. This two-way confirmation process ensures that both parties are ready for the next data exchange.
[0059] Step S105: Send the network name and password of the in-vehicle infotainment system to the in-vehicle device.
[0060] In the application, in order to achieve seamless switching, the in-vehicle infotainment system will then share its Wi-Fi network name (SSID) and password with the in-vehicle device, so that the in-vehicle device can quickly locate and connect to the in-vehicle infotainment system under the new network configuration.
[0061] Step S106, switching to access point mode, and establishing a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device, wherein the vehicle-mounted device is used to switch to site mode and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
[0062] In the application, the in-vehicle infotainment system is converted to access point mode, and the in-vehicle device is converted to station mode accordingly. Subsequently, the in-vehicle device uses the previously acquired network information to try to reconnect to the in-vehicle infotainment system. When the connection request signal of the in-vehicle device is sent to the in-vehicle infotainment system, the in-vehicle infotainment system responds to the connection request signal, and the two are connected. This step enhances the flexibility of the system and can achieve seamless switching of modes, ensuring a good user experience.
[0063] The embodiment of the present application realizes the automatic switching of the network connection mode between the vehicle-mounted device and the vehicle-mounted infotainment system through the above method. This method significantly improves the convenience of use, reduces the trouble caused by manual adjustment of settings, and also ensures safety during driving, avoiding safety hazards caused by distracted operation. And the vehicle-mounted infotainment system is operated in access point mode as much as possible, so that it can be connected to more network devices, ensuring the efficiency of information acquisition and the ability of users to handle multiple tasks at the same time.
[0064] In one embodiment, step S106 specifically includes:
[0065] Switching to the access point mode at a preset switching time, and establishing a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device;
[0066] Among them, the mode switching request signal includes a preset switching time, and the vehicle-mounted device is used to switch to the site mode at the preset switching time, and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
[0067] In the application, assume that the in-vehicle infotainment system and the dashcam are currently in station mode and access point mode respectively. At a certain moment, such as 5 minutes after the vehicle is started, the in-vehicle infotainment system will switch to access point mode according to the preset time. At the same time, it will send a mode switching request signal containing the preset time to the dashcam. After receiving this signal, the dashcam will automatically switch to station mode at the same preset time and try to connect using the network name and password previously obtained from the in-vehicle infotainment system.
[0068] For example, when the driver starts the vehicle, the in-vehicle infotainment system may be set to switch modes after 5 minutes. During these 5 minutes, the system will complete the initial connection, authentication, and necessary data exchange with the dashcam. After the preset time, the in-vehicle infotainment system will change to access point mode, while the dashcam will change to station mode and immediately start looking for and connecting to the new network environment. This time-synchronized switching mechanism ensures that both devices can complete the role conversion at almost the same time, thus avoiding connection failures or delays caused by asynchrony.
[0069] The method provided in the embodiment of the present application is highly automated and synchronized. First, by presetting the switching time, the entire process can be fully automated without manual user intervention, which greatly simplifies the operation process and improves the user experience. Secondly, synchronous switching reduces connection errors caused by mode mismatch and improves the reliability and stability of the system. In addition, this mechanism also allows for more flexible network configuration strategies, and the switching time can be adjusted according to different usage scenarios and requirements to achieve the best effect. For example, at the beginning of vehicle startup, important information can be quickly obtained through a short STA-AP connection, and then converted to a more stable AP-STA connection in the subsequent process to support long-term data transmission and service provision. In short, synchronous switching based on preset time not only enhances the flexibility of the system, but also ensures efficient and reliable network connection, which is of great significance for improving driving safety and enhancing the in-vehicle interconnection experience.
[0070] In one embodiment, before step S103, the following steps S201 and S202 are also included:
[0071] Step S201: Acquire authentication information of the vehicle-mounted device.
[0072] In the application, when the in-vehicle infotainment system establishes a connection with the dashcam for the first time, it obtains the authentication information of the in-vehicle device. This may include the device serial number (SN number), manufacturer ID, or other specific identifiers. Assume that the in-vehicle infotainment system and the in-vehicle device are produced by the same manufacturer and support the same communication protocols and security standards. In this case, the in-vehicle infotainment system will verify this authentication information to confirm that the dashcam is indeed an authorized device and that data can be exchanged securely between them.
[0073] Step S202: confirming based on the authentication information that the in-vehicle device and the in-vehicle infotainment system belong to the same ecosystem.
[0074] In the application, the in-vehicle infotainment system receives the in-vehicle device, such as the dashcam, which provides a device serial number of "ABCD1234", and this serial number is in the preset whitelist of the in-vehicle infotainment system. The in-vehicle infotainment system will further check other relevant authentication information, such as device type, software version, etc., to ensure that both parties can work seamlessly. Once it is confirmed that the dashcam is trustworthy and that the two do belong to the same ecosystem, the in-vehicle infotainment system will continue to execute subsequent mode switching requests.
[0075] In the embodiment of the present application, for the vehicle-mounted devices belonging to the same ecosystem, after receiving the mode switching request signal, the mode switching can be performed at the preset switching time through the pre-made program, so as to avoid the vehicle-mounted devices being unable to recognize the mode switching request signal and unable to achieve the mode switching. This switching mechanism based on time synchronization not only improves the response speed of the system, but also ensures seamless collaboration between devices. Even in a complex network environment, it can ensure that the device can accurately and timely complete the mode switching, thereby avoiding the connection failure or delay caused by asynchronization. This is particularly important for application scenarios that require frequent switching between network roles, such as quickly establishing a stable network connection within a short time after the vehicle is started, or dynamically adjusting the network configuration according to different needs during driving. In addition, by confirming that the device belongs to the same ecosystem through authentication information and using the preset time for mode switching, it not only enhances the security, reliability and compatibility of the system, but also realizes highly automated network management, providing users with a smoother and more efficient Internet experience. While ensuring the security of data transmission, this mechanism also greatly improves the overall collaborative working ability and user experience of vehicle-mounted devices.
[0076] In one embodiment, the following step S301 is also included:
[0077] Step S301: When the vehicle-mounted device is operating in the station mode, the device is operated in the access point mode, and in response to a connection request signal from the vehicle-mounted device, a connection is established with the vehicle-mounted device.
[0078] The embodiment of the present application provides a method for establishing a connection when the vehicle-mounted device operates in station mode and the vehicle-mounted device operates in access point mode, so that the user can achieve seamless connection between the vehicle-mounted device and the vehicle-mounted infotainment system without manual intervention. The vehicle-mounted infotainment system can automatically identify and adapt to the status of the vehicle-mounted device, thereby providing a more convenient user experience.
[0079] The embodiment of the present application also provides a network connection mode switching method, which is applied to an in-vehicle device and can be executed by a processor of a terminal device when running a computer program with corresponding functions, by responding to a connection request signal sent by the in-vehicle infotainment system when running in access point mode, establishing a connection with the in-vehicle infotainment system; receiving a mode switching request signal sent by the in-vehicle infotainment system; sending a confirmation signal to the in-vehicle infotainment system; receiving a network name and password sent by the in-vehicle infotainment system; switching to a site mode, and sending a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system, wherein the in-vehicle infotainment system is used to switch to an access point mode, and respond to a connection request signal sent by the in-vehicle infotainment system to establish a connection with the in-vehicle device. The automatic switching of the network connection mode can be realized, making the switching of the network connection mode more convenient and ensuring driving safety.
[0080] like Figure 2 As shown, the network connection mode switching method provided in the embodiment of the present application includes the following steps S111 to S115:
[0081] Step S111 : When operating in the access point mode, in response to a connection request signal sent by the in-vehicle infotainment system, establish a connection with the in-vehicle infotainment system.
[0082] In the application, when the vehicle device is in access point mode, it responds to the connection request from the vehicle infotainment system, thus establishing a direct communication channel between the two.
[0083] Step S112: receiving a mode switching request signal sent by the in-vehicle infotainment system.
[0084] In the application, as the connection is established, the vehicle device receives a mode switch request from the vehicle infotainment system, indicating that it is ready to change its working mode. This request contains information about the upcoming network role change so that the vehicle device can prepare accordingly.
[0085] Step S113: Send a confirmation signal to the in-vehicle infotainment system.
[0086] In the application, to indicate that it is ready to accept the upcoming role change, the vehicle device sends a confirmation signal to the vehicle infotainment system.
[0087] Step S114: receiving the network name and password sent by the in-vehicle infotainment system.
[0088] In the application, the vehicle-mounted device will receive the SSID and password of the new network environment provided by the vehicle-mounted infotainment system. This information will be used to guide the vehicle-mounted device on how to correctly access the new wireless network that is about to be formed.
[0089] Step S115: switch to the site mode, and send a connection request signal to the vehicle infotainment system based on the network name and password of the vehicle infotainment system, wherein the vehicle infotainment system is used to switch to the access point mode, and establish a connection with the vehicle device in response to the connection request signal sent by the vehicle infotainment system.
[0090] In the application, the in-vehicle device completes the role transition from AP to STA, and uses the newly obtained network credentials to try to connect to the in-vehicle infotainment system that has become an AP.
[0091] The embodiment of the present application realizes the automatic switching of the network connection mode between the vehicle-mounted device and the vehicle-mounted infotainment system through the above method. This method significantly improves the convenience of use, reduces the trouble caused by manual adjustment of settings, and also ensures safety during driving, avoiding safety hazards caused by distracted operation. And the vehicle-mounted infotainment system is operated in access point mode as much as possible, so that it can be connected to more network devices, ensuring the efficiency of information acquisition and the ability of users to handle multiple tasks at the same time.
[0092] In one embodiment, step S115 specifically includes:
[0093] Switching to the station mode at a preset switching time, and sending a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system;
[0094] The mode switching request signal includes a preset switching time, and the in-vehicle infotainment system is used to switch to the access point mode at the preset switching time, and establish a connection with the in-vehicle device in response to a connection request signal sent by the in-vehicle device.
[0095] In one embodiment, the following step S211 is also included:
[0096] Step S211: When operating in station mode, sending a connection request signal to the in-vehicle infotainment system;
[0097] The in-vehicle infotainment system is used to operate in an access point mode and establish a connection with the in-vehicle device in response to a connection request signal sent by the in-vehicle device.
[0098] In one embodiment, step S211 includes the following steps S311 and S312:
[0099] Step S311, confirming the connection status;
[0100] In the application, suppose the vehicle device is currently running in STA mode and attempts to connect to the Wi-Fi network of the vehicle infotainment system. After the vehicle device sends a connection request signal, the vehicle infotainment system should respond to this request and establish a connection. However, due to some reasons (such as signal interference, incorrect password, or the vehicle infotainment system is temporarily unavailable), the connection may fail. In this case, the vehicle device will execute step S311 to confirm the connection status. By checking the connection status signal fed back by the vehicle infotainment system, the vehicle device can determine whether the connection is successfully established.
[0101] Step S312: If it is confirmed that the connection fails, switch to the access point mode and return to the step of establishing a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system when running in the access point mode.
[0102] In the application, if the connection fails, the vehicle-mounted device will execute step S312, that is, switch back to AP mode and wait for the vehicle-mounted infotainment system to initiate a connection request again. In this way, the vehicle-mounted infotainment system can retry to establish a connection with the driving recorder. This process can ensure that even if the connection fails, the system can automatically recover and retry to establish a connection, thereby improving the success rate and stability of the connection.
[0103] The embodiment of the present application automatically switches back to AP mode and tries to connect again when the connection fails. This method not only improves the fault tolerance and self-recovery ability of the system, but also simplifies the user's operation process and enhances the reliability and robustness of the system. This mechanism provides users with a more efficient, convenient and reliable in-vehicle network environment.
[0104] In one embodiment, step S311 includes the following steps S411 to S413:
[0105] Step S411: confirming the connection status with the in-vehicle infotainment system based on the connection status signal fed back by the in-vehicle infotainment system.
[0106] In the application, after the vehicle device receives the connection status signal from the vehicle infotainment system, it will parse the signal to determine whether the connection is successful. For example, if the vehicle infotainment system returns a "connection successful" message, the vehicle device will think that the connection has been established. On the contrary, if it returns "connection failed", the dashcam will proceed to the next step.
[0107] Step S412: If the connection with the in-vehicle infotainment system is not successful, return to the step of sending a connection request signal to the in-vehicle infotainment system when operating in the station mode.
[0108] In the application, if the vehicle device fails to connect, it will try to send a connection request signal again. This retry mechanism can increase the probability of successful connection, especially when the initial connection attempt fails due to temporary problems (such as signal interference or a short device failure). For example, the vehicle device may try to connect every few seconds until it succeeds or reaches a preset number of retries.
[0109] Step S413: If the connection with the in-vehicle infotainment system is not successful within the specified time period, it is determined that the connection has failed.
[0110] In the application, if after multiple attempts, the connection still fails within a preset time period (such as 30 seconds or 3 minutes), the vehicle device will finally confirm that the connection has failed. At this point, the system will take further measures, such as switching back to access point mode (AP) to restart the entire connection process.
[0111] The embodiment of the present application confirms based on the connection status signal, attempts to connect multiple times, and confirms that the connection has failed when it fails within a specified time period. This method not only improves the fault tolerance and reliability of the system, but also simplifies the user's operation process and enhances the system's self-recovery ability. This mechanism provides users with a more efficient, convenient and reliable in-vehicle network environment.
[0112] The present application also provides a method for switching a network connection mode. Figure 3 As shown, the following steps S11 to S28 are included:
[0113] Step S11, start.
[0114] Step S12: Power on the product.
[0115] In the application, after the vehicle-mounted device is powered on, it will perform a self-test to determine whether the vehicle-mounted device is in access point mode or in station mode. If it is in station mode, step S21 is executed, and if it is in access point mode, step S13 is executed.
[0116] Step S13: When the in-vehicle infotainment system is in the station mode and the in-vehicle device is in the access point mode, the in-vehicle infotainment system sends a connection request to the in-vehicle device.
[0117] Step S14, receiving the request and responding to the connection.
[0118] Step S15: Connection successful.
[0119] Step S16: Determine whether it is an ecological product.
[0120] In the application, the in-vehicle infotainment system obtains the authentication information of the in-vehicle device to determine whether it belongs to the same ecosystem. The authentication information may include at least one of the serial number, manufacturer ID or other identifier of the device. If the in-vehicle device passes the authentication, the system will proceed to step S17.
[0121] Step S17: Send a mode switching request signal.
[0122] In the application, after confirming that the vehicle-mounted device is an ecological product, the vehicle-mounted infotainment system will send a mode switching request signal to the vehicle-mounted device. This signal contains the upcoming role switching information and possible preset switching time.
[0123] Step S18: Receive the request and reply OK, entering the ready state.
[0124] In the application, after receiving the mode switching request signal, the vehicle-mounted device will reply with an "OK" signal, indicating that it is ready for mode switching. At this time, the vehicle-mounted device enters the ready state and waits for the preset switching time to arrive.
[0125] Step S19: Send the vehicle computer SSID, password and other information.
[0126] In the application, the in-vehicle infotainment system will send its own Wi-Fi network name (SSID) and password to the in-vehicle device. This information is used to enable the in-vehicle device to connect to the new network environment provided by the in-vehicle infotainment system.
[0127] Step S20: After receiving the vehicle machine SSID and password, both parties automatically complete the switch at the specified time.
[0128] In the application, after the vehicle device receives the SSID and password of the vehicle infotainment system, it will automatically switch to station mode at a preset time. At the same time, the vehicle infotainment system will also switch to access point mode at the same time. In this way, both parties will complete the role conversion and re-establish the connection at almost the same time.
[0129] Step S21: When the in-vehicle infotainment system is in access point mode and the in-vehicle device is in station mode, the in-vehicle device sends a connection request to the in-vehicle infotainment system.
[0130] Step S22, receive the request and respond to the connection.
[0131] Step S23: Send the connection status result.
[0132] Step S24: Accept the connection status result.
[0133] Step S25: Determine whether the connection with the vehicle computer is successful.
[0134] In the application, the vehicle-mounted device determines whether the connection is successfully established based on the connection status result sent by the vehicle-mounted infotainment system. If the connection is successful, the system will execute step S26; if the connection fails, the system will execute step S27.
[0135] Step S26: normal use.
[0136] Step S27, continue to send connection requests to the vehicle computer. If the connection still fails after 3 minutes, automatically switch to AP mode and execute step S13.
[0137] Step S28, end.
[0138] The embodiment of the present application realizes the automatic switching of the network connection mode between the vehicle-mounted device and the vehicle-mounted infotainment system through the above method flow. This method significantly improves the convenience of use, reduces the trouble caused by manual adjustment of settings, and also ensures safety during driving, avoiding safety hazards caused by distracted operation. And the vehicle-mounted infotainment system is operated in access point mode as much as possible, so that it can be connected to more network devices, ensuring the efficiency of information acquisition and the ability of users to handle multiple tasks at the same time.
[0139] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0140] The present application also provides a network connection mode switching device for executing the steps in the above network connection mode switching method embodiment. The network connection mode switching device can be a virtual appliance in the terminal device, which is run by the processor of the terminal device, or it can be the terminal device itself.
[0141] like Figure 4 As shown, the network connection mode switching device 100 provided in the embodiment of the present application is applied to an in-vehicle infotainment system, and the device includes:
[0142] A mode confirmation module 101 is used to confirm the operation mode of the vehicle-mounted device;
[0143] The first sending module 102 is used to operate in the station mode and send a connection request signal to the vehicle-mounted device when the vehicle-mounted device operates in the access point mode;
[0144] The second sending module 103 is used to send a mode switching request signal to the vehicle-mounted device if the connection is successful;
[0145] The receiving module 104 is used to receive a confirmation signal sent by the vehicle-mounted device;
[0146] The third sending module 105 is used to send the network name and password of the in-vehicle infotainment system to the in-vehicle device;
[0147] The mode switching module 106 is used to switch to the access point mode and establish a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device, wherein the vehicle-mounted device is used to switch to the site mode and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
[0148] The present application also provides another network connection mode switching device for executing the steps in the above another network connection mode switching method embodiment. The network connection mode switching device can be a virtual appliance in the terminal device, which is run by the processor of the terminal device, or it can be the terminal device itself.
[0149] like Figure 5 As shown, the network connection mode switching device 300 provided in the embodiment of the present application is applied to the in-vehicle infotainment system, and the device includes:
[0150] A connection module 301, configured to establish a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system when operating in the access point mode;
[0151] A first receiving module 302, configured to receive a mode switching request signal sent by the in-vehicle infotainment system;
[0152] The sending module 303 is used to send a confirmation signal to the in-vehicle infotainment system;
[0153] The second receiving module 304 is used to receive the network name and password sent by the in-vehicle infotainment system;
[0154] The mode switching module 305 is used to switch to the site mode and send a connection request signal to the vehicle infotainment system based on the network name and password of the vehicle infotainment system, wherein the vehicle infotainment system is used to switch to the access point mode and establish a connection with the vehicle-mounted device in response to the connection request signal.
[0155] In application, each module in the network connection mode switching device may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.
[0156] like Figure 6 As shown, the embodiment of the present application further provides a terminal device 200, including: at least one processor 201 ( Figure 6 Only one processor is shown in the figure), a memory 202, and a computer program 203 stored in the memory 202 and executable on at least one processor 201, wherein the processor 201 implements the steps in the above-mentioned various method embodiments when executing the computer program 203.
[0157] In the application, the terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 6 It is only an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0158] In applications, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0159] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory may also be used to temporarily store data that has been output or is to be output.
[0160] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0161] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0162] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0163] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0165] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0167] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for switching a network connection mode of a vehicle, characterized in that: Applied to an in-vehicle infotainment system, the method comprises: Confirm the operating mode of the vehicle equipment; When the vehicle-mounted device operates in the access point mode, operating in the station mode and sending a connection request signal to the vehicle-mounted device; If the connection is successful, a mode switching request signal is sent to the vehicle-mounted device; Receiving a confirmation signal sent by the vehicle-mounted device; Sending the network name and password of the in-vehicle infotainment system to the in-vehicle device; Switch to access point mode, and establish a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device, wherein the vehicle-mounted device is used to switch to site mode and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
2. The network connection mode switching method according to claim 1, characterized in that: The switching to the access point mode and establishing a connection with the vehicle-mounted device in response to a connection request signal of the vehicle-mounted device includes: Switching to the access point mode at a preset switching time, and establishing a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device; Among them, the mode switching request signal includes a preset switching time, and the vehicle-mounted device is used to switch to the site mode at the preset switching time, and send a connection request signal to the vehicle-mounted infotainment system based on the network name and password of the vehicle-mounted infotainment system.
3. The network connection mode switching method according to claim 1, characterized in that: If the connection is successful, before sending a mode switching request signal to the vehicle-mounted device, the method further includes: Obtain authentication information of vehicle-mounted equipment; Based on the authentication information, it is confirmed that the in-vehicle device and the in-vehicle infotainment system belong to the same ecosystem.
4. The network connection mode switching method according to claim 1, characterized in that: Also includes: When the vehicle-mounted device operates in the station mode, the device operates in the access point mode and establishes a connection with the vehicle-mounted device in response to a connection request signal from the vehicle-mounted device.
5. A method for switching a network connection mode of a vehicle, characterized in that: Applied to an in-vehicle device, the method comprises: When operating in access point mode, establishing a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system; Receiving a mode switching request signal sent by the in-vehicle infotainment system; Sending a confirmation signal to the in-vehicle infotainment system; Receiving a network name and password sent by the in-vehicle infotainment system; Switch to the site mode, and send a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system, wherein the in-vehicle infotainment system is used to switch to the access point mode, and establish a connection with the in-vehicle device in response to the connection request signal sent by the in-vehicle infotainment system.
6. The network connection mode switching method according to claim 5, characterized in that: The switching to the station mode and sending a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system includes: Switching to the station mode at a preset switching time, and sending a connection request signal to the in-vehicle infotainment system based on the network name and password of the in-vehicle infotainment system; The mode switching request signal includes a preset switching time, and the in-vehicle infotainment system is used to switch to the access point mode at the preset switching time, and establish a connection with the in-vehicle device in response to the connection request signal sent by the in-vehicle device.
7. The network connection mode switching method according to claim 5, characterized in that: Also includes: When operating in station mode, sending a connection request signal to the in-vehicle infotainment system; The in-vehicle infotainment system is used to operate in an access point mode and establish a connection with the in-vehicle device in response to a connection request signal sent by the in-vehicle device.
8. The network connection mode switching method according to claim 7, characterized in that: In the case of operating in the station mode, after sending a connection request signal to the in-vehicle infotainment system, the method includes: Confirm the connection status; If it is confirmed that the connection fails, the mode is switched to the access point mode, and the process returns to the step of establishing a connection with the in-vehicle infotainment system in response to a connection request signal sent by the in-vehicle infotainment system when operating in the access point mode.
9. The network connection mode switching method according to claim 8, characterized in that: The confirming the connection status includes: Based on a connection status signal fed back by the in-vehicle infotainment system, confirming a connection status with the in-vehicle infotainment system; If the connection with the in-vehicle infotainment system is not successful, returning to the step of sending a connection request signal to the in-vehicle infotainment system when operating in the station mode; If the connection with the in-vehicle infotainment system is not successful within the specified time period, it is determined that the connection has failed.
10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the terminal device is an in-vehicle infotainment system, the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program; When the terminal device is a vehicle-mounted device, the processor implements the steps of the method as claimed in any one of claims 5 to 9 when executing the computer program.
Citation Information
Patent Citations
Wireless communication system and wireless communication method
CN106576042A
A method and apparatus for network access
CN109041062A
Binding method and binding tool for vehicle-mounted terminal and wifi equipment and computing equipment
CN110213738A
Double-channel WiFi implementation method of vehicle and vehicle-mounted information entertainment system
CN112468528A
On-vehicle communication device
JP2015220668A
Cited By
Network mode switching method and system
CN120835345A
