APN switching method and device, terminal equipment, vehicle and storage medium

By receiving APN switching instructions in the on-board terminal, disconnecting the main card APN link and establishing the APN link through the sub-card, the service interruption problem caused by the disconnection of the APN link at the on-board terminal is solved, and the continuity of data transmission and higher driving safety and user experience are achieved.

CN120018217APending Publication Date: 2025-05-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311524637.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the event of network status changes or calls, the on-board terminals in the vehicle may cause the APN link to be disconnected, resulting in service interruption, affecting driving safety and user experience.

Method used

An APN switching method is provided, by receiving APN switching instructions, disconnecting the APN link on the main card, and establishing an APN link through the secondary card to ensure the continuity of data transmission.

Benefits of technology

When the main card APN link is disconnected, data transmission is carried out through the secondary card APN link to avoid service interruption and improve driving safety and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018217A_ABST
    Figure CN120018217A_ABST
Patent Text Reader

Abstract

The invention relates to an APN switching method and device, terminal equipment, a vehicle and a storage medium, and relates to the field of vehicles, and the method comprises the steps: receiving an APN switching instruction; the APN link indicated by the APN switching instruction is disconnected on the main card, the APN link is established through the auxiliary card, and the number of the APN links is one or more. According to the technical scheme of the invention, the vehicle can carry out data transmission through the APN link of the auxiliary card under the condition that the APN link of the main card is disconnected, so that the data transmission of services in the vehicle is not interrupted, and the driving safety and the driving experience of a user are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a vehicle, and in particular to an APN switching method, an apparatus, a terminal device, a vehicle and a storage medium. Background Art

[0002] In the prior art, the vehicle's on-board terminal can be responsible for data transmission of different services through multiple different Internet APN (Access Point Name) links. For example, APN1 can be responsible for the transmission of vehicle data, which is used to transmit vehicle monitoring data information to the server; APN2 can be used to transmit data for services used by users, and APN3 is responsible for updating and downloading application software on the vehicle terminal. However, due to some factors (such as network status, calls, etc.), the vehicle may cause the APN link being used in the on-board terminal to be disconnected, resulting in the interruption of services that require data transmission in the on-board terminal, thereby affecting driving safety and the user's driving experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides an APN switching method, apparatus, terminal equipment, vehicle and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, an APN switching method is provided, which is applied to a vehicle-mounted terminal, wherein the vehicle-mounted terminal includes: a primary card and a secondary card, including:

[0005] Receive APN switching instructions;

[0006] The APN link indicated by the APN switching instruction is disconnected on the primary card, and the APN link is established through the secondary card, where there are one or more APN links.

[0007] Optionally, disconnecting the APN link indicated by the APN switching instruction on the primary card and establishing the APN link through the secondary card includes:

[0008] When the main card is in a call state, determining a first APN link on the main card, where the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP;

[0009] Disconnecting the first APN link on the primary card;

[0010] The first APN link is rebuilt through the secondary card.

[0011] Optionally, in a case where the main card further includes other APN links except the first APN link, disconnecting the first APN link on the main card includes:

[0012] The first APN link on the primary card is disconnected, and the other APN links are maintained on the primary card.

[0013] Optionally, the method comprises:

[0014] When the primary card ends the call state, disconnecting the first APN link on the secondary card;

[0015] Reestablish the first APN link through the primary card.

[0016] Optionally, when the data channel is switched from the primary card to the secondary card, disconnecting the APN link indicated by the APN switching instruction on the primary card and establishing the APN link through the secondary card includes:

[0017] In the case where there is at least one APN link on the primary card, obtaining a priority of the at least one APN link;

[0018] Disconnecting the at least one APN link on the primary card in order from high to low priority;

[0019] The at least one APN link is rebuilt in sequence through the secondary card in order from high to low priority.

[0020] Optionally, when the primary card is registered on a 4G LTE network, the method includes:

[0021] When the service layer closes the first APN link, maintaining the connection between the modem of the first APN link and the network, wherein the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP;

[0022] When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is disconnected, and the second APN link is any link except the first APN link.

[0023] Optionally, when the primary card is registered on a 5G SA network, the method includes:

[0024] When the service layer closes the first APN link, maintaining or disconnecting the connection between the modem of the first APN link and the network, wherein the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP;

[0025] When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is maintained or disconnected, and the second APN link is any link except the first APN link.

[0026] Optionally, the method further comprises:

[0027] When a third APN link is established through the primary card or the secondary card, the timing starts;

[0028] When the timing duration reaches a specified time threshold and the establishment of the third APN link fails, determining a reconstruction time interval corresponding to the priority of the third APN link; wherein the third APN link is any one of the multiple APN links supported by the primary card and the secondary card, and the duration of the reconstruction time interval of the APN link is negatively correlated with the priority of the APN link;

[0029] Re-initiate establishment of the third APN link according to the re-establishment time interval.

[0030] According to a second aspect of an embodiment of the present disclosure, there is provided an APN switching device, including:

[0031] A receiving module is configured to receive an APN switching instruction;

[0032] The control module is configured to disconnect the APN link indicated by the APN switching instruction on the primary card and establish the APN link through the secondary card, where there are one or more APN links.

[0033] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, including:

[0034] processor;

[0035] a memory for storing processor-executable instructions;

[0036] The processor is configured to: execute the executable instructions to implement the steps of the APN switching method provided in the first aspect of the present disclosure.

[0037] According to a fourth aspect of an embodiment of the present disclosure, a vehicle is provided, comprising: the terminal device provided in the third aspect of the present disclosure.

[0038] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the APN switching method provided in the first aspect of the present disclosure are implemented.

[0039] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0040] In the above technical solution, an APN switching instruction is received, the APN link indicated by the APN switching instruction is disconnected on the main card, and the APN link is established through the secondary card, and the APN link is one or more. Through the above technical solution, the vehicle terminal can disconnect the APN link in the main card in response to the received APN switching instruction, and rebuild the APN link through the secondary card, so that when the APN link of the main card is disconnected, the vehicle can transmit data through the APN link of the secondary card to ensure that the data transmission of the service in the vehicle will not be interrupted, thereby improving driving safety and improving the driving experience of users.

[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0043] Figure 1 The figure is a flow chart showing an APN switching method according to an exemplary embodiment.

[0044] Figure 2 The figure is a flow chart showing an APN switching method according to an exemplary embodiment.

[0045] Figure 3 The figure is a flow chart showing an APN switching method according to an exemplary embodiment.

[0046] Figure 4 The figure is a flow chart showing an APN switching method according to an exemplary embodiment.

[0047] Figure 5 The figure is a flow chart showing an APN switching method according to an exemplary embodiment.

[0048] Figure 6 It is a block diagram showing an APN switching device 600 according to an exemplary embodiment.

[0049] Figure 7 It is a block diagram of a terminal device 700 according to an exemplary embodiment.

[0050] Figure 8 is a block diagram of a vehicle 800 according to an exemplary embodiment. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0053] Figure 1 is a flow chart of an APN switching method according to an exemplary embodiment. Figure 1 As shown, the method is applied to a vehicle-mounted terminal, the vehicle-mounted terminal includes a main card and a secondary card, and the method includes the following steps:

[0054] In step S11, an APN switching instruction is received.

[0055] Optionally, the vehicle terminal may include a modem, which is a device for modulating and demodulating the conversion between analog signals and digital signals. The modem can convert digital data into analog signals for transmission in the communication medium, and demodulate the received analog signals into digital data. The modem can be used to communicate with a network base station to establish a data connection and transmit data. When a SIM card is integrated in the modem, the vehicle terminal can be directly connected to the mobile network through the SIM card without the need for an additional external modem device. Therefore, when two SIM cards are integrated in the modem, one of which is a primary card and the other is a secondary card, the dual-card dual-standby function of the vehicle terminal can be realized, and one of the SIM cards can be selected to transmit data to the service in the vehicle terminal. It can be understood that in the embodiments described in the present disclosure, the primary card and the secondary card are usually from the same network operator and are configured with the same APN information. In addition, the SIM card includes but is not limited to: a standard SIM card, a Mini SIM card, a Micro SIM card, a Nano SIM card, and an eSIM (Embedded-SIM) card. It is understandable that in addition to the SIM card, other types of phone cards, such as UIM (User Identity Module) cards, may also be used. It is understandable that the SIM card integrated in the modem is a SIM installation form in the embodiment of the present disclosure, and it may also be installed in other ways, such as setting two card slots on the vehicle terminal, respectively for installing two SIM cards.

[0056] APN (Access Point Name) is used to configure the parameters for the device to connect to the mobile data network. Each network operator has different APN settings, including information such as access point name, authentication type, IP address and port. By correctly configuring the APN, the mobile device can connect to the operator's mobile data network, thereby realizing the functions of surfing the Internet, sending text messages and performing other network communications. In the embodiments described in the present disclosure, the APN parameters can be configured in the vehicle terminal by the manufacturer of the vehicle or the vehicle terminal, or the APN information can be manually configured by the user. APN generally includes two types: WAP (Wireless Application Protocol) APN and Internet APN. WAP APN enables terminal devices to access WAP web pages, WAP applications and WAP-related services; Internet APN is an APN type used for general data access, which can support terminal devices to perform Internet browsing, email, instant messaging and other data services; in the embodiments described in the present disclosure, the vehicle terminal can be configured with multiple different Internet APNs, so that the vehicle terminal can realize the concurrent function of multiple Internet APN links.

[0057] The vehicle terminal can trigger the APN switching instruction under certain conditions, including but not limited to:

[0058] (1) The user switches the SIM card used for data services, that is, switches the data card, for example, switching from data services through the primary card to data services through the secondary card (that is, the data channel is replaced from the primary card to the secondary card), or switching from data services through the secondary card to data services through the primary card (that is, the data channel is replaced from the secondary card to the primary card);

[0059] (2) SIM card for data services to make and receive calls;

[0060] (3) The network signal of the SIM card used for data services is lost, etc.

[0061] It is understandable that the present disclosure does not limit the method of triggering the APN switching instruction.

[0062] In step S12, the APN link indicated by the APN switching instruction is disconnected on the primary card, and the APN link is established through the secondary card. The APN link may be one or more.

[0063] Optionally, the APN link is established through the secondary card, that is, the APN link is rebuilt on the secondary card. When the SIM card is registered on the 5G SA and the vehicle terminal is configured with multiple different APNs, when the multiple APN links need to be established through the main card or the secondary card, the service layer of the vehicle terminal can initiate the multiple APN link establishment requests in sequence. When the Modem receives the APN link establishment request, it will initiate the PDU (Protocol Data Unit) session establishment process in sequence to establish a PDU link between the Modem and the network. The Modem will return the IP address of each APN to the service layer to establish an APN link between the service layer and the network. Among them, 5G SA refers to a 5G network with independent networking (Standalone, SA).

[0064] When the business layer closes an APN link, the modem will initiate the PDU sessionrelease process of the APN link to disconnect the PDU link between the modem and the network. It can be understood that when the SIM card is registered on 5G SA, the connection between the modem and the network follows the business layer. When the business layer closes an APN link, the PDU link between the modem and the network will also be disconnected synchronously.

[0065] When the SIM card is registered on 4G LTE (Long Term Evolution) and the vehicle terminal is configured with multiple different APNs, when the multiple APN links need to be established through the primary card or the secondary card, the service layer of the vehicle terminal can initiate the multiple APN link establishment requests in sequence. When the modem receives the APN link establishment request, it will initiate the PDN connectivity request process in sequence. The modem will return the IP address of each APN to the service layer to establish the APN link between the service layer and the network.

[0066] When the service layer closes a certain APN link, the Modem will initiate a PDN disconnect request (PDN connection release request) process for the APN link to disconnect the PDN link between the Modem and the network.

[0067] In summary, an APN switching instruction can indicate one APN link or multiple APN links. When an APN switching instruction can indicate one APN link, multiple APN switching instructions can be triggered when multiple APN links need to be switched. When the vehicle-mounted terminal establishes a network connection through the main card, when the vehicle-mounted terminal obtains the APN switching instruction, the APN link of the main card indicated by the APN switching instruction can be disconnected in the above manner, and the APN link indicated by the APN switching instruction of the secondary card can be established in the above manner.

[0068] In the above technical solution, an APN switching instruction is received, the APN link indicated by the APN switching instruction is disconnected on the main card, and the APN link is established through the secondary card, and the APN link is one or more. Through the above technical solution, the vehicle terminal can disconnect the APN link in the main card in response to the received APN switching instruction, and rebuild the APN link through the secondary card, so that when the APN link of the main card is disconnected, the vehicle can transmit data through the APN link of the secondary card to ensure that the data transmission of the service in the vehicle will not be interrupted, thereby improving driving safety and improving the driving experience of users.

[0069] Figure 2 is a flow chart of an APN switching method according to an exemplary embodiment. Figure 2 As shown, step S12 includes the following steps:

[0070] In step S121, when the main card is in a call state, a first APN link on the main card is determined, and the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP.

[0071] Optionally, when the SIM card is registered on the 4G LTE network, an APN link is required as the default bearer link. The default bearer has low latency and moderate bandwidth, which can meet the needs of most conventional data transmission. The channel for interaction between TSP (Telematics Service Provider) and the vehicle-mounted system. In most cases, the APN link used to communicate with the TSP can be set as the default bearer link to ensure uninterrupted transmission of vehicle driving data, status data, etc., to ensure driving safety. Among them, the vehicle-mounted system can be a system running on the vehicle-mounted terminal. In various embodiments of the present disclosure, the vehicle-mounted terminal can be a terminal device installed in the vehicle, and can be a terminal device that integrates multiple functions such as vehicle control, in-vehicle and out-of-vehicle equipment control, positioning navigation, audio and video entertainment, information display, and user interaction.

[0072] In step S122, the first APN link on the primary card is disconnected.

[0073] In step S123, the first APN link is reestablished through the secondary card.

[0074] Optionally, when the primary card further includes other APN links except the first APN link, step S122 includes:

[0075] The first APN link on the primary card is disconnected, and the other APN links are maintained on the primary card.

[0076] Optionally, when the main card is in a call state, the APN link of the main card cannot transmit data. Therefore, in order to ensure driving safety and uninterrupted transmission of vehicle-related data to the TSP, when the main card is registered on the 5G SA network, the APN link of the main card used for TSP data transmission can be disconnected in the manner described in the above embodiment, and the first APN link of the secondary card can be established in the above manner; when the main card is registered on the 4G LTE network, the first APN link can be used as its default bearer link, and the default bearer link (first APN link) of the main card can be disconnected in the manner described in the above embodiment, and the first APN link of the secondary card can be established in the above manner. In addition, during the main card call, other non-first links do not need to be switched, which can effectively avoid the signaling switching caused by the switching of other non-default bearer APN links from affecting the call service.

[0077] Figure 3 is a flow chart of an APN switching method according to an exemplary embodiment. Figure 3 As shown, after step S123, the following steps are also included:

[0078] In step S124, when the primary card ends the call state, the first APN link on the secondary card is disconnected.

[0079] In step S125, the first APN link is reestablished through the primary card.

[0080] Exemplarily, when the call state of the primary card ends, the first APN link of the secondary card can be disconnected, and the first APN link can be rebuilt on the primary card.

[0081] Figure 4 is a flow chart of an APN switching method according to an exemplary embodiment. Figure 4 As shown, when the data channel is switched from the primary card to the secondary card, step S12 includes the following steps:

[0082] In step S126, when there is at least one APN link on the primary card, the priority of the at least one APN link is obtained.

[0083] In step S127, the at least one APN link on the primary card is disconnected in sequence in descending order of priority.

[0084] In step S128, the at least one APN link is rebuilt in sequence through the secondary card in order of priority from high to low.

[0085] Exemplarily, when the data channel of the vehicle is switched from the main card to the secondary card, when there are multiple APN links on the main card, the priorities of the multiple APN links are obtained, and the multiple APN links on the main card are disconnected in sequence according to the order of the priorities of the APN links from high to low, and the multiple APN links are established on the secondary card in sequence according to the order of the priorities of the multiple APN links from high to low, in the manner described in the above embodiment; it can avoid conflicts between PDN signaling when disconnecting and establishing APN links in the dual-card dual-standby DSDS scenario, such as when the main card disconnects APN2 and the secondary card establishes APN3 at the same time, there may be signaling conflicts and confusion in the data link status. Among them, the priority of the APN link can be configured in the vehicle terminal by the vehicle manufacturer, or it can be set by the user when manually configuring the APN information, and the present disclosure does not limit this.

[0086] For example, when the main card is registered on the 5G SA network, the APN links used by the business layer include APN1 (priority 1), APN2 (priority 2) and APN3 (priority 3), among which priority 1 is the highest priority and priority 3 is the lowest priority. When the data channel is switched from the main card to the secondary card, the PDUsession release process can be sent in sequence through the Modem in order from high to low priority to disconnect the PDU links between the Modem and the network of the APN1, APN2 and APN3 links respectively; after that, the PDU session establishment process is sent in sequence through the Modem on the secondary card in order from high to low priority to establish APN1, APN2 and APN3 links respectively.

[0087] When the primary card is registered on the 4G LTE network, the APN links used by the service layer include APN1 (priority 1), APN2 (priority 2) and APN3 (priority 3), among which priority 1 is the highest priority and priority 3 is the lowest priority. When the data channel is switched from the primary card to the secondary card and APN1 is the default bearer link, first, the connection between the service layer and the Modem in the APN1 link is disconnected, but the PDN link between the Modem and the network can be kept alive; then, the PDN disconnect request process is sent to the APN2 and APN3 links in descending order of priority through the Modem to disconnect the PDN links between the Modem and the network of the APN2 and APN3 links respectively; then, the PDN connectivity request process is sent in descending order of priority through the Modem on the secondary card to establish the APN1, APN2 and APN3 links respectively.

[0088] Optionally, when the primary card is registered on a 4G LTE network, the method further comprises the following steps:

[0089] When the service layer closes the first APN link, the connection between the modem of the first APN link and the network is maintained. The first APN link is an APN link used for data transmission between the vehicle-mounted terminal and the TSP.

[0090] In the case where the service layer closes the second APN link, the connection between the modem of the second APN link and the network is disconnected. The second APN link is any link except the first APN link.

[0091] Exemplarily, when an APN link is established on the main card or the secondary card, the IP address assigned to the modem by the network for network connection is stored in the modem; the APN link used for data transmission between the vehicle-mounted terminal and the TSP is usually the APN link used to establish the default bearer when the main card is registered on 4G LTE; when the main card is registered on the 4G LTE network, when the main card closes the APN link, makes a call, or switches data channels, the APN link of the main card is disconnected, and the PDN disconnect request process can be initiated without going through the modem to keep the PDN link between the modem and the network alive. When the main card re-establishes the APN link, it can directly obtain the previously assigned IP address from the modem and re-establish the APN link without initiating the PDN connectivity request process to reduce the time loss caused by signaling transmission. To summarize, when the main card is registered on the 4G LTE network, in order to ensure that the data transmission of the default bearer APN link is not interrupted, the PDN link connection between the modem of the default bearer APN link on the main card and the network can be disconnected, and for the non-default bearer link (the second APN link), the PDN link connection between the modem on the main card and the network can be disconnected. It can be understood that for services with higher requirements on the network status, you can choose not to disconnect the PDN link connection between the modem and the network, and for services with lower requirements on the network status, you can choose to disconnect the PDN link connection between the modem and the network. The present disclosure does not impose any mandatory restrictions on this.

[0092] Optionally, when the primary card is registered on the 5G SA network, the method further includes the following steps:

[0093] When the service layer closes the first APN link, the connection between the modem of the first APN link and the network is maintained or disconnected. The first APN link is an APN link used for data transmission between the vehicle-mounted terminal and the TSP.

[0094] When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is maintained or disconnected, and the second APN link is any link except the first APN link.

[0095] Exemplarily, when the main card is registered on the 5G SA network, when the main card closes the APN link, makes a call, or switches data channels, etc., the APN link of the main card is disconnected, and the PDU session release process may not be initiated through the modem to keep the PDU link between the modem and the network alive. When the main card re-establishes the APN link, it may directly obtain the previously assigned IP address from the modem and re-establish the APN link without initiating the PDU session establishment process to reduce the time loss caused by signaling transmission. In summary, when the main card is registered on the 5G SA network, it has good data transmission capabilities. Therefore, when the service layer closes the APN link, you can choose to maintain or disconnect the PDU link connection between the modem and the network on the main card, and the present disclosure does not impose any mandatory restrictions on this.

[0096] Figure 5 is a flow chart of an APN switching method according to an exemplary embodiment. Figure 5 As shown, the following steps are also included:

[0097] In step S13, when the third APN link is established through the primary card or the secondary card, timing starts.

[0098] In step S14, when the timing duration reaches the specified time threshold and the establishment of the third APN link fails, the reconstruction time interval corresponding to the priority of the third APN link is determined; wherein, the third APN link is any one of the multiple APN links supported by the main card and the secondary card, and the duration of the APN link reconstruction time interval is negatively correlated with the priority of the APN link.

[0099] In step S15, the third APN link is re-initiated to be established according to the re-establishment time interval.

[0100] Exemplarily, when the main card or the secondary card is establishing an APN link, the timing starts. When the timing reaches the specified time threshold, if the APN link is not successfully established, the reconstruction of the APN link can be initiated again through the modem; wherein, the failure to establish the APN link can include failure to establish and being in the process of establishing a connection; the specified time threshold can be negatively correlated with the priority of the APN, that is, the higher the priority of the APN, the shorter the corresponding specified time threshold for reconstruction. When there are multiple APN links that need to be rebuilt, they can also be rebuilt in sequence according to the priority order of the multiple APN links. For example, for the first APN link used to establish the default bearer mentioned above, its reconstruction time interval can be set to 5 seconds, and for other APN links, the reconstruction time interval can be set to 10 seconds. It can be understood that the specified time threshold for APN link reconstruction can be configured by the vehicle manufacturer in the vehicle terminal, and the present disclosure does not limit the size of the specified time threshold for APN links of different priorities.

[0101] To sum up, when the vehicle's data channel is a secondary card, when making calls, switching data channels, etc. through the secondary card, the APN link switching method is the same or similar to the method described in the above embodiment, and this disclosure will not go into details.

[0102] In the above technical solution, an APN switching instruction is received; the APN link indicated by the APN switching instruction is disconnected on the main card, and the APN link is established through the secondary card, and the APN link is one or more. Through the above technical solution, the vehicle terminal can disconnect the APN link in the main card in response to the received APN switching instruction, and rebuild the APN link through the secondary card, so that when the APN link of the main card is disconnected, the vehicle can transmit data through the APN link of the secondary card to ensure that the data transmission of the service in the vehicle will not be interrupted, thereby improving driving safety and improving the driving experience of users.

[0103] Figure 6 is a block diagram of an APN switching device 600 according to an exemplary embodiment. Figure 6 , the APN switching device 600 includes: a receiving module 610 and a control module 620;

[0104] The receiving module 610 is configured to receive an APN switching instruction;

[0105] The control module 620 is configured to disconnect the APN link indicated by the APN switching instruction on the primary card, and establish the APN link through the secondary card, and the APN link is one or more.

[0106] Optionally, the control module 620 is configured to:

[0107] When the main card is in a call state, determining a first APN link on the main card, the first APN link being an APN link used for data transmission between the vehicle terminal and the TSP;

[0108] Disconnect the first APN link on the primary card;

[0109] The first APN link is rebuilt through the secondary card.

[0110] Optionally, the control module 620 is configured to:

[0111] In the case that the main card further includes other APN links except the first APN link, the first APN link on the main card is disconnected, and the other APN links are maintained on the main card.

[0112] Optionally, the control module 620 is further configured to:

[0113] When the primary card ends the call state, disconnect the first APN link on the secondary card;

[0114] The first APN link is rebuilt through the main card.

[0115] Optionally, the control module 820 includes: an acquisition submodule, a first control submodule and a second control submodule;

[0116] The acquisition submodule is configured to, when the data channel is switched from the primary card to the secondary card, acquire the priority of the at least one APN link if there is at least one APN link on the primary card;

[0117] The first control submodule is configured to disconnect the at least one APN link on the main card in order from high to low priority;

[0118] The second control submodule is configured to sequentially rebuild the at least one APN link through the secondary card in order of priority from high to low.

[0119] Optionally, the APN switching device 600 may further include: a connection management module configured to:

[0120] When the primary card is registered on the 4G LTE network, in the case where the service layer closes the first APN link, the connection between the modem of the first APN link and the network is maintained, and the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP;

[0121] In the case where the service layer closes the second APN link, the connection between the modem of the second APN link and the network is disconnected. The second APN link is any link except the first APN link.

[0122] Optionally, the connection management module is further configured to:

[0123] When the main card is registered on the 5G SA network, when the service layer closes the first APN link, maintain or disconnect the connection between the modem of the first APN link and the network, where the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP;

[0124] When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is maintained or disconnected, and the second APN link is any link except the first APN link.

[0125] Optionally, the APN switching device 600 may further include: a timing module and a reconstruction module;

[0126] The timing module is configured to start timing when a third APN link is established through the primary card or the secondary card;

[0127] The reconstruction module is configured to determine a reconstruction time interval corresponding to the priority of the third APN link when the timing duration reaches a specified time threshold and the establishment of the third APN link fails; wherein the third APN link is any one of the multiple APN links supported by the primary card and the secondary card, and the duration of the reconstruction time interval of the APN link is negatively correlated with the priority of the APN link;

[0128] The third APN link is re-initiated to be established according to the re-establishment time interval.

[0129] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0130] In the above technical solution, an APN switching instruction is received; the APN link indicated by the APN switching instruction is disconnected on the main card, and the APN link is established through the secondary card, and the APN link is one or more. Through the above technical solution, the vehicle terminal can disconnect the APN link in the main card in response to the received APN switching instruction, and rebuild the APN link through the secondary card, so that when the APN link of the main card is disconnected, the vehicle can transmit data through the APN link of the secondary card to ensure that the data transmission of the service in the vehicle will not be interrupted, thereby improving driving safety and improving the driving experience of users.

[0131] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the APN switching method provided by the present disclosure are implemented.

[0132] Figure 7 is a block diagram of a terminal device 700 according to an exemplary embodiment. For example, the terminal device 700 may be a vehicle-mounted terminal, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0133] Reference Figure 7 The terminal device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output interface 712 , a sensor component 714 , and a communication component 716 .

[0134] The processing component 702 generally controls the overall operation of the terminal device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned APN switching method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0135] The memory 704 is configured to store various types of data to support operations on the terminal device 700. Examples of such data include instructions for any application or method operating on the terminal device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage 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.

[0136] The power supply component 706 provides power to various components of the terminal device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 700.

[0137] The multimedia component 708 includes a screen that provides an output interface between the terminal device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the terminal device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0138] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the terminal device 700 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0139] The input / output interface 712 provides an interface between the processing component 702 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0140] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the terminal device 700. For example, the sensor assembly 714 can detect the open / closed state of the terminal device 700, the relative positioning of the components, such as the display and keypad of the terminal device 700, and the sensor assembly 714 can also detect the position change of the terminal device 700 or a component of the terminal device 700, the presence or absence of contact between the user and the terminal device 700, the orientation or acceleration / deceleration of the terminal device 700, and the temperature change of the terminal device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0141] The communication component 716 is configured to facilitate wired or wireless communication between the terminal device 700 and other devices. The terminal device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0142] In an exemplary embodiment, the terminal device 700 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned APN switching method.

[0143] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of a terminal device 700 to complete the above-mentioned APN switching method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0144] In addition to being an independent electronic device, the device of the terminal device 700 can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned APN switching method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned APN switching method is implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned APN switching method.

[0145] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above APN switching method when executed by the programmable device.

[0146] Figure 8 800 is a block diagram of a vehicle 800 according to an exemplary embodiment. For example, the vehicle 800 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 800 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0147] Reference Figure 8, the vehicle 800 may include various subsystems, for example, an infotainment system 810, a perception system 820, a decision control system 830, a drive system 840, and a computing platform 850. The vehicle 800 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 800 may be interconnected by wire or wireless means.

[0148] In some embodiments, the infotainment system 810 may include a communication system, an entertainment system, and a navigation system, etc.

[0149] The perception system 820 may include several sensors for sensing information about the environment around the vehicle 800. For example, the perception system 820 may include a global positioning system (the global positioning system may be a GPS system, or 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.

[0150] The decision control system 830 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0151] The drive system 840 may include components that provide powered motion for the vehicle 800. In one embodiment, the drive system 840 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0152] Some or all functions of the vehicle 800 are controlled by a computing platform 850. The computing platform 850 may include at least one processor 851 and a memory 852, and the processor 851 may execute instructions 853 stored in the memory 852.

[0153] The processor 851 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0154] The memory 852 may be implemented by any type of volatile or nonvolatile storage 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 storage, flash memory, magnetic disk or optical disk.

[0155] In addition to instructions 853 , memory 852 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 852 may be used by computing platform 850 .

[0156] In the embodiment of the present disclosure, the processor 851 may execute instruction 853 to complete all or part of the steps of the above-mentioned APN switching method.

[0157] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above APN switching method when executed by the programmable device.

[0158] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0159] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An APN switching method, characterized in that: Applied to a vehicle-mounted terminal, the vehicle-mounted terminal includes: a main card and a secondary card, and the method includes: Receive APN switching instructions; The APN link indicated by the APN switching instruction is disconnected on the primary card, and the APN link is established through the secondary card, where there are one or more APN links.

2. The method according to claim 1, characterized in that The disconnecting the APN link indicated by the APN switching instruction on the primary card and establishing the APN link through the secondary card includes: When the main card is in a call state, determining a first APN link on the main card, where the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP; Disconnecting the first APN link on the primary card; The first APN link is rebuilt through the secondary card.

3. The method according to claim 2, characterized in that In a case where the primary card further includes other APN links except the first APN link, disconnecting the first APN link on the primary card includes: The first APN link on the primary card is disconnected, and the other APN links are maintained on the primary card.

4. The method according to claim 2, characterized in that: The method comprises: When the primary card ends the call state, disconnecting the first APN link on the secondary card; Reestablish the first APN link through the primary card.

5. The method according to claim 1, characterized in that When the data channel is switched from the primary card to the secondary card, disconnecting the APN link indicated by the APN switching instruction on the primary card and establishing the APN link through the secondary card includes: In the case where there is at least one APN link on the primary card, obtaining a priority of the at least one APN link; Disconnecting the at least one APN link on the primary card in order from high to low priority; The at least one APN link is rebuilt in sequence through the secondary card in order from high to low priority.

6. The method according to claim 1, characterized in that When the primary card is registered on a 4G LTE network, the method includes: When the service layer closes the first APN link, maintaining the connection between the modem of the first APN link and the network, wherein the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP; When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is disconnected, and the second APN link is any link except the first APN link.

7. The method according to claim 1, characterized in that When the primary card is registered on the 5G SA network, the method includes: When the service layer closes the first APN link, maintaining or disconnecting the connection between the modem of the first APN link and the network, wherein the first APN link is an APN link used for data transmission between the vehicle terminal and the TSP; When the service layer closes the second APN link, the connection between the modem of the second APN link and the network is maintained or disconnected, and the second APN link is any link except the first APN link.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When a third APN link is established through the primary card or the secondary card, the timing starts; When the timing duration reaches a specified time threshold and the establishment of the third APN link fails, determining a reconstruction time interval corresponding to the priority of the third APN link; wherein the third APN link is any one of the multiple APN links supported by the primary card and the secondary card, and the duration of the reconstruction time interval of the APN link is negatively correlated with the priority of the APN link; Re-initiate establishment of the third APN link according to the re-establishment time interval.

9. An APN switching device, characterized in that: include: A receiving module is configured to receive an APN switching instruction; The control module is configured to disconnect the APN link indicated by the APN switching instruction on the primary card and establish the APN link through the secondary card, where there are one or more APN links.

10. A terminal device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the executable instructions to implement the steps of the method in any one of claims 1 to 8.

11. A vehicle, characterized in that: Including the terminal device described in claim 10.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.