Configuration method and device, electronic equipment, vehicle and storage medium
By determining the target module and configuring functions based on the performance parameters of the wireless communication module in the vehicle, the function allocation problem of multiple Wi-Fi chips is solved, and the overall performance and user experience are improved.
Patent Information
- Application Number
- CN202510662748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-09-23
AI Technical Summary
When there are at least two Wi-Fi chips in a vehicle, how to allocate functions to meet users' different scenario needs and improve overall performance.
By responding to the start-up instruction of the target wireless working mode, based on the performance parameters of at least two wireless communication modules, a target wireless communication module that matches the performance required by the target wireless working mode is determined from the wireless communication modules of the electronic device, and the functions corresponding to the target wireless working mode are configured on the matching module.
It achieves a reasonable distribution of functional loads on at least two chips, improves overall performance and the freedom of chip selection, meets users' performance requirements in different scenarios, and enhances user experience.
Smart Images

Figure CN120692574A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart cockpit and communication technology, and in particular to a configuration method, device, electronic device, vehicle and storage medium. Background Art
[0002] With the development of smart cars, which integrate current mobile internet functionality, Wi-Fi requirements are becoming increasingly stringent. Wi-Fi is used for connectivity between cars and mobile phones, between various display screens within cars, and between cars and IoT devices. With Wi-Fi's increasing use cases in smart cars, a single Wi-Fi chip is unlikely to meet all user needs.
[0003] When there are at least two Wi-Fi chips in a vehicle, how to allocate functions among the at least two chips is a technical problem that needs to be solved. Summary of the Invention
[0004] The present application aims to solve one of the technical problems in the related art at least to a certain extent.
[0005] To this end, the present application proposes a configuration method, device, electronic device, vehicle and storage medium to achieve a reasonable allocation of functions corresponding to wireless working modes on at least two chips to improve overall performance, while increasing the freedom of chip selection, thereby meeting the performance requirements of users in different scenarios and improving user experience.
[0006] In one aspect, an embodiment of the present application provides a configuration method, including:
[0007] In response to an instruction to start a target wireless operating mode, determining, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless operating mode based on performance parameters of the at least two wireless communication modules;
[0008] The function corresponding to the target wireless working mode is configured on the target wireless communication module.
[0009] Another aspect of the present application provides a configuration device, including:
[0010] The determination module is used to respond to the start instruction of the target wireless working mode and determine, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless working mode based on the performance parameters of the at least two wireless communication modules.
[0011] The configuration module is used to configure the function corresponding to the target wireless working mode on the target wireless communication module.
[0012] On the other hand, an embodiment of the present application proposes a smart cockpit, characterized in that it includes at least two wireless communication modules and a processor; the processor is used to respond to the start-up instruction of the target wireless working mode, and according to the performance parameters of the at least two wireless communication modules, determine the target wireless communication module that matches the performance required by the target wireless working mode from the at least two wireless communication modules of the electronic device, and configure the functions corresponding to the target wireless working mode on the target wireless communication module.
[0013] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method described in the above aspect is implemented.
[0014] Another embodiment of the present application proposes a vehicle, including: the smart cockpit described in the aforementioned aspect.
[0015] Another aspect of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the aforementioned aspect is implemented.
[0016] Another embodiment of the present application provides a computer program product having a computer program stored thereon, which implements the method described in the above aspect when the program is executed by a processor.
[0017] The configuration method, device, electronic device, vehicle and storage medium proposed in this application respond to the start instruction of the target wireless working mode, and determine the target wireless communication module that matches the performance required by the target wireless working mode from at least two wireless communication modules of the electronic device based on the performance parameters of at least two wireless communication modules, and configure the functions corresponding to the target wireless working mode on the matching target wireless communication module, thereby realizing a reasonable distribution of functional loads on at least two chips to improve overall performance, while increasing the freedom of chip selection, meeting the performance requirements of users in different scenarios, and improving user experience.
[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0020] Figure 1 A flowchart of a configuration method provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of another configuration method provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of another configuration method provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a configuration principle provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of a configuration scenario provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of a configuration device provided in an embodiment of the present application;
[0026] Figure 7 A block diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0028] The following describes the configuration method, device, electronic device, vehicle, and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0029] Figure 1 A flowchart of a configuration method provided in an embodiment of the present application.
[0030] The present embodiment uses the configuration method configured in a configuration device as an example. The configuration device can be applied to any electronic device to enable the electronic device to perform the functions corresponding to the wireless working mode. The electronic devices include vehicles, smartphones, smart wearable devices, etc., which are not limited in this embodiment.
[0031] like Figure 1 As shown, the method may include the following steps:
[0032] Step 101: In response to a target wireless operating mode activation instruction, a target wireless communication module matching the performance required by the target wireless operating mode is determined from at least two wireless communication modules of an electronic device according to performance parameters of at least two wireless communication modules.
[0033] The wireless working mode includes at least one of a hotspot mode and a mobile station STA mode, and the hotspot mode includes a hotspot mode with a network sharing function enabled and a hotspot mode without a network sharing function enabled. The activated target wireless working mode can be one or more of the above wireless working modes.
[0034] The wireless communication module is a module that can realize the wireless local area network function, such as a wireless communication chip, including a Wi-Fi chip, a Bluetooth chip, and a ZigBee chip, etc., which is not limited in this embodiment.
[0035] In an embodiment of the present application, the target wireless communication chip that matches the target wireless working mode can be a target wireless communication chip that matches the performance requirements required in the target wireless working mode, wherein the types of target wireless working modes are different, the functions corresponding to the target wireless working modes are different, and the required performance is also different. In order to improve the overall performance of the device, the matching target wireless communication chips are also different. As an implementation method, the set correspondence information is obtained, wherein the correspondence information is determined based on the performance required by the wireless working mode and the performance parameters of the wireless communication module, and the correspondence information includes the correspondence between the target wireless working mode and the target wireless communication module. The correspondence information is queried to determine the target wireless communication module that matches the target wireless working mode to be started from at least two wireless communication modules.
[0036] In the embodiment of the present application, the performance parameters of each wireless communication module are used to indicate the strength of the performance of each wireless communication module. The performance parameters include one or more of the supported wireless communication protocols, supported frequency band types (such as the frequency corresponding to the frequency band, dual band, single band, etc.), and the number of supported accessible devices. The activation of the target wireless working mode can be activated in response to the user's operation on the interactive interface of the electronic device, or automatically activated based on detection, such as automatically activated when the presence of a wireless local area network is detected. The performance required by the target wireless working mode to be activated is matched with the performance corresponding to the performance parameters of at least two wireless communication modules to determine the wireless communication module that matches the performance required by the target wireless working mode to be activated. Based on the target wireless working mode to be activated, the wireless communication module is allocated so that at least two wireless communication modules in the electronic device can be flexibly selected from different manufacturers. Compared with the related art that requires selecting similar communication modules from the same manufacturer, the flexibility of selection is improved, the restrictions on the use scenarios of wireless communication modules with lower performance are reduced, and the cost is reduced.
[0037] Step 102: Configure the function corresponding to the target wireless working mode on the target wireless communication module.
[0038] Among them, the functions corresponding to different target wireless working modes may be different. The functions corresponding to the target wireless working mode are configured on the target wireless communication module that matches the performance required by the target wireless working mode, so that the target wireless communication module can better realize the functions of the corresponding target wireless working mode, improve the current wireless access requirements, improve the overall performance and improve the user experience.
[0039] For example, if the function corresponding to the hotspot mode is configured on the target wireless communication module, the target wireless communication module acts as a wireless access point (AP), which allows wireless devices (STA, Station) to connect to the wired network. That is, in AP mode, the target wireless communication module acts as a network center node to provide wireless access services. Specifically, if the AP mode is an AP mode with the network sharing function enabled, the function implemented is that the AP acts as a bridge between the wireless local area network (WLAN) and the wired local area network (LAN), allowing wireless devices to access the Internet or other network resources through Wi-Fi. If the AP mode is an AP mode without the network sharing function enabled, the connection management of the wireless device is implemented, that is, the wireless device is allowed to access electronic devices through this mode, for example, car equipment. Based on the method of this application, the content of the mobile phone can be projected onto the screen of the car equipment. In STA mode, the functions implemented include the target wireless communication module acting as a network terminal node, relying on the AP to access the network.
[0040] In the configuration method of the embodiment of the present application, in response to the start-up instruction of the target wireless working mode, based on the performance parameters of at least two wireless communication modules, a target wireless communication module that matches the performance required by the target wireless working mode is determined from at least two wireless communication modules of the electronic device, and the functions corresponding to the target wireless working mode are configured on the matching target wireless communication module, so as to realize the reasonable distribution of functional load on at least two chips to improve the overall performance, while increasing the freedom of chip selection, meeting the performance requirements of users in different scenarios, and improving the user experience.
[0041] Based on the above embodiments, Figure 2 A flow chart of another configuration method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method comprises the following steps:
[0042] Step 201: Determine the performance requirement of the target wireless working mode according to at least one of the importance and usage frequency of the function corresponding to the target wireless working mode.
[0043] Among them, since different target wireless working modes require different performance, that is, the performance requirements under different target wireless working modes are different, it is necessary to select a target wireless communication module that matches the performance required by the target wireless working mode from at least two wireless communication modules to meet the performance requirements of different target wireless working modes, while improving the rationality of resource allocation.
[0044] In a first implementation of an embodiment of the present application, the performance requirements under the target wireless working mode are determined based on the importance of the function corresponding to the target wireless working mode, wherein the importance of the function corresponding to the target wireless working mode can be evaluated based on at least one of the function coverage, signal strength, connection capacity, concurrency performance, transmission rate and delay, energy consumption and security corresponding to the target wireless working mode. The greater the importance of the function corresponding to the target wireless working mode, the higher the performance requirements under this target wireless working mode. Conversely, the smaller the importance of the function corresponding to the target wireless working mode, the lower the required performance under this target wireless working mode, that is, the higher the performance requirements. In other words, the greater the importance of the function corresponding to the target wireless working mode, the higher the performance of the chip required to implement the function corresponding to the target wireless working mode, so as to ensure the stability of the important function corresponding to the target wireless working mode.
[0045] In a second implementation of the embodiment of the present application, the performance requirements under the target wireless working mode are determined based on the frequency of use of the function corresponding to the target wireless working mode, wherein the higher the frequency of use of the function corresponding to the target wireless working mode, the higher the performance of the chip required to implement the function corresponding to the target wireless working mode; conversely, the lower the frequency of use of the function corresponding to the target wireless working mode, the lower the performance requirements under the target wireless working mode, that is, the lower the performance requirements of the chip implementing the function corresponding to the target wireless working mode. In other words, the higher the frequency of use of the function corresponding to the target wireless working mode, the higher the performance of the chip required to implement the function corresponding to the target wireless working mode, so as to ensure the stability of the function corresponding to the target wireless working mode that is used frequently.
[0046] In a third implementation method of the embodiment of the present application, the performance requirements under the target wireless working mode are determined based on the frequency of use and importance of the functions corresponding to the target wireless working mode, wherein the frequency of use and importance of the functions corresponding to the target wireless working mode are positively correlated with the performance of the chip that implements the functions corresponding to the target wireless working mode. The relevant explanations of the aforementioned two implementation methods are also applicable to this implementation method, and the principles are the same, so they will not be repeated here.
[0047] Step 202: Determine a corresponding relationship based on the performance requirements in the target wireless working mode and the performance parameters of at least two wireless communication modules, and generate corresponding relationship information based on the corresponding relationship.
[0048] In an embodiment of the present application, the performance size of each wireless communication module can be determined based on the performance parameters of each wireless communication module. For example, the performance parameters include the supported protocol type, whether the dual-band mode is supported, and the number of supported access devices. As an example, the wireless communication module includes a wireless communication chip, and at least two wireless communication modules include two wireless communication chips, referred to as a first wireless communication chip and a second wireless communication chip. The first wireless communication chip supports the first performance parameters, including the protocol types such as Wi-Fi7, support for dual-band wireless working mode, and a higher number of supported access devices. The second wireless communication chip supports the second performance parameters, including the protocol types such as Wi-Fi5, support for single-band wireless working mode, and a smaller number of supported access devices. In this case, the performance of the first wireless communication chip is higher than that of the second wireless communication chip.
[0049] Thus, the performance required by the target wireless operating mode is compared with the performance parameters corresponding to each wireless communication module to determine the target wireless communication module that matches the performance required by the target wireless operating mode. As an implementation method, the wireless communication module with the smallest performance gap with the target wireless operating mode is selected as the target wireless communication module. Furthermore, a correspondence is established between the target wireless operating mode and the target wireless communication module, and correspondence information is generated based on the correspondence. If the correspondence information already exists, the correspondence between the target wireless operating mode and the target wireless communication module is used to update the correspondence information. As an implementation method, the correspondence information is stored in a correspondence table. That is, the correspondence table stores the correspondence between each wireless operating mode and the corresponding target wireless communication module. As another implementation method, the correspondences can also be described in text or graphically, which is not limited in this embodiment.
[0050] Step 203 : Acquire and query the corresponding relationship to determine a target wireless communication module that matches the performance required by the target wireless working mode from at least two wireless communication modules.
[0051] As an implementation manner, in response to the start instruction of the target wireless working mode, the acquired corresponding relationship is queried according to the currently triggered target wireless working mode to obtain the target wireless communication module corresponding to the target wireless working mode.
[0052] Step 204: Configure the function corresponding to the target wireless working mode on the target wireless communication module.
[0053] In the embodiment of the present application, the function corresponding to the target wireless working mode is configured on the matching target wireless communication module, so that the target wireless communication module can implement the function corresponding to the target wireless working mode.
[0054] As an implementation method, a wireless network interface corresponding to the target wireless working mode is created on the target wireless communication module, and the service process corresponding to the target wireless communication module is determined based on the identification information of the wireless network interface. Based on the service process, the functions corresponding to the target wireless working mode are configured on the target wireless communication module. The specific subsequent embodiments will be described in detail and will not be repeated here.
[0055] In the configuration method of the embodiment of the present application, in response to the start-up instruction of the target wireless working mode, the performance required for the target working mode is determined based on the importance and usage frequency of the functions corresponding to the target wireless working mode, and the target wireless communication module matching the target wireless working mode is determined from at least two wireless communication modules of the electronic device based on the required performance. Then, the functions corresponding to the target wireless working mode that meet at least one of the important functions and high usage frequency are configured on a chip with higher performance, while the functions corresponding to the target wireless working mode with weak functional importance and low usage frequency are configured on a chip with lower performance, thereby realizing a reasonable distribution of functional loads on at least two chips to improve overall performance, while increasing the freedom of chip selection and improving user experience.
[0056] Based on the above embodiment, the present application embodiment provides another configuration method. Figure 3 A flow chart of another configuration method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method comprises the following steps:
[0057] Step 301: Acquire module indication information corresponding to the target wireless operating mode.
[0058] In the embodiments of the present application, the module indication information is used to indicate that the communication module corresponding to the target wireless operating mode is the target wireless communication module, and that the performance parameters of the target wireless communication module match the performance required by the target wireless operating mode. In other words, the module indication information indicates the correspondence between the target wireless operating mode and the corresponding target wireless communication module. As an implementation method, this correspondence is determined based on the performance required by the target wireless operating mode. Different module indication information may be set for different target wireless operating modes with different required performance.
[0059] For example, the module indication information includes the value of the property wifi.softap.iface.on.dual.wlan. The module indication information indicates the target wireless communication module corresponding to the corresponding target wireless working mode, such as the identification information of the target wireless communication module. That is to say, by determining the module indication information, the identification information of the target wireless communication module corresponding to the target wireless working mode can be determined. Through the identification information, the corresponding target wireless communication module can be determined.
[0060] Step 302: Establish a correspondence between a wireless working mode and a corresponding target wireless communication module according to the module indication information, and generate correspondence information according to the correspondence.
[0061] Different target wireless operating modes implement different functions, and different target wireless communication chips can be used to implement these functions. Determining the type of wireless operating mode involves, as an implementation, determining the hotspot mode based on attribute information of the hotspot mode, where the attribute information includes at least one of a frequency band and whether network sharing is enabled. The mobile station mode is determined based on the identification information of the mobile station. For example, two mobile station modes with identification information of STA1 and STA2 correspond to two types of mobile station modes.
[0062] In the embodiment of the present application, the module indication information indicates performance information, that is, the corresponding module indication information can be determined based on the performance required by the target wireless operating mode, and the wireless communication module also has corresponding performance. Therefore, based on the performance, the correspondence between the module indication information and the target wireless communication module can be determined. Therefore, based on the determined module indication information, the correspondence between the target wireless operating mode and the corresponding target wireless communication module can be determined, and then, based on the correspondence, correspondence information is generated. Among them, the relevant explanations about the correspondence and correspondence information can refer to the explanations in the aforementioned embodiments. The principles are the same and will not be repeated here.
[0063] As an implementation method, when hotspot modes include multiple types, for any hotspot mode, the type of hotspot mode is determined based on at least one of the frequency band and status of the hotspot mode, wherein the status is used to indicate whether network sharing is enabled in the hotspot mode. The module indication information corresponding to the current hotspot mode is determined, and a correspondence between the hotspot mode and the corresponding target wireless communication module is established based on the module indication information. The frequency band is, for example, a 2.4 GHz frequency band or a 5 GHz frequency band. The type and range of the frequency band are not limited in the embodiments of the present application.
[0064] The mobile station mode may also include different types of mobile station modes. For any mobile station mode identification information, the corresponding module indication information is determined. Based on the module indication information, a correspondence between the mobile station mode and the corresponding target wireless communication module is established. The principles are the same and will not be repeated here.
[0065] Step 303: Acquire and query corresponding relationship information to determine a target wireless communication module from at least two wireless communication modules.
[0066] As an implementation method, in response to the target wireless working mode start instruction, according to the currently triggered target wireless working mode, the obtained corresponding relationship information is queried to obtain the identification information of the corresponding target wireless communication module. As an example, Figure 4 A schematic diagram of a configuration principle provided in an embodiment of the present application is provided. In the embodiment of the present application, two wireless communication modules are provided, which are identified as a first wireless communication module and a second wireless communication module. Figure 4 As shown, in actual scenarios, the mobile station mode is usually one, so, Figure 4As shown, for mobile station mode, as an implementation method, to simplify the steps, the set correspondence information includes the correspondence between the mobile station mode and the wireless communication module. Based on the set correspondence information, a query is performed to determine the target wireless communication module from at least two wireless communication modules, i.e., the second wireless communication module corresponding to the mobile station mode. For hotspot mode, in actual scenarios, there are generally multiple hotspot modes. Therefore, for each hotspot mode, module indication information corresponding to the hotspot mode is determined, and a correspondence is established between the hotspot mode type and the corresponding target wireless communication module based on the chip indication information. For example, the module indication information includes the value of the property wifi.softap.iface.on.dual.wlan. If the hotspot mode is a non-network sharing hotspot mode in the 2.4GHz frequency band (identified as LoHs 2.4G), where LoHs refers to a local hotspot, i.e., a hotspot without network sharing enabled, and the corresponding property wifi.softap.iface.on.dual.wlan has a value of 2stIfaceonLocal, then the correspondence information is queried to determine that the corresponding target wireless communication module is the second wireless communication module. If the hotspot mode is the non-network sharing hotspot mode in the 5GHz frequency band (identified as LoHs 5G), the corresponding propertywifi.softap.iface.on.dual.wlan value is 1stIfaceonLocal, then query the corresponding relationship information to determine that the corresponding target wireless communication module is the first wireless communication module; if the hotspot mode is the network sharing hotspot mode in the 2.4GHz frequency band (identified as Tether 2.4G), the corresponding propertywifi.softap.iface.on.dual.wlan value is IfaceonTether1, then query the corresponding relationship information to determine that the corresponding target wireless communication module is the first wireless communication module; if the hotspot mode is the network sharing hotspot mode in the 5GHz frequency band (identified as Tether 5G), the corresponding propertywifi.softap.iface.on.dual.wlan value is IfaceonTether2, then query the corresponding relationship information to determine that the corresponding target wireless communication module is the first wireless communication module.
[0067] Step 304: Create a wireless network interface corresponding to the target wireless operating mode on the target wireless communication module.
[0068] As an example, a wireless network interface is an interface of Iface.
[0069] As an implementation manner, a wireless network interface corresponding to the target wireless working mode is created on the corresponding target wireless communication module, that is, different target wireless working modes may correspond to different wireless network interfaces.
[0070] As another implementation manner, according to the module indication information corresponding to the wireless working mode, a wireless network interface corresponding to the type of the target wireless working mode is created on the target wireless communication module corresponding to the target wireless working mode.
[0071] like Figure 4 As shown, taking the hotspot mode as an example, for each hotspot mode, the wireless network interface corresponding to each hotspot mode is determined, namely, the non-network sharing hotspot mode of the 2.4GHz frequency band is set on the second wireless communication module, and the corresponding wireless network interface is identified as wlan1; the network sharing hotspot mode of the 2.4GHz frequency band is set on the first wireless communication module, and the corresponding wireless network interface is identified as swlan2; the network sharing hotspot mode of the 5GHz frequency band is set on the first wireless communication module, and the corresponding wireless network interface is identified as swlan3; the non-network sharing hotspot mode of the 5GHz frequency band is set on the first wireless communication module, and the corresponding wireless network interface is identified as swlan4. Among them, wlan1, swlan2, swlan3, and swlan4 are all identification information of the corresponding wireless network interfaces.
[0072] Step 305: Determine the service process corresponding to the target wireless communication module according to the identification information of the wireless network interface.
[0073] In the embodiment of the present application, since at least two wireless communication modules of the same manufacturer or the same model correspond to the same service process, and since at least two wireless communication modules in the present application correspond to different scenarios or are of different models, the service processes corresponding to different target wireless communication modules are different, thereby realizing the bottom layer adaptation to different wireless communication modules. Among them, the identification information of the wireless network interface and the service process corresponding to the target wireless communication module have a corresponding relationship, and according to the corresponding relationship, the service process of the target wireless communication module corresponding to the identification information of the wireless network interface is determined. It should be noted that the identification information of the wireless network interface carries the indication information of the function corresponding to the wireless working mode, so that when determining the service process corresponding to the target wireless communication module, not only which chip is currently used is considered, but also the function corresponding to the wireless working mode to be configured is considered, thereby realizing accurate determination of the service process corresponding to the target wireless communication module and improving the accuracy of service process determination. For example, Figure 4As shown, in one scenario, the identification information of the wireless network interface is swlan2, and the service process corresponding to the first wireless communication module includes hostapd; in the second scenario, the identification information of the wireless network interface is swlan3, and the service process corresponding to the first wireless communication module includes hostapd; in the third scenario, the identification information of the wireless network interface is swlan4, the service process corresponding to the first wireless communication module includes hostapd, and the name of the interface library is interface library 1;
[0074] In the fourth scenario, the identification information of the wireless network interface is wlan1, and the service process corresponding to the second wireless communication module includes hostapd_ifx.
[0075] In the fifth scenario, the identification information of the wireless network interface is wlan0, and the service process corresponding to the second wireless communication module includes wpa-supplicant_ifx.
[0076] Step 306: Based on the service process, configure the function corresponding to the target wireless working mode on the target wireless communication module.
[0077] In one implementation of the embodiment of the present application, a corresponding chip interface library can also be determined based on the identification information of the target wireless communication module. Different chips or chip manufacturers may have different corresponding chip interface libraries. Furthermore, based on the service process and the chip interface library, the functions corresponding to the target wireless operating mode are configured on the target wireless communication module, so that the target wireless communication module can implement the functions corresponding to the target wireless operating mode.
[0078] As an example, take two wireless communication modules as an example, and the wireless communication module identifier is represented by ChipID=0 or ChipID=1. For example, ChipID=0 represents the first wireless communication module, and ChipID=1 represents the second wireless communication module. The performance of the first wireless communication module is higher than that of the second wireless communication module. The function corresponding to the target wireless working mode configured for the first wireless communication module includes one of the following: a function corresponding to the network sharing hotspot mode of the first frequency band, a function corresponding to the network sharing hotspot mode of the second frequency band, and a function corresponding to the non-network sharing hotspot mode of the second frequency band.
[0079] The second wireless communication module is configured with a target wireless working mode corresponding to one of the following functions: a function corresponding to a mobile station STA mode and a function corresponding to a non-network shared hotspot mode of the first frequency band.
[0080] As an example, Figure 5 As shown, Figure 5A schematic diagram of a configuration scenario provided in an embodiment of the present application is provided, taking the wireless communication module including two wireless communication chips as an example, referred to as a first wireless communication chip and a second wireless communication chip, such as Figure 5 As shown, the first wireless communication chip supports the first performance parameter, and the second wireless communication chip supports the second performance parameter, wherein the protocol types supported by the first performance parameter include Wi-Fi7, high rate, support for dual-band (2.4G and 5G) wireless working mode, and the number of supported access devices is the first number; the protocol types supported by the second performance parameter include Wi-Fi5, low rate, support for single-band (2.4G) wireless working mode, and the number of supported access devices is the second number, wherein the first number is greater than the second number, for example, the first number is 10 and the second number is 3, that is, the performance of the first wireless communication module is higher than that of the second wireless communication module. Therefore, the first wireless communication chip can be used as the main chip and the second wireless communication chip as the auxiliary chip. The first wireless communication module as the main chip is mainly responsible for the services with high transmission requirements for interconnection and interoperability and providing Internet access services as a hotspot. The functions corresponding to the configured wireless working modes include: the functions corresponding to the network sharing hotspot mode of the 2.4GHz frequency band, the functions corresponding to the network sharing hotspot mode of the 5GHz frequency band, and the functions corresponding to the non-network sharing hotspot mode of the 5GHz frequency band. Among them, the functions corresponding to the non-network sharing hotspot mode of the 5GHz frequency band realize the services with high transmission requirements for local interconnection and interoperability, and the functions corresponding to the network sharing hotspot mode of the 2.4GHz frequency band and the network sharing hotspot mode of the 5GHz frequency band realize the services of providing Internet access as a hotspot. The second wireless communication chip, serving as a secondary chip, is primarily responsible for traditional Wi-Fi Station services and local transmission demand services. The functions corresponding to the configurable wireless working modes include: functions corresponding to the mobile station STA mode and functions corresponding to the non-network shared hotspot mode in the 2.4GHz frequency band. The functions corresponding to the mobile station STA mode implement traditional Wi-Fi Station services, while the functions corresponding to the non-network shared hotspot mode in the 2.4GHz frequency band implement local transmission demand services. This allows the selection of a more suitable target wireless communication chip based on the functions to be implemented and the frequency of use of the functions, thereby achieving reasonable distribution of functional loads and improving reliability. At the same time, when selecting between the two chips during the product development phase, it also reduces restrictions on the selection of low-performance chips, thereby reducing the cost of electronic equipment.
[0081] It should be noted that the embodiments of the present application are illustrated by taking two wireless communication chips as an example. In actual application scenarios, based on wireless communication and performance requirements, more than two chips can be set, such as three chips with different performance parameters, to meet the needs of different scenarios and improve the overall performance of the device. As an example, the functions corresponding to the wireless working mode configured by the first wireless communication chip include: functions corresponding to the network sharing hotspot mode of the 2.4GHz frequency band, functions corresponding to the network sharing hotspot mode of the 5GHz frequency band, and functions corresponding to the non-network sharing hotspot mode of the 5GHz frequency band; the functions corresponding to the wireless working mode configured by the second wireless communication chip include: functions corresponding to the non-network sharing hotspot mode of the 2.4GHz frequency band; the functions corresponding to the wireless working mode configured by the third wireless communication chip include: functions corresponding to the mobile station STA mode, thereby realizing the use of multiple chips for configuration, improving the flexibility of chip selection, and improving the overall performance of the device.
[0082] For example, as technology develops, if wireless networks have more than two frequency bands, such as three, the first chip with the highest performance can be used to configure the functions corresponding to the multi-band wireless operating mode, the second chip with the second lowest performance can be used to configure the functions corresponding to the second frequency band wireless operating mode, and the third chip with the lowest performance can be used to configure the functions corresponding to the third frequency band wireless operating mode and the functions corresponding to the mobile station STA mode. The performance required for the second frequency band wireless operating mode is higher than that required for the third frequency band wireless operating mode.
[0083] In the configuration method of the embodiment of the present application, for different wireless communication modules, based on the wireless working mode and the set correspondence information, the target wireless communication module is determined from multiple wireless communication modules to achieve a reasonable distribution of functional loads on at least two chips to improve overall performance.
[0084] Based on the above embodiment, generally speaking, hotspot mode includes multiple types. Taking the case where the target wireless working mode includes hotspot mode as an example, the configuration method of the embodiment of the present application is described in the calling steps from the Framework to the HAL layer on the Android platform. The implementation principle of the mobile station mode is similar and is not limited in this embodiment. Specifically, it includes:
[0085] Step 1: APP: Initialize a SAP. The APP layer is responsible for initializing a service access point (SAP), and one service access point corresponds to one target wireless working mode.
[0086] Step 2: Wi-FiManager: Different interfaces represent different SAP types (Tether, LoHs1, and LoHs2). Wi-FiManager is responsible for managing different interfaces, each representing a different type of SAP, such as Tether, LoHs1, and LoHs2.
[0087] The third step is Wi-Fi service: different trackers and configuration information are maintained for different types of SAP implementation functions. The configuration information includes network parameters, security settings, etc.
[0088] Step 4, Wi-Fi service: Set the value of the chip indication information according to the LohsType of the config, that is, the property value. The property value is used to map the target wireless working mode and the chip identification information ChipId.
[0089] Step 5, Wi-Fi service: Use Property to map the target wireless working mode and ChipId, that is, establish a correspondence between the target wireless working mode and the target wireless communication module. For example, ChipId = 0 corresponds to the main chip, that is, the first wireless communication module, and 1 corresponds to the auxiliary chip, that is, the second wireless communication module. This mapping helps the system correctly assign network functions to the corresponding hardware chips, that is, configure the functions corresponding to the target wireless working mode on the matching target wireless communication module.
[0090] The sixth step is the Wi-Fi hardware abstraction layer HAL: ChipId = 0 corresponds to one chip interface library, and ChipId = 1 corresponds to another chip interface library. That is to say, different chips have different corresponding interface libraries. The interface library includes a driver, so that the corresponding driver can be called according to the chip type.
[0091] Step 7. When the target wireless operating mode includes hotspot mode, at the hostapd HAL layer, the service processes corresponding to the first and second wireless communication modules are determined to use hostapd or hostapd_ifx based on the passed iface parameter, i.e., the name of the wireless network interface. Hostapd is a userspace daemon or service process, also known as middleware, used to implement IEEE 802.11 APs (access points) and authentication servers. Hostapd_ifx is an extension of this application based on different chipsets to enable different service processes for different chipsets.
[0092] Furthermore, based on the chip interface library and service process of the target wireless communication module, the functions corresponding to the target wireless working mode are configured on the target wireless communication module to complete the communication between devices. For example, the content of the mobile phone can be projected onto the car screen, or the car device can be set to the network sharing hotspot mode to enable mobile phones and other electronic devices to access the Internet through the car device, which increases convenience.
[0093] In order to implement the above embodiment, the embodiment of the present application also proposes a configuration device.
[0094] Figure 6 A schematic diagram of the structure of a configuration device provided in an embodiment of the present application.
[0095] like Figure 6 As shown, the device may include:
[0096] The determination module 61 is used to respond to the start instruction of the target wireless working mode and determine the target wireless communication module that matches the performance required by the target wireless working mode from the at least two wireless communication modules of the electronic device based on the performance parameters of the at least two wireless communication modules.
[0097] The configuration module 62 is configured to configure the function corresponding to the target wireless working mode on the target wireless communication module.
[0098] Furthermore, in one implementation of the embodiment of the present application, the determining module 61 is further configured to:
[0099] Acquiring set correspondence information; wherein the correspondence information is determined based on the performance required by the wireless working mode and the performance parameters of the wireless communication module;
[0100] The corresponding relationship information is queried to determine the target wireless communication module from the at least two wireless communication modules.
[0101] In one implementation of the embodiment of the present application, the determining module 61 is further configured to:
[0102] Obtaining module indication information corresponding to the target wireless operating mode; the module indication information is used to indicate that the communication module corresponding to the target wireless operating mode is a target wireless communication module; and the performance parameters of the target wireless communication module match the performance required by the target wireless operating mode;
[0103] Establishing a correspondence between the target wireless working mode and the corresponding target wireless communication module according to the module indication information;
[0104] The corresponding relationship information is generated according to the corresponding relationship.
[0105] In one implementation of the embodiment of the present application, the determining module 61 is further configured to:
[0106] determining a performance requirement under the target wireless operating mode based on at least one of an importance and a usage frequency of a function corresponding to the target wireless operating mode;
[0107] Determining the corresponding relationship according to the performance requirements in the target wireless operating mode and the performance parameters of the at least two wireless communication modules;
[0108] The corresponding relationship information is generated according to the corresponding relationship.
[0109] In one implementation of the embodiment of the present application, the configuration module 62 is further configured to:
[0110] Creating a wireless network interface corresponding to the target wireless operating mode on the target wireless communication chip;
[0111] Determining a service process corresponding to the target wireless communication module according to the identification information of the wireless network interface;
[0112] Based on the service process, a function corresponding to the target wireless working mode is configured on the target wireless communication module.
[0113] In one implementation of the embodiment of the present application, the at least two wireless communication modules include a first wireless communication module and a second wireless communication module, and the function corresponding to the wireless working mode configured in the first wireless communication module includes one of the following: a function corresponding to the network sharing hotspot mode of the first frequency band, a function corresponding to the network sharing hotspot mode of the second frequency band, and a function corresponding to the non-network sharing hotspot mode of the second frequency band;
[0114] The second wireless communication module is configured such that the function corresponding to the wireless working mode includes one of the following: a function corresponding to the mobile station STA mode and a function corresponding to the non-network sharing hotspot mode of the first frequency band.
[0115] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment and will not be repeated here.
[0116] In the configuration device of the embodiment of the present application, in response to the start instruction of the target wireless working mode, based on the performance parameters of at least two wireless communication modules, a target wireless communication module that matches the performance required by the target wireless working mode is determined from at least two wireless communication modules of the electronic device, and the functions corresponding to the target wireless working mode are configured on the matching target wireless communication module, thereby realizing a reasonable distribution of functional loads on at least two chips to improve the overall performance, while increasing the freedom of chip selection, thereby meeting the performance requirements of users in different scenarios and improving the user experience.
[0117] Based on the above embodiments, an embodiment of the present application also provides a smart cockpit, comprising at least two wireless communication modules and a processor; wherein the processor is used to respond to an instruction to start the target wireless working mode, and according to the performance parameters of at least two wireless communication modules, determine a target wireless communication module that matches the performance required by the target wireless working mode from at least two wireless communication modules of the electronic device, and configure the functions corresponding to the target wireless working mode on the target wireless communication module.
[0118] As an implementation, the at least two wireless communication modules include a first wireless communication module and a second wireless communication module, wherein the first wireless communication module supports a first performance parameter and the second wireless communication module supports a second performance parameter.
[0119] As an example, the protocol types supported by the first performance parameter include Wi-Fi7, support for dual-band wireless working mode, and the number of supported access devices is a first number; the protocol types supported by the second performance parameter include Wi-Fi5, support for single-frequency wireless working mode, and the number of supported access devices is a second number, wherein the first number is greater than the second number, for example, the first number is 10 and the second number is 3, that is, the performance of the first wireless communication module is higher than the performance of the second wireless communication module.
[0120] It should be noted that the relevant explanations and beneficial effects in the aforementioned embodiments are also applicable to this embodiment, and the principles are the same, so they will not be repeated here.
[0121] In order to implement the above embodiments, the present application also proposes a vehicle including the aforementioned smart cockpit.
[0122] In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the above method embodiments is implemented.
[0123] In order to implement the above embodiments, the present application further proposes a computer program product on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiments is implemented.
[0124] In order to implement the above embodiments, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method described in the above method embodiments is implemented.
[0125] Figure 7 This is a block diagram of a vehicle provided in an embodiment of the present application. For example, vehicle 600 can be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or another type of vehicle. Vehicle 600 can be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.
[0126] Reference Figure 7 Vehicle 600 includes a smart cockpit, which may include various subsystems, such as an infotainment system 610, a perception system 620, a decision-making and control system 630, a drive system 640, and a computing platform 650. Vehicle 600 may also include more or fewer subsystems, and each subsystem may include multiple components. Furthermore, each subsystem and each component of vehicle 600 may be interconnected via wired or wireless means.
[0127] In some embodiments, the infotainment system 610 may include a communication system, an entertainment system, a navigation system, and the like.
[0128] The perception system 620 may include several sensors for sensing information about the environment surrounding the vehicle 600. For example, the perception system 620 may include a global positioning system (which may be a GPS system, a BeiDou system, or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter-wave radar, an ultrasonic radar, and a camera.
[0129] The decision control system 630 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.
[0130] The drive system 640 may include components that provide power to the vehicle 600. In one embodiment, the drive system 640 may include an engine, an energy source, a transmission system, and wheels. The engine may be an internal combustion engine, an electric motor, an air compression engine, or a combination thereof. The engine is capable of converting energy provided by the energy source into mechanical energy.
[0131] Some or all functions of the vehicle 600 are controlled by a computing platform 650. The computing platform 650 may include at least one processor 651 and a memory 652. The processor 651 may execute instructions 653 stored in the memory 652.
[0132] The processor 651 can be any conventional processor, such as a commercially available CPU. The processor can also include a graphics processor (GPU), a field programmable gate array (FPGA), a system on chip (SOC), an application specific integrated circuit (ASIC), or a combination thereof.
[0133] The memory 652 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0134] In addition to instructions 653 , memory 652 may also store data, such as road maps, route information, and vehicle location, direction, speed, etc. The data stored in memory 652 may be used by computing platform 650 .
[0135] In the embodiment of the present disclosure, the processor 651 may execute the instruction 653 to complete all or part of the steps of the above method embodiment.
[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0137] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0138] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0139] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.
[0140] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0141] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0142] In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0143] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A configuration method, characterized in that: include: In response to an instruction to start a target wireless operating mode, determining, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless operating mode based on performance parameters of the at least two wireless communication modules; The function corresponding to the target wireless working mode is configured on the target wireless communication module.
2. The method according to claim 1, wherein Determining, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless operating mode based on performance parameters of the at least two wireless communication modules, includes: Acquiring set correspondence information; wherein the correspondence information is determined based on the performance required by the wireless working mode and the performance parameters of the wireless communication module; The corresponding relationship information is queried to determine the target wireless communication module from the at least two wireless communication modules.
3. The method according to claim 2, wherein The corresponding relationship information is determined in the following manner: Obtaining module indication information corresponding to the target wireless operating mode; wherein the module indication information is used to indicate that the target wireless operating mode corresponds to a target wireless communication module; and performance parameters of the target wireless communication module match performance required by the target wireless operating mode; Establishing a correspondence between the target wireless working mode and the corresponding target wireless communication module according to the module indication information; The corresponding relationship information is generated according to the corresponding relationship.
4. The method according to claim 2, wherein The corresponding relationship information is determined in the following manner: determining a performance requirement under the target wireless operating mode based on at least one of an importance and a usage frequency of a function corresponding to the target wireless operating mode; Determining the corresponding relationship according to the performance requirements in the target wireless operating mode and the performance parameters of the at least two wireless communication modules; The corresponding relationship information is generated according to the corresponding relationship.
5. The method according to any one of claims 1 to 4, characterized in that The configuring the function corresponding to the target wireless working mode on the target wireless communication module includes: Creating a wireless network interface corresponding to the target wireless operating mode on the target wireless communication module; Determining a service process corresponding to the target wireless communication module according to the identification information of the wireless network interface; Based on the service process, a function corresponding to the target wireless working mode is configured on the target wireless communication module.
6. The method according to any one of claims 1 to 4, characterized in that The at least two wireless communication modules include a first wireless communication module and a second wireless communication module, wherein the function corresponding to the wireless working mode configured in the first wireless communication module includes one of the following: a function corresponding to the network sharing hotspot mode of the first frequency band, a function corresponding to the network sharing hotspot mode of the second frequency band, and a function corresponding to the non-network sharing hotspot mode of the second frequency band; The second wireless communication module is configured such that the function corresponding to the wireless working mode includes one of the following: a function corresponding to the mobile station STA mode and a function corresponding to the non-network sharing hotspot mode of the first frequency band.
7. A configuration device, characterized in that: include: a determination module, configured to, in response to an instruction to activate a target wireless operating mode, determine, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless operating mode based on performance parameters of the at least two wireless communication modules; The configuration module is used to configure the function corresponding to the target wireless working mode on the target wireless communication module.
8. The device according to claim 7, wherein The determining module is further configured to: Acquiring set correspondence information; wherein the correspondence information is determined based on the performance required by the wireless working mode and the performance parameters of the wireless communication module; The corresponding relationship information is queried to determine the target wireless communication module from the at least two wireless communication modules.
9. The device according to claim 8, wherein The determining module is further configured to: Acquire module indication information corresponding to the target wireless operating mode; the module indication information is used to indicate that the communication module corresponding to the target wireless operating mode is a target wireless communication module; The performance parameters of the target wireless communication module match the performance required by the target wireless operating mode; Establishing a correspondence between the target wireless working mode and the corresponding target wireless communication module according to the module indication information; The corresponding relationship information is generated according to the corresponding relationship.
10. The device according to claim 8, wherein The determining module is further configured to: determining a performance requirement under the target wireless operating mode based on at least one of an importance and a usage frequency of a function corresponding to the target wireless operating mode; Determining the corresponding relationship according to the performance requirements in the target wireless operating mode and the performance parameters of the at least two wireless communication modules; The corresponding relationship information is generated according to the corresponding relationship.
11. The device according to any one of claims 7 to 10, characterized in that The configuration module is further configured to: Creating a wireless network interface corresponding to the target wireless operating mode on the target wireless communication chip; Determining a service process corresponding to the target wireless communication module according to the identification information of the wireless network interface; Based on the service process, a function corresponding to the target wireless working mode is configured on the target wireless communication module.
12. The device according to any one of claims 7 to 10, characterized in that The at least two wireless communication modules include a first wireless communication module and a second wireless communication module, wherein the function corresponding to the wireless working mode configured in the first wireless communication module includes one of the following: a function corresponding to the network sharing hotspot mode of the first frequency band, a function corresponding to the network sharing hotspot mode of the second frequency band, and a function corresponding to the non-network sharing hotspot mode of the second frequency band; The second wireless communication module is configured such that the function corresponding to the wireless working mode includes one of the following: a function corresponding to the mobile station STA mode and a function corresponding to the non-network sharing hotspot mode of the first frequency band.
13. A smart cockpit, characterized in that: including at least two wireless communication modules and a processor; The processor is configured to respond to an instruction to start a target wireless operating mode, determine, from the at least two wireless communication modules of the electronic device, a target wireless communication module that matches the performance required by the target wireless operating mode based on the performance parameters of the at least two wireless communication modules, and configure the function corresponding to the target wireless operating mode on the target wireless communication module.
14. The smart cockpit according to claim 13, wherein: The at least two wireless communication modules include a first wireless communication module and a second wireless communication module; The first wireless communication module supports a first performance parameter; The second wireless communication module supports a second performance parameter.
15. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
16. A vehicle, characterized in that: Including the smart cockpit described in claims 13 and 14.
17. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform the steps of the method according to any one of claims 1 to 6.
18. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.