Network mode switching method and system

By unloading and calling the driver file in the dynamic link library, the mode switching of the vehicle wireless network module is realized, which solves the problem of complex and inflexible switching in the existing technology and improves the switching efficiency and flexibility.

CN120835345APending Publication Date: 2025-10-24JINGWEI HIRAIN (TIANJIN) RES&DEV CO LTD

Patent Information

Application Number
CN202510978558.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-15
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

In the prior art, the switching method between the WiFi mode and the hotspot mode of the vehicle wireless network module is complex, difficult, and not flexible enough.

Method used

By receiving a mode switching request from a user terminal, uninstalling the driver file of the first network mode, calling the driver file of the second network mode from a preset dynamic link library, and configuring the network communication module using a unified network interface, the network mode switching is achieved.

Benefits of technology

The network mode switching process is simplified, the switching flexibility and efficiency are improved, and the interference with vehicle operations is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120835345A_ABST
    Figure CN120835345A_ABST
Patent Text Reader

Abstract

The invention discloses a network mode switching method and system. The method comprises the following steps: receiving a switching mode request of a user terminal, wherein the switching mode request is used for indicating that the network mode of a vehicle is switched from a first network mode to a second network mode; in response to the mode switching request, unloading a first drive file corresponding to the first network mode; based on the mode switching request, a second drive file of a network communication module corresponding to the second network mode is called from a preset dynamic link library, and the second drive file comprises a second network module parameter corresponding to a first network interface in the network communication module in the second network mode; and through the first network interface, the second drive file is configured to the network communication module so as to realize switching of network modes of the vehicle. According to the embodiment of the invention, parameter calling modes of a plurality of different wireless network modules can be simplified, so that flexible switching between a WiFi mode and a hotspot mode can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of vehicles, and particularly relates to a network mode switching method and system. BACKGROUND

[0002] With the development of networks, wireless network modules have been applied in vehicles to realize remote control of vehicles through wireless network modules, so as to ensure the functions and safety of vehicles.

[0003] In the related art, multiple wireless network modules are usually integrated in an electronic control unit (ECU) of a vehicle, and a WiFi mode (Station mode, STA mode) or a hotspot mode (Access Point mode, AP mode) is set by using the multiple wireless network modules, which is used to provide WiFi services to the outside or connect to a WiFi network in a nearby area, so as to realize remote control of the vehicle.

[0004] In the above related art, for multiple wireless network modules, the communication modes of each wireless network module are different, and the corresponding parameter calling modes are also different, which leads to complex and difficult switching and is not flexible enough in the process of switching between the WiFi mode and the hotspot mode. SUMMARY

[0005] The network mode switching method and system provided in the embodiments of the present application can simplify the parameter calling modes of multiple different wireless network modules, so as to realize flexible switching between the WiFi mode and the hotspot mode.

[0006] In one aspect, the embodiments of the present application provide a network mode switching method, which comprises the following steps:

[0007] receiving a switching mode request of a user terminal, the switching mode request being used to indicate that the network mode of a vehicle is switched from a first network mode to a second network mode;

[0008] in response to the switching mode request, uninstalling a first driver file corresponding to the first network mode, the first driver file comprising first network module parameters corresponding to a first network interface in a network communication module;

[0009] based on the switching mode request, calling a second driver file of the network communication module corresponding to the second network mode from a preset dynamic link library, the second driver file comprising second network module parameters corresponding to the first network interface in the network communication module in the second network mode;

[0010] configuring the second driver file to the network communication module through the first network interface, so as to realize switching of the network mode of the vehicle.

[0011] Optionally, after receiving the switching mode request of the user terminal, the method further comprises:

[0012] obtaining a first current state of the vehicle;

[0013] the unloading of the first driver corresponding to the first network mode in response to the switching mode request comprises:

[0014] in the case of the first current state being an idle state, unloading the first driver corresponding to the first network mode in response to the switching mode request.

[0015] Optionally, the method further comprises:

[0016] in the case of the first current state being a working state, sending a preset prompt information to the user terminal, the preset prompt information being used to prompt that the vehicle is working and cannot be switched.

[0017] Optionally, after the second driver is configured into the network communication module through the first network interface to realize the switching of the network mode of the vehicle, the method further comprises:

[0018] obtaining vehicle timing information and vehicle identity information of the vehicle;

[0019] encrypting the wireless network in the vehicle hotspot mode based on the vehicle timing information and the vehicle identity information to obtain a first vehicle hotspot password;

[0020] taking the vehicle identity information as seed information and the first vehicle hotspot password as key information to generate a hotspot configuration password;

[0021] configuring the hotspot configuration password to the network communication module.

[0022] Optionally, the vehicle timing information comprises a vehicle timing state and a corresponding timing time, and the encryption of the wireless network in the vehicle hotspot mode based on the vehicle timing information and the vehicle identity information to obtain a first vehicle hotspot password comprises:

[0023] in the case of the vehicle timing state being an un-timed state, performing a hash value calculation based on a first timing time and the vehicle identity information to obtain a first vehicle password hash value, the first timing time being a time under an initial clock of the vehicle;

[0024] determining the first vehicle hotspot password of the vehicle in the vehicle hotspot mode based on the first vehicle password hash value.

[0025] Optionally, the wireless network in the vehicle hotspot mode is encrypted based on the vehicle timing information and vehicle identity information, to obtain a first vehicle hotspot password, comprising:

[0026] In the case that the vehicle timing state is a timing state, a second vehicle password hash value is obtained by performing hash value calculation based on a second timing time and the vehicle identity information, the second timing time being a time after the vehicle is timed by a satellite;

[0027] Based on the second vehicle password hash value, the first vehicle hotspot password of the vehicle in the vehicle hotspot mode is determined.

[0028] Optionally, before the second drive file is configured into the network communication module through the first network interface to realize the switching of the network mode of the vehicle, the method further comprises:

[0029] A second current state of the vehicle is obtained;

[0030] In the case that the second current state is determined as an idle state, a password change request is generated based on a password configuration parameter, the password configuration parameter comprising a network name and a network password of the vehicle in the vehicle hotspot mode;

[0031] The password change request is sent to the user terminal, so that the user terminal generates and sends a response request according to the password change request;

[0032] The response request sent by the user terminal is received;

[0033] Based on the response request, a communication connection is established with the user terminal.

[0034] Optionally, in the case that the first current state is an idle state,

[0035] Before the first drive file corresponding to the first network mode is unloaded in response to the switching mode request, the method further comprises:

[0036] Wireless network information of a current position of the vehicle is obtained;

[0037] In the case that the wireless network information does not exist a WiFi signal, the vehicle is controlled to move to a target position, so that the vehicle connects the WiFi signal, the target position being a position where the WiFi signal exists.

[0038] Optionally, in the case that the switching mode request is that the network mode of the vehicle is switched from the vehicle hotspot mode to the vehicle WiFi mode, and the first current state is an idle state,

[0039] After the second driver file is configured into the network communication module through the first network interface to realize switching of the network mode of the vehicle, the method further includes:

[0040] sending log information of the vehicle to a remote server;

[0041] or,

[0042] receiving an upgrade file of the vehicle from the remote server.

[0043] In another aspect, an embodiment of the present application provides a network mode switching system, the system comprising:

[0044] an application layer configured to receive a switching mode request of a user terminal, the switching mode request being configured to indicate that a network mode of a vehicle is switched from a first network mode to a second network mode;

[0045] a core service layer configured to unload a first driver file corresponding to the first network mode in response to the switching mode request, the first driver file being a first network module parameter corresponding to a first network interface in a network communication module;

[0046] based on the switching mode request, calling a second driver file of a network communication module corresponding to the second network mode from a preset dynamic link library, the second driver file being a second network module parameter corresponding to the first network interface in the network communication module under the second network mode;

[0047] configuring the second driver file into the network communication module through the first network interface;

[0048] a hardware interaction layer configured to load the second driver file to realize switching to the second network mode.

[0049] In still another aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0050] the processor, when executing the computer program instructions, implements the network mode switching method of the first aspect.

[0051] In still another aspect, an embodiment of the present application provides a computer storage medium, the computer readable storage medium storing computer program instructions, the computer program instructions, when executed by a processor, implementing the network mode switching method of the first aspect.

[0052] In still another aspect, an embodiment of the present application provides a computer program product, instructions in the computer program product being executed by a processor of an electronic device, so that the electronic device executes the network mode switching method of the first aspect.

[0053] The network mode switching method and system provided by the embodiments of the present application can receive the corresponding drive file through the first network interface during the network mode switching process, so that the first drive file of the first network mode needs to be unloaded in response to the switching mode request, and then the second drive file is called from the preset dynamic link library through the switching mode request, so as to realize the configuration of the network communication module corresponding to the second network mode, thereby realizing the switching of the network mode of the vehicle. In addition, after receiving the switching mode request, the second drive file corresponding to the second network mode can be called from the preset dynamic link library, and the parameters in the second drive file are configured into the network communication module. In this process, the control mode of different network modes does not need to be switched, but only the parameters of the drive file corresponding to different network modes need to be configured, which simplifies the switching mode, and the parameters of the network module are configured through the drive file in the preset dynamic link library and through the unified first network interface, so that the switching of the network mode is more flexible. BRIEF DESCRIPTION OF DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0055] Figure 1 is the architecture diagram of the network mode switching system provided by an embodiment of the present application;

[0056] Figure 2 is the flowchart of the network mode switching method provided by an embodiment of the present application;

[0057] Figure 3 is the flowchart of the hardware interaction layer work provided by an embodiment of the present application;

[0058] Figure 4 is the flowchart of the network mode switching method provided by another embodiment of the present application;

[0059] Figure 5 is the flowchart of the network mode switching method provided by another embodiment of the present application;

[0060] Figure 6 is the structural diagram of the electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION

[0061] The features and exemplary embodiments of the various aspects of the present application will be described in detail below with reference to the drawings. For the purpose of clarity, the description is divided into the following sections: technical solution, technical effects, and specific embodiments. It should be understood that the specific embodiments described herein are merely intended to explain the present application, and are not intended to limit the present application. The present application can be implemented without some of the specific details described below. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.

[0062] It should be noted that the relational terms herein such as first and second and the like are used solely to distinguish one entity or action from another, without necessarily requiring or implying any such actual relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations 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 can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... " does not, without more restrictions, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0063] As described in the background section, in the prior art, there are problems of complex switching mode, difficult switching, and lack of flexibility in the process of switching between WiFi mode and hotspot mode. To solve the problems in the prior art, the embodiments of the present application provide a network mode switching method and system. In the process of network mode switching, the first network interface is used to receive the corresponding driver file, so that in response to the switching mode request, the first driver file of the first network mode needs to be unloaded, and then the second driver file is called from the preset dynamic link library through the switching mode request, so as to realize the configuration of the network communication module corresponding to the second network mode, thereby realizing the switching of the network mode of the vehicle. In addition, after receiving the switching mode request, the second determination file corresponding to the second network mode can be called from the preset dynamic link library, and the parameters in the second driver file are configured into the network communication module. In this process, the control mode of different network modes does not need to be switched, but only the parameters of the driver file corresponding to different network modes need to be configured, which simplifies the switching mode, and the parameters of the network module are configured through the unified first network interface and the driver file in the preset dynamic link library, so that the network mode switching is more flexible.

[0064] The network mode switching system provided by the embodiments of the present application will be introduced first.

[0065] Figure 1An architecture diagram of a network mode switching system provided by an embodiment of the present application is shown. As shown in Figure 1 The network mode switching system can include an application layer 10, a core service layer 11, and a hardware interaction layer 12, and the different layers can communicate with each other through a DBUS bus inter-process communication mode to realize the response function.

[0066] The application layer 10 is configured to receive a switching mode request of a user terminal 13, and the switching mode request is configured to indicate that the network mode of the vehicle is switched from a first network mode to a second network mode.

[0067] The core service layer 11 is configured to unload a first driver file corresponding to the first network mode in response to the switching mode request, and the first driver file is a first network module parameter corresponding to a first network interface in a network communication module 14.

[0068] Based on the switching mode request, a second driver file of the network communication module 14 corresponding to the second network mode is called from a preset dynamic link library, and the second driver file includes a second network module parameter corresponding to the first network interface in the network communication module 14 in the second network mode.

[0069] The second driver file is configured into the network communication module 14 through the first network interface.

[0070] The hardware interaction layer 12 is configured to load the second driver file to realize the switching to the second network mode.

[0071] In some embodiments, the hardware interaction layer 12 is an initialization hardware module, which sets the network mode of the network communication module 14 of the vehicle by interacting with the network communication module 14, and the network mode can include a vehicle WiFi mode and a vehicle hotspot mode, and the number of the network communication module 14 is at least one.

[0072] When the first network mode is the vehicle WiFi mode, the second network mode is the vehicle hotspot mode; and when the first network mode is the vehicle hotspot mode, the second network mode is the vehicle WiFi mode.

[0073] The core service layer 11 can provide the first network interface through the hardware interaction layer 12, and configure the driver file corresponding to each network mode into the network communication module 14 to set the driver information required by the network mode in the network communication module 14.

[0074] The application layer 10 can obtain the network mode and the state of the vehicle through the application, and realize the interaction with the remote server 15 or the user terminal 13, and the user terminal 13 can be a mobile phone or a tablet computer.

[0075] Specifically, the application layer 10 can send or receive the upgrade file of the vehicle to or from the remote server 15, and can also obtain the signal information of the vehicle, thereby realizing the remote control function of the vehicle.

[0076] In some embodiments, the core service layer 11 further embeds a password generation algorithm, determines the hotspot password in the hotspot mode of the vehicle by setting the password, and configures the hotspot password into the network communication module 14 through the unified first network interface, thereby realizing the protection of the vehicle.

[0077] In the embodiments of the present application, the first network interface is used to receive the corresponding drive file during the network mode switching process, so that in response to the switching mode request, the first drive file of the first network mode needs to be unloaded, and then the second drive file is called from the preset dynamic link library through the switching mode request, so as to realize the configuration of the network communication module 14 corresponding to the second network mode, thereby realizing the switching of the network mode of the vehicle. In addition, after receiving the switching mode request, the second determination file corresponding to the second network mode can be called from the preset dynamic link library, and the parameters in the second drive file are configured into the network communication module 14. In this process, the control mode of different network modes does not need to be switched, but only the parameters of the drive file corresponding to different network modes need to be configured, which simplifies the switching mode, and through the calling of the drive file in the preset dynamic link library and the configuration of the parameters of the network module through the unified first network interface, the switching of the network mode is more flexible.

[0078] In some other embodiments, the application layer 10 can also be used to:

[0079] obtain the first current state of the vehicle;

[0080] The core service layer 11 can also be used to:

[0081] In the case that the first current state is an idle state, in response to the switching mode request, the first drive file corresponding to the first network mode is unloaded.

[0082] In some other embodiments, the application layer 10 can also be used to:

[0083] In the case that the first current state is a working state, the preset prompt information is sent to the user terminal 13, and the preset prompt information is used to prompt that the vehicle is working and cannot be switched.

[0084] As an optional implementation, the core service layer 11 can also be used to:

[0085] obtain the vehicle timing information and the vehicle identity information of the vehicle;

[0086] The wireless network in the vehicle hotspot mode is encrypted based on the vehicle timing information and the vehicle identity information, to obtain a first vehicle hotspot password;

[0087] The vehicle identity information is taken as seed information, and the first vehicle hotspot password is taken as key information, to generate a hotspot configuration password;

[0088] The hotspot configuration password is configured to the network communication module 14.

[0089] In some other embodiments, the vehicle timing information can include a vehicle timing state and a corresponding timing time, and the core service layer 11 can be further configured to:

[0090] In a case where the vehicle timing state is an un-timed state, a first vehicle password hash value is obtained by performing a hash value calculation based on the first timing time and the vehicle identity information, the first timing time being a time under an initial clock of the vehicle;

[0091] The first vehicle hotspot password of the vehicle in the vehicle hotspot mode is determined based on the first vehicle password hash value.

[0092] In some other embodiments, the core service layer 11 can be further configured to:

[0093] In a case where the vehicle timing state is a timed state, a second vehicle password hash value is obtained by performing a hash value calculation based on a second timing time and the vehicle identity information, the second timing time being a time after the vehicle is timed by a satellite;

[0094] The first vehicle hotspot password of the vehicle in the vehicle hotspot mode is determined based on the second vehicle password hash value.

[0095] In some other embodiments, the core service layer 11 can be further configured to:

[0096] A second current state of the vehicle is obtained;

[0097] In a case where the second current state is determined to be an idle state, a password change request is generated based on a password configuration parameter, the password configuration parameter including a network name and a network password of the vehicle in the vehicle hotspot mode;

[0098] The password change request is sent to the user terminal 13, so that the user terminal 13 generates and sends a response request according to the password change request;

[0099] The response request sent by the user terminal 13 is received;

[0100] A communication connection is established with the user terminal 13 based on the response request.

[0101] In some embodiments, the core service layer 11 can be further configured to:

[0102] obtain wireless network information of a current position of the vehicle;

[0103] In the case that the wireless network information does not exist a WiFi signal, control the vehicle to move to a target position, so that the vehicle connects the WiFi signal, the target position being a position where the WiFi signal exists.

[0104] In some embodiments, in the case that the switching mode request is that the network mode of the vehicle is switched from the vehicle hotspot mode to the vehicle WiFi mode, and the first current state is the idle state, the application layer 10 can be further configured to:

[0105] send log information of the vehicle to the remote server 15;

[0106] or,

[0107] receive an upgrade file of the vehicle from the remote server 15.

[0108] In some embodiments, based on the network mode switching system described above, the embodiments of the present application provide a network mode switching method, which will be described below.

[0109] Figure 2 A flowchart of the network mode switching method provided by an embodiment of the present application is shown. As shown in Figure 2 the network mode switching method can include S201-S204:

[0110] S201, receive a switching mode request of a user terminal.

[0111] As an example, the switching mode request is used to indicate that the network mode of the vehicle is switched from a first network mode to a second network mode.

[0112] In some embodiments, the application layer can receive the switching mode request sent by the user terminal to switch the network mode.

[0113] In some specific embodiments, taking the vehicle WiFi mode as the first network mode for example, at this time the user operates the user terminal to issue the switching mode request, and then the user terminal transmits the switching mode request to the remote server through Ethernet, and the application layer can receive the switching mode request through Ethernet to start switching from the vehicle WiFi mode to the vehicle hotspot mode.

[0114] In some other embodiments, when the first network mode is the vehicle hotspot mode, at this time the user terminal 13 is directly connected to the hotspot of the vehicle, and the switching mode request can be directly transmitted to the vehicle through the wireless network issued by the vehicle hotspot mode.

[0115] S202, in response to the switching mode request, uninstalling the first drive file corresponding to the first network mode.

[0116] In this embodiment, since the switching of the network mode is realized by using the same first network interface, before switching the network mode, the first drive file corresponding to the first network mode needs to be uninstalled to prepare for switching to the second network mode.

[0117] As an example, the first drive file is the first network module parameter corresponding to the first network interface in the network communication module, and the first network module parameter is the parameter of the network communication module realizing the first network mode.

[0118] S203, based on the switching mode request, calling the second drive file of the network communication module corresponding to the second network mode from the preset dynamic link library.

[0119] In this embodiment, after uninstalling the first drive file, the second network mode of the vehicle can be determined through the switching mode request first, and then the second drive file can be called from the preset dynamic link library through a unified interface to realize the function of the second network mode; wherein the second drive file is the second network module parameter corresponding to the first network interface in the network communication module under the second network mode.

[0120] In some embodiments, the core service layer can store a preset dynamic link library, and the preset dynamic link library respectively stores the first drive file of the first network mode and the second drive file of the second network mode.

[0121] S204, configuring the second drive file to the network communication module through the first network interface to realize the switching of the network mode of the vehicle.

[0122] In this embodiment, the core service layer can configure the second drive file in the network communication module through the first network interface to modify the configuration of the network communication module, realize the configuration of the second network mode, and thus realize the function corresponding to the second network mode.

[0123] In an embodiment of the present application, during the process of switching the network mode, the first network interface can be used to receive the corresponding driver file. Therefore, in response to the mode switching request, the first driver file of the first network mode needs to be uninstalled, and then the second driver file is called from the preset dynamic link library through the mode switching request to implement the configuration of the network communication module corresponding to the second network mode, thereby achieving the switching of the vehicle's network mode. In addition, after receiving the mode switching request, the second determination file corresponding to the second network mode can be called from the preset dynamic link library, and the parameters in the second driver file can be configured in the network communication module. In this process, there is no need to switch the control method of different network modes. It is only necessary to configure the parameters according to the driver files corresponding to different network modes, which simplifies the switching method. In addition, calling the driver file in the preset dynamic link library and configuring the parameters of the network module through the unified first network interface makes the switching of network modes more flexible.

[0124] As an example, in order to better understand the switching process of the network mode, Figure 3 The specific implementation of the hardware interaction layer during the network mode switching process is shown. Figure 3 , the network mode switching method may include:

[0125] S301, obtaining a first network mode of the vehicle;

[0126] S302, initializing the network communication module;

[0127] S303, receiving configuration parameters sent by the core service layer;

[0128] S304: Configure the configuration parameters into the network communication module.

[0129] In this example, when switching the network mode, the hardware interaction layer can read the first network mode of the vehicle at this time, and then initialize the network communication module according to the second network mode based on the unified first network interface, thereby realizing the installation of the startup and wake-up processes, the uninstallation of the shutdown and sleep processes, and the drive file configuration parameter execution command function; after the hardware interaction layer initializes the network communication module, it receives the configuration parameters corresponding to the second network mode sent by the core service layer, and then calls the unified first network interface that communicates with the network communication module to configure the configuration parameters into the network communication module, thereby realizing the dynamic configuration of the network communication module.

[0130] It is worth noting that the configuration parameters may include a second driver file corresponding to the second network mode. When the second network mode is the vehicle hotspot mode, the configuration parameters may also include a hotspot password in the vehicle hotspot mode.

[0131] In executing S302, as an example, the network communication module may be initialized through the first network interface and meaning shown in Table 1 below.

[0132] Table 1

[0133] First network interface Meaning bool install() Install bool uninstall() Uninstall bool executeCmd(const std::string& cmd, int retry) Execute set module parameters

[0134] In this embodiment, by calling the above-mentioned first network interface, the second driver file can be configured in the network communication module, and the corresponding second network module parameters in the network communication module can be modified to achieve dynamic configuration and complete the switching of network modes.

[0135] In S304, in some embodiments, when performing network mode switching, first, in the network mode switching system, based on the above system architecture, the network interaction module can be configured through the unified interface of the hardware interaction layer. The first network interface configured by the hardware interaction layer is shown in Table 2 below:

[0136] Table 2

[0137] Interface Meaning bool init() Initialize bool start() Start void stop() Stop bool setconfig(const WiFiConfig& config) Set configuration parameters

[0138] That is, the network module is initialized through the above interface, the first driver file is uninstalled, and the configuration parameters are configured.

[0139] See also Figure 4 In some other embodiments, in order to reduce the possibility of interference during network mode switching of the vehicle and ensure stable switching of the network mode, after S201, the method may further include:

[0140] S401, obtaining a first current state of the vehicle.

[0141] In this embodiment, when switching the network mode, in order to ensure the normal progress of the network mode switching and reduce the impact of the network mode switching on the vehicle, it is also necessary to obtain the first current state of the vehicle and determine whether the network mode switching can be performed based on the first current state of the vehicle.

[0142] Specifically, the hardware interaction layer can call the vehicle's operating information to determine the vehicle's first current state. For example, the vehicle's speed can be used to determine whether the vehicle is in a working state. If the vehicle's speed is not zero, it indicates that the vehicle's first current state is a working state. If the vehicle's speed is 0, it indicates that the vehicle's first current state is an idle state.

[0143] In this embodiment, when the first current state of the vehicle is the working state, the process proceeds to step S402 .

[0144] S402: Send preset prompt information to the user terminal.

[0145] The preset prompt information is used to prompt that the vehicle is working and cannot perform mode switching, that is, the user terminal is prompted through the preset prompt information, and the mode switching request cannot be sent again until a period of time elapses.

[0146] In S402, when the vehicle is in the working state, it is indicated that the vehicle is driving at this time, and therefore, in order to ensure driving safety, the application layer can send the preset prompt information to the user terminal through the Ethernet, so that the user terminal can display the reason why the network mode switching cannot be performed.

[0147] In some other embodiments, when the first current state is the idle state, S403 is entered.

[0148] S403, in response to the mode switching request, uninstalling the first drive file corresponding to the first network mode.

[0149] S404, based on the mode switching request, calling the second drive file of the network communication module corresponding to the second network mode from the preset dynamic link library.

[0150] S405, configuring the second drive file to the network communication module through the first network interface, so as to realize the switching of the network mode of the vehicle.

[0151] S403 to S405 are the same as S202 to S204 in the above embodiments, and therefore, are not described in detail here for brevity.

[0152] In the embodiments of the present application, whether the network mode switching can be performed is determined through the first current state of the vehicle, which can ensure that the mode switching is performed in the idle state of the vehicle, and reduce the influence of the network mode switching on driving the vehicle.

[0153] In some other embodiments, when the vehicle is in the first idle state, before S202, the method can further include:

[0154] A1, obtaining wireless network information of a current position of the vehicle;

[0155] A2, in a case where the wireless network information does not exist a WiFi signal, controlling the vehicle to move to a target position, so that the vehicle connects the WiFi signal.

[0156] In the embodiments, in order to ensure that the network mode can be normally switched, whether the vehicle WiFi mode is switched to the vehicle hotspot mode or the vehicle hotspot mode is switched to the vehicle WiFi mode, the vehicle needs to be at the target position, so as to ensure that the vehicle can upload the log information of the vehicle or download the upgrade file in the vehicle WiFi mode. As an example, the target position is a position where the WiFi signal exists.

[0157] It is worth mentioning that before S202, wireless network information of the current position of the vehicle needs to be acquired. In the case that there is a WiFi signal at the current position, S202 can be directly executed. In the case that there is no WiFi signal at the current position, the user can control the vehicle to move to the target position to connect the WiFi signal for transmitting the log information of the vehicle to the remote server or downloading the upgrade file of the vehicle through the wireless network.

[0158] In some other embodiments, after the second drive file is configured in the network communication module 14, different network modes can also be prepared at this time to switch the network mode faster.

[0159] Referring to Figure 5 After S204, the method can further include:

[0160] S501, acquiring vehicle timing information and vehicle identity information of the vehicle;

[0161] S502, encrypting the wireless network in the vehicle hotspot mode based on the vehicle timing information and the vehicle identity information to obtain a first vehicle hotspot password;

[0162] S503, taking the vehicle identity information as seed information and the first vehicle hotspot password as key information to generate a hotspot configuration password;

[0163] S504, configuring the hotspot configuration password to the network communication module.

[0164] In this embodiment, when configuring the parameters of the network communication module in the vehicle hotspot mode, the vehicle hotspot password in the vehicle hotspot mode also needs to be configured to ensure the security of the network of the vehicle in the vehicle hotspot mode.

[0165] Specifically, when converting the vehicle WiFi mode into the vehicle hotspot mode, the vehicle timing information and the vehicle identity information of the vehicle are first acquired. The vehicle timing information can represent the vehicle timing state of the vehicle core service layer and the corresponding timing time. The vehicle identity information can be the vehicle frame number, the network communication address, or the model code of the vehicle terminal in the vehicle.

[0166] In some embodiments, when determining the first vehicle hotspot password in the vehicle hotspot mode, the wireless network provided by the vehicle can be encrypted by the vehicle timing information and the vehicle identity information to obtain the first vehicle hotspot password, then the vehicle identity information is taken as the seed information, i.e., the hotspot name, and the first vehicle hotspot password is taken as the key information to generate the hotspot configuration password, so as to encrypt the wireless network provided by the vehicle, and then the hotspot configuration password is configured into the network communication module to provide the hotspot name and the hotspot password of the vehicle hotspot mode by the network communication module, so as to ensure that the user terminal can connect to the wireless network in the vehicle hotspot mode.

[0167] In order to encrypt the hotspot configuration password and improve the security, in some embodiments, S503 can include:

[0168] In the case where the vehicle timing state is the untimed state, the first vehicle password hash value is obtained by performing hash value calculation based on the first timing time and the vehicle identity information.

[0169] Based on the first vehicle password hash value, the first vehicle hotspot password of the vehicle in the vehicle hotspot mode is determined.

[0170] In this embodiment, when determining the first vehicle hotspot password, the first vehicle hotspot password can be determined according to the clock time inside the vehicle as the seed information, and for the clock time inside the vehicle, the time synchronization broadcast needs to be listened to in time to determine when the satellite timing of the vehicle is completed, so as to determine the first vehicle hotspot password.

[0171] It is worth noting that in the network mode switching system, if the system restarts, the system will be in the untimed state at this time, and at this time, the first timing time can be taken as the seed of the encryption algorithm.

[0172] Specifically, in the case where the vehicle timing state is the untimed state, the clock in the core service layer of the vehicle at this time is the clock set inside the hardware interaction layer, i.e., the first timing time, and as an example, the first timing time is the time under the initial clock of the vehicle, at this time, the first timing time and the vehicle identity information can be subjected to hash value calculation to complete the encryption calculation to obtain the first vehicle password hash value, and then the first vehicle password hash value is taken as the key information to generate the hotspot configuration password.

[0173] As an example, the vehicle product name and the year and month can be subjected to hash value calculation to determine the hotspot configuration password in the vehicle hotspot mode.

[0174] In order to encrypt the hotspot configuration password and improve the security, as another implementation manner of the present application, S503 can also include:

[0175] In a case where the vehicle time service state is a time-served state, a second vehicle password hash value is obtained by performing hash value calculation based on a second time service time and vehicle identity information;

[0176] Based on the second vehicle password hash value, a first vehicle hotspot password in the vehicle hotspot mode is determined.

[0177] In some embodiments, the network mode switching system can be satellite time-served by means such as satellite, to ensure the uniformity of the clock signal, thereby ensuring the synchronization of the time of the user terminal, the vehicle and the remote server.

[0178] At this time, the second time service time and the vehicle identity information can be calculated by hash value, to obtain the second vehicle password hash value, wherein the second time service time is the time after the vehicle is time-served by satellite, and then the first vehicle hotspot password is determined based on the second vehicle password hash value. The specific determination method can refer to the encryption method of the hash algorithm in the related technology, and will not be described here.

[0179] In some embodiments, in a case where the vehicle WiFi mode is switched to the vehicle hotspot mode, the hotspot configuration password and the vehicle identity information need to be configured in the network communication module at this time, so that the user terminal can connect to the wireless network provided by the vehicle hotspot mode.

[0180] It is worth noting that the hotspot configuration password in the vehicle hotspot mode can be automatically updated in a preset period, or in the vehicle WiFi mode, the core service layer can call the current time service time to generate a new hotspot configuration password, and transmit it to the remote server for storage. In the next time when switching to the vehicle hotspot mode, the new hotspot configuration password is directly obtained from the remote server, which is not limited here.

[0181] In some other embodiments, in the process of switching the vehicle WiFi mode to the vehicle hotspot mode, in order to ensure that the user terminal 13 can connect to the wireless network provided by the vehicle hotspot mode after the network mode is switched, before S204, the method can further include:

[0182] B1, obtaining a second current state of the vehicle;

[0183] B2, in a case where the second current state is determined to be an idle state, generating a password change request based on the password configuration parameter;

[0184] B3, sending the password change request to the user terminal, so that the user terminal generates and sends a response request according to the password change request;

[0185] B4, receiving the response request sent by the user terminal;

[0186] B5, establish a communication connection with the user terminal based on the response request.

[0187] In this embodiment, since the state of the vehicle can change during the process that the vehicle receives the switching mode request to the network mode switching completion, the second current state of the vehicle needs to be reacquired at this time, and only when the second current state is determined as the idle state, the hotspot configuration password can be updated.

[0188] Specifically, after the time synchronization, the hotspot configuration password is generated, and before the hotspot configuration password is updated, to ensure that the user terminal can establish a communication connection with the application layer, the core service layer can generate a password change request based on the password configuration parameter, wherein the password configuration parameter includes the network name and the network password of the vehicle in the vehicle hotspot mode, and then the core service layer transmits the password change request to the application layer, the application layer sends the password change request to the user terminal and / or the remote server, and the user terminal and / or the remote server agree to the password change request and generate a response request, at this time, the user terminal sends the response request to the application layer, and then the application layer transmits the response request to the core service layer, and at the same time, the application layer establishes a communication connection with the user terminal 13 and / or the remote server based on the response request.

[0189] In some other embodiments, when the second working state of the vehicle is the working state, at this time, no password update is performed, and a communication connection can be established through the hotspot configuration password stored by the remote server, or a period of time can be waited and then the step of acquiring the second current state of the vehicle is returned.

[0190] In some embodiments, when the switching mode request is that the network mode of the vehicle is switched from the vehicle hotspot mode to the vehicle WiFi mode, and the first current state is the idle state, after S204, the method can further include:

[0191] sending the log information of the vehicle to the remote server;

[0192] or,

[0193] receiving the upgrade file of the vehicle from the remote server.

[0194] In this embodiment, when the network mode of the vehicle is switched to the vehicle WiFi mode, data interaction can be performed with the remote server through the communication connection established by the application layer and the remote server. Specifically, the log information of the vehicle can be sent to the remote server, so that the remote server can store the log information of the vehicle, and the upgrade file of the vehicle can also be received from the remote server, which is used for upgrading the vehicle.

[0195] Figure 6 A hardware structure schematic diagram of an electronic device provided by an embodiment of the present application is shown.

[0196] The electronic device can include the processor 601 and the memory 602 having stored thereon computer program instructions.

[0197] In particular, the processor 601 described above can include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits that embody the embodiments of the present application.

[0198] The memory 602 can include a mass storage for data or instructions. By way of example and not limitation, the memory 602 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. In one example, the memory 702 can include removable or non-removable (or fixed) media, where the memory 602 is a nonvolatile solid-state memory. The memory 602 can be internal or external to the integrated gateway disaster recovery device.

[0199] In one example, the memory 602 can be a read-only memory (ROM). In one example, the ROM can be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0200] The memory 602 can include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software that, when executed (by one or more processors), is operable to perform operations described with reference to the network mode switching method according to the first aspect of the present disclosure.

[0201] The processor 601 implements the network mode switching method of the illustrated embodiments by reading and executing computer program instructions stored in the memory 602. Figure 2 The processor 601 implements the network mode switching method of the illustrated embodiments by reading and executing computer program instructions stored in the memory 602.

[0202] In one example, the electronic device can further include a communication interface 603 and a bus 604. Wherein, as shown inFigure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected by the bus 604 and complete communication with each other.

[0203] The communication interface 603 is mainly used to realize the communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0204] The bus 604 includes hardware, software or both to couple components of the electronic device to each other. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or combination of two or more of these. Where appropriate, the bus 604 can include one or more buses. Although the present embodiments describe and show a particular bus, the present application contemplates any suitable bus or interconnect.

[0205] The electronic device can perform the network mode switching method in the embodiments of the present application, thereby realizing the network mode switching method and system described in combination Figures 1-5 with the above embodiments.

[0206] In addition, in combination with the network mode switching method in the above embodiments, the embodiments of the present application can provide a computer storage medium to realize. The computer storage medium has computer program instructions stored thereon; the computer program instructions are executed by the processor to realize any one of the network mode switching methods in the above embodiments.

[0207] In an optional embodiment, in combination with the network mode switching method in the above embodiments, the embodiments of the present application can provide a computer program product to realize, and the instructions in the computer program product are executed by the processor of the electronic device, so that the electronic device can realize any one of the network mode switching methods in the above embodiments.

[0208] It is to be understood that the application is not limited to particular configurations and processes described herein and shown in the drawings. The detailed description is not to be taken in a limiting sense, and the scope of the present application is defined by the appended claims. In the above embodiments, several specific steps are described and illustrated in order to provide a thorough disclosure of the application. However, it can be appreciated that the method process of the present application is not limited to the specifically enumerated steps, and that various changes, modifications and additions can be made thereto by those skilled in the art without departing from the scope of the present application. Further, the scope of the present application is not intended to be limited to particular configurations and process steps described herein and shown in the drawings.

[0209] The functional blocks shown in the structural block diagrams above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium, or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transfer information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranet, and the like.

[0210] It is also to be understood that the example embodiments described herein are based on a series of steps or apparatuses to describe some methods or systems. However, the present application is not limited to the order of the steps described above, that is, the steps can be performed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be performed simultaneously.

[0211] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. Alternatively, computer program instructions can be loaded onto a computer, other programmable data processing apparatus, or other processing devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0212] The above is merely specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein again. It should be understood that the protection scope of the present application is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.

Claims

1. A network mode switching method, characterized by, The method comprises: receiving a switching mode request of a user terminal, the switching mode request being used to indicate that the network mode of a vehicle is switched from a first network mode to a second network mode; in response to the switching mode request, uninstalling a first driver file corresponding to the first network mode, the first driver file comprising first network module parameters corresponding to a first network interface in a network communication module; based on the switching mode request, calling a second driver file of a network communication module corresponding to the second network mode from a preset dynamic link library, the second driver file comprising second network module parameters corresponding to the first network interface in the network communication module in the second network mode; configuring the second driver file to the network communication module through the first network interface to realize the switching of the network mode of the vehicle.

2. The method of claim 1, wherein, After receiving the switching mode request of the user terminal, the method further comprises: obtaining a first current state of the vehicle; the response to the switching mode request, uninstalling the first driver file corresponding to the first network mode, comprises: in the case that the first current state is an idle state, in response to the switching mode request, uninstalling the first driver file corresponding to the first network mode.

3. The method of claim 2, wherein, The method further comprises: in the case that the first current state is a working state, sending preset prompt information to the user terminal, the preset prompt information being used to prompt that the vehicle is working and cannot be switched.

4. The method according to any one of claims 1 to 3, characterized in that, After the second driver file is configured to the network communication module through the first network interface to realize the switching of the network mode of the vehicle, the method further comprises: obtaining vehicle timing information and vehicle identity information of the vehicle; based on the vehicle timing information and the vehicle identity information, encrypting a wireless network in a vehicle hotspot mode to obtain a first vehicle hotspot password; taking the vehicle identity information as seed information and the first vehicle hotspot password as key information to generate a hotspot configuration password; configuring the hotspot configuration password to the network communication module.

5. The method of claim 4, wherein, The vehicle timing information comprises a vehicle timing state and a corresponding timing time, and the encryption of the wireless network in the vehicle hotspot mode based on the vehicle timing information and the vehicle identity information to obtain the first vehicle hotspot password comprises: in the case that the vehicle timing state is an un-timed state, based on a first timing time and the vehicle identity information, a first vehicle password hash value is obtained through hash value calculation, the first timing time being a time under an initial clock of the vehicle; based on the first vehicle password hash value, a first vehicle hotspot password of the vehicle in the vehicle hotspot mode is determined.

6. The method of claim 5, wherein, The encryption of the wireless network in the vehicle hotspot mode based on the vehicle timing information and the vehicle identity information to obtain the first vehicle hotspot password comprises: in the case that the vehicle timing state is a timed state, based on a second timing time and the vehicle identity information, a second vehicle password hash value is obtained through hash value calculation, the second timing time being a time after the vehicle is timed through a satellite. determine, based on the second vehicle password hash value, a first vehicle hotspot password of the vehicle in the vehicle hotspot mode.

7. The method according to any one of claims 1 to 3, characterized in that, Before the configuring, by the first network interface, the second driver file into the network communication module to realize the switching of the network mode of the vehicle, the method further comprises: obtaining a second current state of the vehicle; in a case where the second current state is determined as an idle state, generating a password change request based on a password configuration parameter, the password configuration parameter comprising a network name and a network password of the vehicle in the vehicle hotspot mode; sending the password change request to the user terminal to enable the user terminal to generate and send a response request according to the password change request; receiving the response request sent by the user terminal; establishing a communication connection with the user terminal based on the response request.

8. The method of claim 2 or 3, wherein, in a case where the first current state is an idle state, before the unloading, in response to the mode switching request, the first driver file corresponding to the first network mode, the method further comprises: obtaining wireless network information of a current location of the vehicle; in a case where the wireless network information does not exist a WiFi signal, controlling the vehicle to move to a target location to enable the vehicle to connect to the WiFi signal, the target location being a location where the WiFi signal exists.

9. The method of claim 2 or 3, wherein, in a case where the mode switching request is that the network mode of the vehicle is switched from the vehicle hotspot mode to the vehicle WiFi mode and the first current state is an idle state, after the configuring, by the first network interface, the second driver file into the network communication module to realize the switching of the network mode of the vehicle, the method further comprises: sending log information of the vehicle to a remote server; or receiving an upgrade file of the vehicle from the remote server.

10. A network mode switching system, characterized by, comprises: an application layer, configured to receive a mode switching request of a user terminal, the mode switching request being used to indicate that the network mode of the vehicle is switched from a first network mode to a second network mode; a core service layer, configured to, in response to the mode switching request, unload a first driver file corresponding to the first network mode, the first driver file being a first network module parameter corresponding to a first network interface in a network communication module; based on the mode switching request, call a second driver file of a network communication module corresponding to the second network mode from a preset dynamic link library, the second driver file being a second network module parameter corresponding to the first network interface in the network communication module in the second network mode; configure the second driver file into the network communication module through the first network interface; a hardware interaction layer, configured to load the second driver file to realize the switching to the second network mode.

Citation Information

Patent Citations

  • Network access method, intelligent terminal and WiFi access equipment

    CN103686674A

  • Method for switching working modes of mobile terminal and mobile terminal

    CN106506862A

  • Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal

    CN114585055A

  • Method and device for generating default password of in-vehicle infotainment system, equipment and medium

    CN117216750A

  • Vehicle communication method and device, automobile and storage medium

    CN119012162A

Cited By

  • Vehicle controller area network matrix analysis method and device, terminal and storage medium

    CN121985062A