Multi-operator based multi-path apn adaptive configuration method, device and equipment
Patent Information
- Application Number
- CN202610387828.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-27
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2046-03-27
AI Technical Summary
[0004]本申请提供一种基于多运营商的多路APN自适应配置方法、装置及设备,以解决车企降本和优化物联网资费及用户联网稳定性体验,实现更换运营商服务(联通、移动和电信)或者同一运营商的不同业务配置,采用软件兼容方式实现不同运营商或者不同APN的变更配置,省去更换硬件设备流程和周期,降低车企更换的复杂度和成本,有效提高车企的服务质量
[0024]根据本申请实施例提供的基于多运营商的多路APN自适应配置方法,响应于当前车载终端设备的上电指令,读取通信模组中的SIM卡信息,并识别当前SIM卡所属的运营商类型;调用与运营商类型对应的候选APN配置集,并读取通信模组中的当前APN配置信息,识别当前SIM卡对应的业务场景类型,从候选APN配置集中匹配对应的目标APN配置参数;将目标APN配置参数写入通信模组,并基于目标APN配置参数发起拨号连接请求,以建立网络连接。由此,解决了现有车载4G通信系统因依赖单一运营商及固定APN配置而导致的网络稳定性差、切换成本高且无法灵活适配多运营商需求的问题,实现了多运营商多路APN的自动兼容适配,从而提升了网络连接的可靠性与灵活性,降低了车企运营成本和实施复杂度。
Smart Images

Figure CN121940747B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, and in particular to a method, apparatus and device for adaptive configuration of multiple APNs based on multiple operators. Background Technology
[0002] Existing in-vehicle 4G networks typically rely on a single operator, leading to frequent connection interruptions in areas with poor signal coverage or network congestion. This severely impacts the stability of in-vehicle applications such as remote control, real-time data transmission, and multimedia resource sharing. With the rapid development of intelligent connected vehicles, in-vehicle terminals need to maintain continuous and reliable data interaction with cloud service platforms, placing higher demands on the stability and flexibility of network connections.
[0003] However, traditional solutions often require hardware replacement or system reconfiguration when faced with changes in operator services (such as switching between China Unicom, China Mobile, and China Telecom) or different service configurations within the same operator (such as changes between public and private APNs). This process is complex and time-consuming, increasing the operating costs and implementation difficulties for automakers and affecting the user's connected experience. It is difficult to meet the needs of intelligent connected vehicles for highly reliable and multi-scenario network connectivity, and this issue urgently needs to be addressed. Summary of the Invention
[0004] This application provides a method, apparatus, and device for adaptive configuration of multiple APNs based on multiple operators, in order to solve the problems of cost reduction for car manufacturers and optimization of IoT tariffs and user network stability experience. It enables the switching of operator services (China Unicom, China Mobile, and China Telecom) or different service configurations within the same operator. It adopts a software compatibility approach to achieve configuration changes for different operators or different APNs, eliminating the need for hardware replacement processes and cycles, reducing the complexity and cost of replacement for car manufacturers, and effectively improving the service quality of car manufacturers.
[0005] The first aspect of this application provides a method for adaptive configuration of multiple APNs based on multiple operators, including the following steps:
[0006] In response to the power-on command of the current vehicle terminal device, the SIM card information in the communication module is read, and the operator type of the current SIM card is identified based on the SIM card information;
[0007] The system retrieves the candidate APN configuration set corresponding to the operator type from the preset configuration strategy library, reads the current APN configuration information in the communication module, identifies the service scenario type corresponding to the current SIM card based on the current APN configuration information, and matches the corresponding target APN configuration parameters from the candidate APN configuration set based on the service scenario type corresponding to the current SIM card.
[0008] The target APN configuration parameters are written into the communication module, and a dial-up connection request is initiated based on the target APN configuration parameters to establish a network connection.
[0009] According to one embodiment of this application, identifying the carrier type of the current SIM card based on the SIM card information includes:
[0010] The SIM card information is parsed to extract the operator identification code;
[0011] The operator identification code is compared with a preset operator identification database, and the operator type of the current SIM card is determined based on the comparison result;
[0012] The current SIM card belongs to one of the following operators: China Mobile, China Unicom, or China Telecom.
[0013] According to one embodiment of this application, identifying the service scenario type corresponding to the current SIM card based on the current APN configuration information includes:
[0014] Determine whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scene identifier;
[0015] If the current APN configuration information contains a first scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be the first service scenario, and the first service scenario corresponds to the first type of SIM card under the operator type to which the current SIM card belongs;
[0016] If the current APN configuration information is empty, or if the current APN configuration information contains a second scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be the second service scenario, and the second service scenario corresponds to the second type of SIM card under the operator type to which the current SIM card belongs.
[0017] According to one embodiment of this application, the target APN configuration parameters include a public network APN parameter group and a private network APN parameter group. The step of initiating a dial-up connection request based on the target APN configuration parameters to establish a network connection includes:
[0018] The first data channel of the communication module is configured using the public network APN parameter group, and a first dial-up request is initiated to the public Internet to establish a data link to the Internet.
[0019] The second data channel of the communication module is configured using the private network APN parameter group, and a second dialing request is initiated to the target private network to establish an intranet data link to the vehicle management cloud platform.
[0020] According to one embodiment of this application, after initiating the dial-up connection request based on the target APN configuration parameters, the method further includes:
[0021] Monitor the current dial-up connection status;
[0022] If the current dialing connection status is a dialing connection failure, then select backup APN configuration parameters from the candidate APN configuration set and re-initiate the dialing connection request;
[0023] If the current dial-up connection status is successful, the current target APN configuration parameters are recorded, and the network connection is maintained.
[0024] According to the multi-carrier multi-APN adaptive configuration method provided in the embodiments of this application, in response to the power-on command of the current vehicle terminal device, the SIM card information in the communication module is read, and the carrier type of the current SIM card is identified; the candidate APN configuration set corresponding to the carrier type is called, and the current APN configuration information in the communication module is read, the service scenario type corresponding to the current SIM card is identified, and the corresponding target APN configuration parameters are matched from the candidate APN configuration set; the target APN configuration parameters are written into the communication module, and a dialing connection request is initiated based on the target APN configuration parameters to establish a network connection. This solves the problems of poor network stability, high switching costs, and inflexible adaptation to multi-carrier requirements caused by the reliance on a single carrier and fixed APN configuration in existing vehicle 4G communication systems. It achieves automatic compatibility and adaptation of multiple carriers and multiple APNs, thereby improving the reliability and flexibility of network connections and reducing the operating costs and implementation complexity for vehicle manufacturers.
[0025] A second aspect of this application provides a multi-operator, multi-path APN adaptive configuration device, comprising:
[0026] The identification module is used to respond to the power-on command of the current vehicle terminal device, read the SIM card information in the communication module, and identify the operator type of the current SIM card based on the SIM card information;
[0027] The processing module is used to call the candidate APN configuration set corresponding to the operator type from the preset configuration strategy library, read the current APN configuration information in the communication module, identify the service scenario type corresponding to the current SIM card according to the current APN configuration information, and match the corresponding target APN configuration parameters from the candidate APN configuration set according to the service scenario type corresponding to the current SIM card.
[0028] The configuration module is used to write the target APN configuration parameters into the communication module and initiate a dial-up connection request based on the target APN configuration parameters to establish a network connection.
[0029] According to one embodiment of this application, the identification module is used for:
[0030] The SIM card information is parsed to extract the operator identification code;
[0031] The operator identification code is compared with a preset operator identification database, and the operator type of the current SIM card is determined based on the comparison result;
[0032] The current SIM card belongs to one of the following operators: China Mobile, China Unicom, or China Telecom.
[0033] According to one embodiment of this application, the processing module is configured to:
[0034] Determine whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scene identifier;
[0035] If the current APN configuration information contains a first scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be the first service scenario, and the first service scenario corresponds to the first type of SIM card under the operator type to which the current SIM card belongs;
[0036] If the current APN configuration information is empty, or if the current APN configuration information contains a second scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be the second service scenario, and the second service scenario corresponds to the second type of SIM card under the operator type to which the current SIM card belongs.
[0037] According to one embodiment of this application, the target APN configuration parameters include a public network APN parameter group and a private network APN parameter group, and the configuration module is used for:
[0038] The first data channel of the communication module is configured using the public network APN parameter group, and a first dial-up request is initiated to the public Internet to establish a data link to the Internet.
[0039] The second data channel of the communication module is configured using the private network APN parameter group, and a second dialing request is initiated to the target private network to establish an intranet data link to the vehicle management cloud platform.
[0040] According to one embodiment of this application, after initiating a dial-up connection request based on the target APN configuration parameters, the configuration module is further configured to:
[0041] Monitor the current dial-up connection status;
[0042] If the current dialing connection status is a dialing connection failure, then select backup APN configuration parameters from the candidate APN configuration set and re-initiate the dialing connection request;
[0043] If the current dial-up connection status is successful, the current target APN configuration parameters are recorded, and the network connection is maintained.
[0044] According to the embodiments of this application, the multi-carrier multi-APN adaptive configuration device responds to the power-on command of the current vehicle terminal device, reads the SIM card information in the communication module, and identifies the carrier type of the current SIM card; calls the candidate APN configuration set corresponding to the carrier type, reads the current APN configuration information in the communication module, identifies the service scenario type corresponding to the current SIM card, matches the corresponding target APN configuration parameters from the candidate APN configuration set; writes the target APN configuration parameters into the communication module, and initiates a dialing connection request based on the target APN configuration parameters to establish a network connection. This solves the problems of poor network stability, high switching costs, and inflexible adaptation to multi-carrier requirements caused by the reliance on a single carrier and fixed APN configuration in existing vehicle 4G communication systems. It achieves automatic compatibility and adaptation of multiple carriers and multiple APNs, thereby improving the reliability and flexibility of network connections and reducing the operating costs and implementation complexity for vehicle manufacturers.
[0045] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the multi-carrier multi-path APN adaptive configuration method as described in the above embodiments.
[0046] A fourth aspect of this application provides a computer-readable storage medium storing computer instructions for causing the computer to perform the multi-carrier-based multi-APN adaptive configuration method as described in the above embodiments.
[0047] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0048] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0049] Figure 1 This is a flowchart illustrating a multi-operator-based multi-APN adaptive configuration method according to an embodiment of this application.
[0050] Figure 2 A schematic diagram illustrating the software compatibility process of switching between different service packages by the same operator according to an embodiment of this application;
[0051] Figure 3 This is a schematic diagram illustrating the software compatibility process of the same project using different operator services according to one embodiment of this application;
[0052] Figure 4 This is a block diagram of a multi-carrier-based multi-APN adaptive configuration device according to an embodiment of this application;
[0053] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0054] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0055] With the development and popularization of in-vehicle intelligent terminals, in-vehicle terminals connect to cloud service platforms. To address the needs of in-vehicle 4G wireless network stability or changes in network operators and related APN configurations, including public and private APNs, and to ensure network stability for data transmission and interaction between the vehicle and the cloud, or to address changes in operator services (China Unicom, China Mobile, and China Telecom) or different service configurations of the same operator, this application proposes a compatibility design method based on multiple public and private APNs of multiple operators in in-vehicle 4G networks. This method aims to improve the reliability and flexibility of network connections for in-vehicle devices, adopts a software compatibility approach to achieve configuration changes for different operators or different APNs, eliminates the need for hardware replacement processes and cycles, reduces the complexity and cost for automakers to replace equipment, enhances in-vehicle network communication, improves user experience, supports seamless switching of multiple operator services, and is applicable to scenarios such as intelligent connected vehicles, remote monitoring, and in-vehicle multimedia sharing.
[0056] The following description, with reference to the accompanying drawings, describes a method, apparatus, and device for adaptive configuration of multiple APNs based on multiple operators, according to embodiments of this application.
[0057] Specifically, Figure 1 This is a flowchart illustrating a multi-operator-based multi-path APN adaptive configuration method provided in an embodiment of this application.
[0058] like Figure 1 As shown, this multi-carrier-based multi-path APN adaptive configuration method includes the following steps:
[0059] In step S101, in response to the power-on command of the current vehicle terminal device, the SIM card information in the communication module is read, and the operator type of the current SIM card is identified according to the SIM card information.
[0060] In step S102, the candidate APN configuration set corresponding to the operator type is called from the preset configuration strategy library, and the current APN configuration information in the communication module is read. The service scenario type corresponding to the current SIM card is identified according to the current APN configuration information. Based on the service scenario type corresponding to the current SIM card, the corresponding target APN configuration parameters are matched from the candidate APN configuration set.
[0061] In step S103, the target APN configuration parameters are written into the communication module, and a dial-up connection request is initiated based on the target APN configuration parameters to establish a network connection.
[0062] Furthermore, in some embodiments, identifying the operator type of the current SIM card based on the SIM card information includes: parsing the SIM card information and extracting the operator identification code; comparing the operator identification code with a preset operator identification database, and determining the operator type of the current SIM card based on the comparison result; wherein the operator type of the current SIM card is one of China Mobile, China Unicom, or China Telecom.
[0063] Furthermore, in some embodiments, identifying the service scenario type corresponding to the current SIM card based on the current APN configuration information includes: determining whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scenario identifier; if the current APN configuration information contains a first scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be a first service scenario, and the first service scenario corresponds to a first type of SIM card under the operator type to which the current SIM card belongs; if the current APN configuration information is empty, or the current APN configuration information contains a second scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be a second service scenario, and the second service scenario corresponds to a second type of SIM card under the operator type to which the current SIM card belongs.
[0064] Furthermore, in some embodiments, the target APN configuration parameters include a public network APN parameter group and a private network APN parameter group. Initiating a dial-up connection request based on the target APN configuration parameters to establish a network connection includes: configuring a first data channel of the communication module using the public network APN parameter group and initiating a first dial-up request to the public Internet to establish a data link to the Internet; configuring a second data channel of the communication module using the private network APN parameter group and initiating a second dial-up request to the target private network to establish an intranet data link to the vehicle management cloud platform.
[0065] Furthermore, in some embodiments, after initiating a dial-up connection request based on the target APN configuration parameters, the method further includes: monitoring the current dial-up connection status; if the current dial-up connection status is a dial-up connection failure, then selecting backup APN configuration parameters from the candidate APN configuration set and re-initiating the dial-up connection request; if the current dial-up connection status is a dial-up connection success, then recording the currently used target APN configuration parameters and maintaining the network connection.
[0066] To help those skilled in the art to understand more clearly and intuitively the multi-operator, multi-APN compatibility method based on vehicle-mounted 4G network of this application, a detailed explanation is provided below with specific examples.
[0067] The communication module can be a 4G wireless communication module integrated inside the vehicle-mounted intelligent terminal (TBOX) to enable data transmission between the vehicle and the external network.
[0068] As one embodiment of this application, such as Figure 2 As shown, when changing to a different service plan within the same operator results in a change of the physical SIM card, the software compatibility method of this application is as follows:
[0069] (1) Software judgment logic: After the device is powered on, it automatically identifies the APN stored in the 4G module and thus determines whether it is the APN configuration of SIM card 1 or SIM card 2; this facilitates the identification of the SIM card hardware during OTA upgrade and thus performs the correct APN matching.
[0070] (2) When the APN of the 4G module is empty (not written) or SIM card 2 is detected, the device is determined to be the hardware of SIM card 2 and the APN of SIM card 2 is adapted; when the APN in the module is detected to be the APN of SIM card 1, the device is determined to be the hardware of SIM card 1 and the APN of SIM card 1 is adapted.
[0071] (3) The SIM’s APN is identified by adaptive software, and the matching APN is then configured with parameters to complete the dial-up network connection.
[0072] As one embodiment of this application, such as Figure 3 As shown, when different operator services are used in the same project, the software compatibility method of this application is as follows:
[0073] (1) After the device is powered on, the software automatically identifies the SIM card operator information of the 4G module. If the identified operator is China Mobile, the software automatically configures it with Quectel's public network APN and private network APN, and performs normal dialing and networking to provide network services to users and perform cloud business interaction.
[0074] (2) If the software automatically identifies the SIM card operator as China Unicom, the software will automatically configure the public network APN and private network APN of the Unicom operator, make normal dial-up network connection, provide network services to users, and conduct cloud business interaction.
[0075] (3) If the software automatically identifies the SIM card operator as China Telecom, the software will automatically configure the public network APN and private network APN of the telecom operator, make normal dial-up connections, provide network services to users, and conduct cloud business interactions.
[0076] Automatic identification based on the first power-on of different operators eliminates the need for updating different software versions, thus allowing car manufacturers or users to flexibly choose operator services and save on the cost and time of switching.
[0077] Therefore, this application, through an innovative multi-APN management strategy, achieves adaptive compatibility and intelligent switching across multiple operator networks, fundamentally eliminating dependence on a single operator. It can adaptively adapt to changes in operators or network service packages, effectively avoiding the impact of network interruptions during the change process and improving network service reliability. Simultaneously, this solution optimizes network resource utilization through an intelligent switching mechanism, not only improving data transmission efficiency but also better supporting diverse application scenarios such as in-vehicle multimedia sharing. Thus, it provides intelligent connected vehicles with an efficient, flexible, and stable network connectivity solution, powerfully promoting technological advancements and enhancing user experience in in-vehicle communication systems.
[0078] According to the multi-operator multi-APN adaptive configuration method proposed in this application, in response to the power-on command of the current vehicle terminal device, the SIM card information in the communication module is read and the operator type of the current SIM card is identified; the candidate APN configuration set corresponding to the operator type is called, and the current APN configuration information in the communication module is read to identify the service scenario type corresponding to the current SIM card; the corresponding target APN configuration parameters are matched from the candidate APN configuration set; the target APN configuration parameters are written into the communication module, and a dialing connection request is initiated based on the target APN configuration parameters to establish a network connection. This solves the problems of poor network stability, high switching costs, and inflexible adaptation to multi-operator needs caused by the reliance on a single operator and fixed APN configuration in existing vehicle 4G communication systems. It achieves automatic compatibility and adaptation of multiple operators and multiple APNs, thereby improving the reliability and flexibility of network connections and reducing the operating costs and implementation complexity for vehicle manufacturers.
[0079] Next, referring to the accompanying drawings, a multi-operator-based multi-APN adaptive configuration device based on an embodiment of this application is described.
[0080] Figure 4This is a block diagram of a multi-operator, multi-path APN adaptive configuration device according to an embodiment of this application.
[0081] like Figure 4 As shown, the multi-operator-based multi-channel APN adaptive configuration device 10 includes: an identification module 100, a processing module 200, and a configuration module 300.
[0082] The identification module 100 is used to respond to the power-on command of the current vehicle terminal device, read the SIM card information in the communication module, and identify the operator type of the current SIM card based on the SIM card information; the processing module 200 is used to call the candidate APN configuration set corresponding to the operator type from the preset configuration policy library, read the current APN configuration information in the communication module, identify the service scenario type corresponding to the current SIM card based on the current APN configuration information, and match the corresponding target APN configuration parameters from the candidate APN configuration set based on the service scenario type corresponding to the current SIM card; the configuration module 300 is used to write the target APN configuration parameters into the communication module and initiate a dial connection request based on the target APN configuration parameters to establish a network connection.
[0083] Furthermore, in some embodiments, the identification module 100 is used to: parse the SIM card information and extract the operator identification code; compare the operator identification code with a preset operator identification database, and determine the operator type of the current SIM card based on the comparison result; wherein the operator type of the current SIM card is one of China Mobile, China Unicom or China Telecom.
[0084] Further, in some embodiments, the processing module 200 is configured to: determine whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scenario identifier; if the current APN configuration information contains a first scenario identifier, then determine that the service scenario type corresponding to the current SIM card is a first service scenario, and the first service scenario corresponds to a first type of SIM card under the operator type to which the current SIM card belongs; if the current APN configuration information is empty, or the current APN configuration information contains a second scenario identifier, then determine that the service scenario type corresponding to the current SIM card is a second service scenario, and the second service scenario corresponds to a second type of SIM card under the operator type to which the current SIM card belongs.
[0085] Furthermore, in some embodiments, the target APN configuration parameters include a public network APN parameter group and a private network APN parameter group. The configuration module 300 is used to: configure the first data channel of the communication module using the public network APN parameter group and initiate a first dial-up request to the public Internet to establish a data link to the Internet; configure the second data channel of the communication module using the private network APN parameter group and initiate a second dial-up request to the target private network to establish an intranet data link to the vehicle management cloud platform.
[0086] Furthermore, in some embodiments, after initiating a dial-up connection request based on the target APN configuration parameters, the configuration module 300 is also used to: monitor the current dial-up connection status; if the current dial-up connection status is a dial-up connection failure, select backup APN configuration parameters from the candidate APN configuration set and re-initiate the dial-up connection request; if the current dial-up connection status is a dial-up connection success, record the target APN configuration parameters currently used and maintain the network connection.
[0087] It should be noted that the foregoing explanation of the multi-carrier-based multi-path APN adaptive configuration method embodiment also applies to the multi-carrier-based multi-path APN adaptive configuration device of this embodiment, and will not be repeated here.
[0088] According to the multi-carrier multi-APN adaptive configuration device proposed in this application embodiment, in response to the power-on command of the current vehicle terminal device, it reads the SIM card information in the communication module and identifies the carrier type of the current SIM card; it calls the candidate APN configuration set corresponding to the carrier type, reads the current APN configuration information in the communication module, identifies the service scenario type corresponding to the current SIM card, and matches the corresponding target APN configuration parameters from the candidate APN configuration set; it writes the target APN configuration parameters into the communication module and initiates a dialing connection request based on the target APN configuration parameters to establish a network connection. This solves the problems of poor network stability, high switching costs, and inflexible adaptation to multi-carrier requirements caused by the reliance on a single carrier and fixed APN configuration in existing vehicle 4G communication systems. It achieves automatic compatibility and adaptation of multiple carriers and multiple APNs, thereby improving the reliability and flexibility of network connections and reducing the operating costs and implementation complexity for car manufacturers.
[0089] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:
[0090] The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0091] When the processor 502 executes the program, it implements the multi-operator-based multi-APN adaptive configuration method provided in the above embodiments.
[0092] Furthermore, electronic devices also include:
[0093] Communication interface 503 is used for communication between memory 501 and processor 502.
[0094] The memory 501 is used to store computer programs that can run on the processor 502.
[0095] Memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0096] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0097] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0098] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0099] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described multi-carrier-based multi-APN adaptive configuration method.
[0100] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0101] 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 technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0102] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing 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 (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs 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: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0104] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0105] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0107] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A multi-operator-based multi-path APN adaptive configuration method, characterized in that, Includes the following steps: In response to the power-on command of the current vehicle terminal device, the SIM card information in the communication module is read, and the operator type of the current SIM card is identified based on the SIM card information; The system retrieves the candidate APN configuration set corresponding to the operator type from the preset configuration strategy library, reads the current APN configuration information in the communication module, identifies the service scenario type corresponding to the current SIM card based on the current APN configuration information, and matches the corresponding target APN configuration parameters from the candidate APN configuration set based on the service scenario type corresponding to the current SIM card. Write the target APN configuration parameters into the communication module, and initiate a dial-up connection request based on the target APN configuration parameters to establish a network connection; The step of identifying the service scenario type corresponding to the current SIM card based on the current APN configuration information includes: determining whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scenario identifier; if the current APN configuration information contains a first scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be a first service scenario, and the first service scenario corresponds to a first type of SIM card under the operator type to which the current SIM card belongs; if the current APN configuration information is empty, or the current APN configuration information contains a second scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be a second service scenario, and the second service scenario corresponds to a second type of SIM card under the operator type to which the current SIM card belongs; The target APN configuration parameters include a public network APN parameter group and a private network APN parameter group. The step of initiating a dial-up connection request based on the target APN configuration parameters to establish a network connection includes: configuring a first data channel of the communication module using the public network APN parameter group and initiating a first dial-up request to the public Internet to establish a data link to the Internet; configuring a second data channel of the communication module using the private network APN parameter group and initiating a second dial-up request to the target private network to establish an intranet data link to the vehicle management cloud platform.
2. The method according to claim 1, characterized in that, The step of identifying the carrier type of the current SIM card based on the SIM card information includes: The SIM card information is parsed to extract the operator identification code; The operator identification code is compared with a preset operator identification database, and the operator type of the current SIM card is determined based on the comparison result; The current SIM card belongs to one of the following operators: China Mobile, China Unicom, or China Telecom.
3. The method according to claim 1, characterized in that, After initiating the dial-up connection request based on the target APN configuration parameters, the method further includes: Monitor the current dial-up connection status; If the current dialing connection status is a dialing connection failure, then select backup APN configuration parameters from the candidate APN configuration set and re-initiate the dialing connection request; If the current dial-up connection status is successful, the current target APN configuration parameters are recorded, and the network connection is maintained.
4. A multi-operator-based multi-path APN adaptive configuration device, characterized in that, include: The identification module is used to respond to the power-on command of the current vehicle terminal device, read the SIM card information in the communication module, and identify the operator type of the current SIM card based on the SIM card information; The processing module is used to call the candidate APN configuration set corresponding to the operator type from the preset configuration strategy library, read the current APN configuration information in the communication module, identify the service scenario type corresponding to the current SIM card according to the current APN configuration information, and match the corresponding target APN configuration parameters from the candidate APN configuration set according to the service scenario type corresponding to the current SIM card. The configuration module is used to write the target APN configuration parameters into the communication module and initiate a dial-up connection request based on the target APN configuration parameters to establish a network connection. The processing module is configured to: determine whether the current APN configuration information is empty, or whether the current APN configuration information contains a predefined scenario identifier; if the current APN configuration information contains a first scenario identifier, then determine that the service scenario type corresponding to the current SIM card is a first service scenario, and the first service scenario corresponds to the first type of SIM card under the operator type to which the current SIM card belongs; If the current APN configuration information is empty, or if the current APN configuration information contains a second scenario identifier, then the service scenario type corresponding to the current SIM card is determined to be the second service scenario, and the second service scenario corresponds to the second type of SIM card under the operator type to which the current SIM card belongs; The target APN configuration parameters include a public network APN parameter group and a private network APN parameter group. The configuration module is used to: configure the first data channel of the communication module using the public network APN parameter group and initiate a first dial-up request to the public Internet to establish a data link to the Internet; configure the second data channel of the communication module using the private network APN parameter group and initiate a second dial-up request to the target private network to establish an intranet data link to the vehicle management cloud platform.
5. The apparatus according to claim 4, characterized in that, The identification module is used for: The SIM card information is parsed to extract the operator identification code; The operator identification code is compared with a preset operator identification database, and the operator type of the current SIM card is determined based on the comparison result; The current SIM card belongs to one of the following operators: China Mobile, China Unicom, or China Telecom.
6. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to implement the multi-carrier multi-path APN adaptive configuration method as described in any one of claims 1-3.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program is executed by a processor to implement the multi-carrier-based multi-path APN adaptive configuration method as described in any one of claims 1-3.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the multi-operator-based multi-path APN adaptive configuration method as described in any one of claims 1-3.
Citation Information
Patent Citations
Network dialing parameter automatic identification method of Internet-of-Vehicles equipment
CN111726776A
Internet of vehicles multi-path APN flow management method and vehicle
CN120472653A