Communication method, electronic equipment, computer readable storage medium and chip system

By switching the IP type and duplicate request mechanism during the IMS registration process, the problem of low IMS registration success rate is solved, the flexibility and reliability of electronic devices to obtain IMS addresses is improved, and the success rate of IMS registration is improved.

CN119254757APending Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410451472.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the prior art, the success rate of IMS registration is relatively low, especially when the acquisition of IMS address prefix information fails, it is difficult for electronic devices to effectively register IMS.

Method used

By switching to the second IP type when the first IP type IMS address prefix information is not received, sending a second connection request for IMS registration, and repeatedly sending a routing request or changing the IP type when the routing response is not successfully received, Improve the flexibility and reliability of IMS address requests.

Benefits of technology

The success rate of IMS registration is improved, especially in the case of network exceptions or address prefix information acquisition failure, by switching IP types and repeated request mechanisms, the ability of electronic devices to obtain IMS addresses is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254757A_ABST
    Figure CN119254757A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method, electronic equipment, a computer readable storage medium and a chip system, and the method comprises the steps that the electronic equipment requests an IMS address of a first IP type from network equipment, and if the IMS address of the first IP type fails to be acquired, the electronic equipment can request an IMS address of a second IP type from the network equipment. Wherein the IMS address of the first IP type is composed of interface identification information and address prefix information, and the reason for obtaining failure of the IMS address of the first IP type can be that a routing response carrying the address prefix information is not received. In this case, the electronic device requests the IMS address of the second IP type from the network device to successfully complete the IMS registration without receiving the routing response, thereby avoiding the situation that the IMS registration fails due to the fact that the routing response is not received. According to the invention, the success rate of IMS registration can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, electronic equipment, computer-readable storage medium and chip system. Background Art

[0002] The Internet Protocol (IP) Multimedia Subsystem (IMS) is a network architecture that provides voice and multimedia services based on an IP network. By using IMS services, voice solutions can be provided for mobile communication networks. The premise for electronic devices to use IMS services is that the electronic devices have successfully completed IMS registration. In other words, electronic devices successfully complete IMS registration through interaction with network devices, and then the electronic devices can implement IP voice services based on mobile communication networks and IMS. Therefore, how to improve the success rate of IMS registration is a technical issue worthy of study. Summary of the invention

[0003] The embodiments of the present application provide a communication method, an electronic device, a computer-readable storage medium, and a chip system, which are conducive to improving the success rate of IMS registration.

[0004] In a first aspect, the present application provides a communication method, the method comprising: sending a first connection request to a network device; the IP type carried by the first connection request is a first IP type; receiving a first connection response corresponding to the first connection request, the first connection response carrying interface identification information; sending a routing request to the network device, the routing request is used to request address prefix information of the first IP type; the interface identification information and the address prefix information constitute a first IMS address, and the first IMS address is used to initiate an IMS registration of the first IP type; in response to not receiving a routing response corresponding to the routing request within a first time period, sending a second connection request to the network device; the IP type carried by the second connection request is a second IP type; receiving a second connection response corresponding to the second connection request; the second connection response carries a second IMS address; sending a first IMS registration request to the network device, the first IMS registration request carries the second IMS address.

[0005] In the above embodiment, the electronic device may first request an IMS address of the first IP type from the network device, and if the address prefix information used to form the IMS address of the first IP type fails to be obtained, the electronic device may then request an IMS address of the second IP type from the network device, thereby performing IMS registration through the IMS address of the second IP type. The reason why the electronic device failed to obtain the address prefix information used to form the IMS address of the first IP type may be due to a failure to receive a routing response. In this case, if the electronic device re-requests the IMS address of the second IP type to successfully complete the IMS registration, it is not necessary to receive a routing response, which is beneficial to improving the success rate of the IMS registration.

[0006] In combination with the first aspect, in one possible manner, in response to not receiving a routing response corresponding to the routing request within the first time period, sending a second connection request to the network device includes: in response to not receiving a routing response corresponding to the routing request within the first time period, sending a routing request to the network device; in response to not receiving a routing response within the second time period, sending a second connection request to the network device. It can be seen that in the case where the routing response corresponding to the routing request is not received within the first time period, the routing request can be sent to the network device again. If the routing response corresponding to the routing request is still not received within the second time period, the electronic device can change the IP type of the request and send a second connection request to the network device. This is conducive to improving the flexibility of electronic devices in requesting IMS addresses.

[0007] In combination with the first aspect, in one possible manner, in response to not receiving a routing response corresponding to the routing request within the first time period, sending a second connection request to the network device includes: in response to not receiving a routing response corresponding to the routing request within the first time period, repeatedly sending N routing requests to the network device; N is a positive integer; in response to not receiving routing responses corresponding to the N routing requests, sending the second connection request to the network device. It can be seen that in the case where the routing response corresponding to the routing request is not received within the first time period, the routing request can be repeatedly sent to the network device multiple times. If the routing responses corresponding to the routing requests sent multiple times are not received, the electronic device can change the IP type of the request and send a second connection request to the network device. This is conducive to improving the flexibility of electronic devices in requesting IMS addresses.

[0008] In combination with the first aspect, in one possible manner, the method further includes: in response to receiving a routing response within the first time period, and the routing response does not carry the address prefix information, sending a second connection request to the network device. It can be seen that if the received routing response does not carry the address prefix information, it will also cause the electronic device to fail to obtain the IMS address of the first IP type. In this case, the electronic device can change the requested IP type and send a second connection request to the network device. This is conducive to improving the flexibility of electronic devices in requesting IMS addresses.

[0009] In conjunction with the first aspect, in one possible manner, the sending of the first connection request to the network device includes: sending the first connection request to the network device based on the network type of the network to which the electronic device is attached. It can be seen that the electronic device can be attached to different network types, and send the first connection request to the network device according to the attached network type. This is conducive to improving the reliability of the electronic device requesting the IMS address.

[0010] In combination with the first aspect, in one possible manner, the method further includes: in response to the target operation performed within the third time period, sending a third connection request to the network device; the IP type carried by the third connection request is the second IP type; the target operation includes at least one of powering on, restarting, and turning off the flight mode; receiving a third connection response from the network device; the third connection response carries a third IMS address; sending a second IMS registration request to the network device, the second IMS registration request carries the third IMS address. It can be seen that if the electronic device performs the target operation within the third time period, it means that the electronic device must re-register with the IMS before using the voice service provided by the IMS network. At this time, the electronic device can choose to register with the IMS address of the second IP type. This is conducive to improving the success rate of IMS registration.

[0011] In combination with the first aspect, in one possible manner, the sending of the third connection request to the network device in response to the target operation performed in the third time period includes: sending the third connection request to the network device in response to the target operation performed in the third time period, and the location information of the electronic device has not changed. It can be seen that if the electronic device performs the target operation in the third time period and the location information has not changed, the IMS address of the second IP type can be re-acquired for IMS registration. This is conducive to improving the success rate of IMS registration.

[0012] In a second aspect, the present application provides an electronic device, which includes: one or more processors, a display screen and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute: sending a first connection request to a network device; the IP type carried by the first connection request is a first IP type; receiving a first connection response corresponding to the first connection request, the first connection response carrying interface identification information; sending a routing request to the network device, the routing request is used to request address prefix information of the first IP type; the interface identification information and the address prefix information constitute a first IMS address, and the first IMS address is used to initiate an IMS registration of the first IP type; in response to not receiving a routing response corresponding to the routing request within a first time period, sending a second connection request to the network device; the IP type carried by the second connection request is a second IP type; receiving a second connection response corresponding to the second connection request; the second connection response carries a second IMS address; sending a first IMS registration request to the network device, the first IMS registration request carries the second IMS address.

[0013] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to not receiving a routing response corresponding to the routing request within a first time period, sending a routing request to a network device; in response to not receiving a routing response within a second time period, sending a second connection request to the network device.

[0014] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to not receiving a routing response corresponding to the routing request within a first time period, repeatedly sending a routing request to the network device N times; N is a positive integer; in response to not receiving any routing responses corresponding to the N routing requests, sending a second connection request to the network device.

[0015] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to receiving a routing response within a first time period, and the routing response does not carry address prefix information, sending a second connection request to the network device.

[0016] In conjunction with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: sending a first connection request to a network device based on a network type of a network to which the electronic device is attached.

[0017] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to a target operation performed within a third time period, sending a third connection request to the network device; the IP type carried by the third connection request is the second IP type; the target operation includes at least one of powering on, restarting, and turning off airplane mode; receiving a third connection response from the network device; the third connection response carries a third IMS address; and sending a second IMS registration request to the network device, the second IMS registration request carrying the third IMS address.

[0018] In combination with the second aspect, in one possible manner, the one or more processors call the computer instructions to cause the electronic device to execute: in response to the target operation performed within a third time period and the location information of the electronic device has not changed, send a third connection request to the network device.

[0019] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method described in the first aspect above.

[0020] In a fourth aspect, the present application provides a chip system, which is coupled to a memory, and the chip system is used to read and execute a computer program stored in the memory to implement the method described in the first aspect above.

[0021] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of a process of IMS registration in an LTE network provided in an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a system architecture of a communication system applied to an embodiment of the present application;

[0024] Figure 3 It is a flow chart of a communication method provided in an embodiment of the present application;

[0025] Figure 4 This is a schematic diagram of an electronic device displaying an IMS registration success mark provided by an embodiment of the present application;

[0026] Figure 5 It is a flowchart of another communication method provided in an embodiment of the present application;

[0027] Figure 6 It is a flowchart of another communication method provided in an embodiment of the present application;

[0028] Figure 7 is a structural diagram of a communication device provided in an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", "third", etc. in the embodiments of the present application are distinguished from different objects, rather than being used to describe a specific order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or alternatively, steps or units not listed are also included, or other steps or units inherent to these processes, methods, products or devices are optionally included. The terms "one embodiment" or "some embodiments", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the differences in the embodiments of the present application are not necessarily all with reference to the same embodiment, but mean "one or more but not all embodiments", unless otherwise particularly emphasized.

[0032] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0033] In order to more clearly illustrate the technical solution of the present application, the relevant concepts involved in the present application are introduced below.

[0034] 1. IMS

[0035] IMS stands for IP multimedia subsystem (IMS), which is a network architecture that provides voice and multimedia services based on IP networks. IMS enables various types of terminals to establish peer-to-peer IP communications and obtain the required quality of service. By using IMS services, voice solutions can be provided for mobile communication networks. For example, 4G voice services can be implemented by adopting IMS-based long-term evolution voice bearer (voice over long term evolution, VoLTE), and 5G voice services can be implemented by adopting IMS-based new air interface voice bearer (voice over NR, VoNR) or evolved packet system fallback voice bearer (evolved packet system fallback, EPSFallback).

[0036] 2. IP Type

[0037] In the embodiment of the present application, the IP type refers to the type of the IP address, and the type of the IP address may specifically include three types: IPv4, IPv6, and IPv4v6.

[0038] IPv4 refers to the fourth version of the Internet Protocol, a communication protocol that specifies how data packets are sent and received on the Internet. IPv4 uses 32-bit binary numbers to represent an IP address, that is, an IPv4 address consists of four 8-bit binary numbers, each of which can be converted to a decimal number and separated by periods.

[0039] IPv6 refers to the sixth version of the Internet Protocol. An IPv6 address consists of two parts: address prefix information and interface identification information. The address prefix information indicates the scope of a network or subnet, and the interface identification information indicates the unique identification of a device or host. An IPv6 address consists of 128 bits of binary numbers, usually expressed in hexadecimal, with every 4 bits of binary numbers corresponding to a hexadecimal number, and every 16 bits of binary numbers corresponding to a hexadecimal number, separated by colons.

[0040] IPv4v6 refers to a hybrid of Internet Protocol version 4 and 6, which includes both IPv4 addresses and IPv6 addresses.

[0041] 3. IMS Registration

[0042] The electronic device can use IMS services only after completing IMS registration. The IMS registration process may include three stages: network registration stage, IMS bearer establishment stage, and IMS network registration stage.

[0043] For example, see Figure 1 , Figure 1 FIG. 1 is a flow chart of IMS registration in an LTE network provided in an embodiment of the present application. Figure 1 As shown, the following steps may be included but are not limited to:

[0044] S101, an electronic device sends an attach request message to a network device. Correspondingly, the network device receives the attach request message from the electronic device.

[0045] The attach request message may carry identity document (ID) of the electronic device. For example, the ID of the electronic device may be an international mobile subscriber identity (IMSI).

[0046] S102, the network device sends an attach accept message to the electronic device. Correspondingly, the electronic device receives the attach accept message from the network device.

[0047] S103, the electronic device sends an attach complete message to the network device. Correspondingly, the network device receives the attach complete message from the electronic device.

[0048] After receiving the attach accept message, the electronic device may establish an LTE network bearer between the electronic device and the network device, and send an attach complete message to the network device.

[0049] S104, the electronic device sends an IMS connection request message to the network device. Correspondingly, the network device receives the IMS connection request message from the electronic device.

[0050] The IMS connection request message may carry an IP type, such as IPv4 type, IPv6 type, or IPv4v6 type, to request the network device to allocate an IMS address of the corresponding IP type. For an LTE network, the IMS connection request message may be a public data network (PDN) connection request message.

[0051] S105, the network device sends an EPS dedicated bearer activation request message to the electronic device. Correspondingly, the electronic device receives the EPS dedicated bearer activation request message from the network device.

[0052] In the case where the IP type carried by the connection request message in S104 is IPv4, the EPS dedicated bearer activation request message can carry an IPv4 IMS address; in the case where the IP type carried by the connection request message in S104 is IPv6 or IPv4v6, the EPS dedicated bearer activation request message can carry interface identifier information (interface identifier, IID). It is worth noting that since the IPv6 IMS address is composed of interface identifier information and address prefix information. In order to obtain the IPv6 address prefix information used to form the IPv6 IMS address, the electronic device can request the address prefix information through the routing request in S107 described below.

[0053] S106, the electronic device sends an activation EPS dedicated bearer acceptance message to the network device. Correspondingly, the network device receives the activation EPS dedicated bearer acceptance message from the electronic device.

[0054] Optionally, S107, the electronic device sends a router solicitation (RS) message to the network device. Correspondingly, the network device receives the RS message from the electronic device.

[0055] The RS message may be used to request address prefix information of an IPv6 type IMS address.

[0056] Optionally, S108, the network device sends a router advertisement (RA) message to the electronic device. Correspondingly, the electronic device receives the RA message from the network device.

[0057] The RA message may carry the IPv6 address prefix information of the IPv6 type IMS address.

[0058] It is understandable that, when the IP type carried in the connection request message in S104 is IPv4, there is no need to execute S107 and S108.

[0059] S109, the electronic device sends an IMS registration request message to the network device. Correspondingly, the network device receives the IMS registration request message from the electronic device.

[0060] The IMS registration request message may be a session initialization protocol (SIP) registration request message. The registration request message may carry an IMS address corresponding to the IP type carried by the connection request message in S104, so as to perform IMS registration.

[0061] In the above-mentioned IMS registration process, when the IP type carried by the connection request message is IPv6 type or IPv4v6 type, due to unsuccessful reception of the RA message, failure in transmission of the RA message, network abnormalities, etc., there is a situation where the IPv6 type address prefix information cannot be obtained successfully, making it impossible for the electronic device to form an IPv6 type IMS address, resulting in IMS registration failure.

[0062] Based on this, the embodiments of the present application provide a communication method, an electronic device, a computer-readable storage medium, and a chip system, which are conducive to improving the success rate of IMS registration.

[0063] The embodiments of the present application can be applied to various communication systems, for example, LTE system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new wireless (NR), future evolved communication systems, such as sixth generation (6G) system, etc.

[0064] It can be understood that as long as the communication system adopts IMS as a voice implementation solution, the communication system can be applied to the embodiments of the present application.

[0065] The following is an introduction to the system architecture of the communication system applied to the embodiments of the present application.

[0066] See also Figure 2 , Figure 2 Schematic diagram of the system architecture of a communication system applied to an embodiment of the present application. Figure 2 As shown, the communication system 20 may include an electronic device 201 and a network device 202, and the network device 202 may include an access network device 203 and a core network device 204. The electronic device 201 communicates with the core network device 204 through the access network device 203 to achieve communication data transmission. The electronic device 201 and the access network device 203, and the access network device 203 and the core network device 204 can communicate through a wireless link.

[0067] The electronic device 201 can communicate with one or more core networks via a radio access network (RAN), and the electronic device 201 can be called an access terminal, user equipment (UE), user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The access terminal can be a cellular phone, a cordless phone, a SIP phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network or a terminal device in a future evolved PLMN, etc.

[0068] The access network device 203 can be a device for communicating with the electronic device 201. The access network device 203 can be a base station (base transceiver station, BTS) in a global system for mobile communications (GSM) system or code division multiple access (CDMA), or a base station (NodeB, NB) in a wideband code division multiple access (WCDMA) system, or an evolved NodeB (eNB or eNodeB) in an LTE system, or a wireless controller in a cloud radio access network (CRAN) scenario, or the access network device 203 can be a relay station, an access point, a vehicle-mounted device, a wearable device, an access network device in a 5G network, or an access network device in a future evolved PLMN network, etc. The embodiments of the present application are not limited to this.

[0069] The core network device 204 can be a core network device in an LTE communication system, a core network device in an NR communication system, or a core network device in a future communication system, such as a core network device in a 6G communication system.

[0070] For the LTE communication system, the core network device 204 may include an LTE core network device and an IMS core network device. The LTE core network device may provide access control, data routing and forwarding, mobility management, security, and wireless resource management of the LTE network. The LTE core network device may include a mobility management entity (MME) network element, a serving gateway (SGW) network element, a public data network (PDN) gateway (PGW) network element, and a policy and charging rules function (PCRF) network element.

[0071] For the NR communication system, the core network device 204 may include an NR core network device and an IMS core network device. The NR core network device may provide mobility management, signaling processing, signaling routing, session management, etc. of the NR network. The NR core network device may include an access and mobility management function (AMF) network element, a session management function (SMF) network element, a charging policy function (PCF) network element, and a user plane function (UPF) network element.

[0072] Among them, the IMS core network equipment can provide IMS services. The IMS core network equipment may include session control network elements (such as proxy-call session control function (P-CSCF) network elements, session border controller (SBC), interrogating-call session control function (I-CSCF) network elements, serving-call session control function (S-CSCF) network elements, domain name system (DNS) network elements and home subscriber server (HSS) network elements, etc.

[0073] The communication method provided in the embodiments of the present application is described in detail below.

[0074] See also Figure 3 , Figure 3 is a flow chart of a communication method provided in an embodiment of the present application. Figure 3 As shown, the method may include but is not limited to the following steps:

[0075] S301, the electronic device sends a first connection request to the network device. Correspondingly, the network device receives the first connection request from the electronic device.

[0076] In an embodiment of the present application, when the electronic device sends a first connection request to the network device, the IP type may be carried so that the network device can allocate an IP to the electronic device according to the IP type. The IP type carried by the first connection request may be a first IP type, which may be an IPv6 type or an IPv4v6 type.

[0077] The electronic device sending the first connection request to the network device can be understood as the electronic device sending the first connection request to the first core network through the access network.

[0078] In some embodiments, the first core network may be an LTE core network, in which case the first connection request may be a first PDN connection request. Specifically, the electronic device may send the first PDN connection request to a PGW network element in the LTE core network. Accordingly, the PGW network element may receive the first PDN connection request from the electronic device.

[0079] Optionally, the first PDN connection request may also carry a parameter access point name (APN), and the parameter APN may be used to indicate the network to which the electronic device requests to connect. In the embodiment of the present application, the parameter APN carried by the first PDN connection request is of IMS type, indicating that the network to which the electronic device requests to connect is an IMS network.

[0080] In addition, before the electronic device sends the first PDN connection request to the PGW network element in the LTE core network, it can first send an attachment request message to the MME network element in the LTE core network. Correspondingly, the MME network element can receive the attachment request message from the electronic device. Among them, the attachment request message can carry the ID of the electronic device. The MME network element can perform authentication based on the ID of the electronic device. Furthermore, if the authentication is passed, the MME network element can send an attachment acceptance message to the electronic device. Correspondingly, the electronic device can receive the attachment acceptance message from the MME network element, thereby establishing an LTE network bearer. After the LTE network bearer is established, the electronic device can also send an attachment completion message to the MME network element. Correspondingly, the MME network element receives an attachment completion message from the electronic device.

[0081] In some embodiments, the first core network may be an NR core network, in which case the first connection request may be a first protocol data unit (PDU) session establishment request. Specifically, the electronic device may send a first PDU session establishment request to an SMF network element in the NR core network. Accordingly, the SMF network element may receive a first PDU session establishment request from the electronic device.

[0082] Optionally, the first PDU session establishment request may also carry a parameter (data network name, DNN), and the parameter DNN may be used to indicate the network to which the electronic device requests to connect. In the embodiment of the present application, the parameter DNN carried by the first PDU session establishment request is of IMS type, indicating that the network to which the electronic device requests to connect is an IMS network.

[0083] Similarly, before the electronic device sends a PDU session establishment request to the SMF network element in the NR core network, it can first send an attachment request message to the AMF network element in the NR core network. Correspondingly, the AMF network element can receive the attachment request message from the electronic device. Among them, the attachment request message can carry the ID of the electronic device. The AMF network element can perform authentication based on the ID of the electronic device. Furthermore, if the authentication is passed, the AMF network element can send an attachment acceptance message to the electronic device. Correspondingly, the electronic device can receive the attachment acceptance message from the AMF network element, thereby establishing an NR network bearer. After the NR network bearer is established, the electronic device can also send an attachment completion message to the AMF network element. Correspondingly, the AMF network element receives an attachment completion message from the electronic device.

[0084] In some embodiments, the electronic device may first determine the network type of the currently attached network, and then send a first connection request to the network device based on the network type of the attached network. If the electronic device searches for an LTE network during the network search process, it initiates an attachment request for the LTE network, and after the attachment is completed, it sends a first connection request to the network device based on the LTE network. If the electronic device searches for an NR network during the network search process, it initiates an attachment request for the NR network, and after the attachment is completed, it sends a first connection request to the network device based on the NR network.

[0085] S302: The network device sends a first connection response corresponding to the first connection request to the electronic device. Correspondingly, the electronic device receives the first connection response from the network device.

[0086] In an embodiment of the present application, the network device may send a first connection response corresponding to the first connection request to the electronic device according to the first IP type carried by the first connection request. Here, the first IP type is an IPv6 type or an IPv4v6 type. Among them, the first connection response may carry interface identifier (Interface Identifier, IID) information. The interface identifier information can be used for the electronic device to form an IMS address of IPv6 type. The first connection response may also carry the IP address of the P-CSCF network element, and the P-CSCF network element can be used to receive a request sent by the electronic device to the IMS network, such as a registration request sent by the electronic device to the IMS network.

[0087] For the LTE network, the network device sending the first connection response corresponding to the first connection request to the electronic device can be understood as the PGW network element sending the PDN connection response corresponding to the PDN connection request to the electronic device. Accordingly, the electronic device receives the PDN connection response from the PGW network element.

[0088] For the NR network, the first connection response corresponding to the first connection request sent by the network device to the electronic device can be understood as the PDU session establishment response corresponding to the PDU session establishment request sent by the SMF network element to the electronic device. Correspondingly, the electronic device receives the PDU session establishment response from the SMF network element.

[0089] S303, the electronic device sends a routing request to the network device. Correspondingly, the network device receives the routing request from the electronic device.

[0090] In the embodiment of the present application, the routing request can be used to request the address prefix information of the first IP type. Since the IPv6 type IMS address is composed of interface identification information and address prefix information, after the electronic device obtains the interface identification information, it needs to request to obtain the address prefix information to form a complete IPv6 type IMS address.

[0091] S304: In response to not receiving a routing response corresponding to the routing request within the first time period, the electronic device sends a second connection request to the network device. Accordingly, the network device receives the second connection request from the electronic device.

[0092] In an embodiment of the present application, the routing response corresponding to the routing request is a routing response carrying address prefix information. After the electronic device sends a routing request, it may fail to successfully receive the routing response corresponding to the routing request. The reason for the unsuccessful reception may be, for example, a network abnormality. If the electronic device does not receive the routing response corresponding to the routing request within the first time period, a second connection request may be sent to the network device. The second connection request may carry a second IP type, and the second IP type is an IPv4 type.

[0093] S304 can be understood as, if the reason why the electronic device fails to obtain a complete IPv6 type IMS address is that the IPv6 address prefix information used to constitute the IPv6 type IMS address fails to be obtained, then the electronic device can change the first IP type (IPv6 type or IPv4v6 type) to the second IP type (IPv4 type), and then send a second connection request carrying the second IP type to request the second IP type IMS address.

[0094] Among them, if the electronic device fails to obtain the complete IPv6 type IMS address, the IMS registration of the electronic device will fail. Optionally, the electronic device can change the first IP type to the second IP type after the first IMS registration fails, and send a second connection request carrying the second IP type to the network device. Alternatively, the electronic device can also repeatedly send the first connection request carrying the first IP type to the network device multiple times after the first IMS registration fails, that is, multiple attempts to register the IMS of the first IP type. In this case, the electronic device can change the first IP type to the second IP type after multiple attempts to register the IMS of the first IP type fail, and send a second connection request carrying the second IP type. The specific number of attempts is not limited in the embodiments of this application.

[0095] In some embodiments, the timing when the electronic device sends the second connection request to the network device may include the following situations:

[0096] Case 1: The electronic device sends a routing request to the network device at a first moment, and does not receive a routing response corresponding to the routing request within a first time period after the first moment.

[0097] In case 1, the electronic device may send a second connection request to the network device at the end of the first time period after the first time period. That is, the electronic device may start a first timer at the first time period, and the duration of the first timer is the duration of the first time period. If the first timer counts down and no routing response is received, the electronic device may send a second connection request to the network device after the first timer counts down.

[0098] Case 2: The electronic device sends a routing request to the network device at a first moment, does not receive a routing response corresponding to the routing request within a first time period after the first moment, sends a routing request to the network device again at a second moment, and still does not receive a routing response corresponding to the routing request within a second time period after the second moment.

[0099] In case 2, the electronic device may send a second connection request to the network device at the moment when the second time period ends after the second moment. The first time period and the second time period may be the same or different. That is, the electronic device may start a first timer at the first moment, and the duration of the first timer is the duration of the first time period. If the first timer counts down and the routing response corresponding to the routing request sent at the first moment is not received, the electronic device may send a routing request to the network device again at the second moment, and start a second timer at the second moment, and the duration of the second timer is the duration of the second time period. If the second timer counts down and the routing response corresponding to the routing request sent at the second moment is not received, the electronic device may send a second connection request to the network device after the second timer counts down.

[0100] Case 3: The electronic device sends a routing request to the network device at a first moment, and receives a routing response within a first time period after the first moment, but the routing response does not carry the address prefix information.

[0101] In case 3, although the electronic device receives a routing response, the routing response does not carry the IPv6 address prefix information, and the electronic device still cannot form a complete IPv6 address. Optionally, the electronic device can send a routing request to the network device again at the end of the first time period after the first moment, or can send a second connection request to the network device at the end of the first time period after the first moment.

[0102] Case 4: The electronic device sends a routing request to the network device at a first moment, and does not receive a routing response corresponding to the routing request within a first time period after the first moment. After the first time period ends, the electronic device repeatedly sends N routing requests to the network device, and does not receive any routing responses corresponding to the N routing requests.

[0103] In case 4, the electronic device may send a second connection request to the network device after the routing response corresponding to the routing request sent for the Nth time has not been received. That is to say, the electronic device may start a counter at the first moment to count the number of times the routing request is sent. When the number of times the routing request is sent reaches N times, and the routing responses corresponding to the routing requests sent for the Nth time have not been received, then a second connection request may be sent to the network device. Optionally, the sending time intervals between each routing request in the N routing requests may be the same or different. For example, the time interval between the first sending of the routing request and the second sending of the routing request may be the first time interval, and the time interval between the second sending of the routing request and the third sending of the routing request may be the second time interval. The first time interval may be, for example, 5 seconds, and the second time interval may be, for example, 3 seconds, or the first time interval and the second time interval may be, for example, both 4 seconds, and the embodiment of the present application does not limit this. It can be understood that the value of N can be set according to specific needs, and the minimum value of N can be set to 1.

[0104] In some embodiments, before sending the second connection request to the network device, the electronic device may also send a first connection disconnection request to the network device. Accordingly, the network device may receive the first connection disconnection request from the electronic device. The first connection disconnection request may be used to indicate that the acquisition of the IMS address of the first IP type has failed. Furthermore, the network device may send a deactivation dedicated bearer request message to the electronic device based on the first connection disconnection request. After receiving the deactivation dedicated bearer request message from the network device, the electronic device may send a deactivation dedicated bearer request acceptance message to the network device.

[0105] Similar to step S301, for the LTE network, the second connection request may be a second PDN connection request, the IP type carried by the second PDN connection request is a second IP type, and the second IP type is an IPv4 type. Specifically, the electronic device may send a second connection request to a PGW network element in the LTE core network. Accordingly, the PGW network element may receive a second PDN connection request from the electronic device. Optionally, the second PDN connection request may carry a parameter APN, and the parameter APN is an IMS type.

[0106] For the NR network, the second connection request may be a second PDU session establishment request. Specifically, the electronic device may send a second PDU session establishment request to the SMF network element in the NR core network. Correspondingly, the SMF network element may receive a second PDU session establishment request from the electronic device. Optionally, the second PDU session establishment request may carry a parameter DNN, and the parameter DNN is of IMS type.

[0107] S305: The network device sends a second connection response corresponding to the second connection request to the electronic device. Correspondingly, the electronic device receives the second connection response from the network device.

[0108] In an embodiment of the present application, the second connection response sent by the network device to the electronic device carries a second IMS address, and the second IMS address is an IMS address of the second IP type, that is, an IMS address of the IPv4 type. Compared with the IMS address of the IPv6 type, the IMS address of the IPv4 type here does not require the splicing of interface identification information and address prefix information, but can be directly obtained from the second connection response. Therefore, the electronic device and the network device do not need to go through the above-mentioned S403 and S404 interaction process, which avoids the situation where the routing response corresponding to the routing request is not received due to network anomalies or other anomalies, which is conducive to improving the success rate of IMS registration.

[0109] For the LTE network, the second connection response may be a second PDN connection response. Specifically, after the PGW network element receives the second PDN connection request from the electronic device, it may allocate a second IMS address to the electronic device, and then the PGW network element may send a second PDN connection response carrying the second IMS address to the electronic device. Accordingly, the electronic device may receive the second PDN connection response from the PGW network element.

[0110] For the NR network, the second connection response may be a second PDU session establishment response. Specifically, after the SMF network element receives the second PDU session establishment request from the electronic device, it may allocate a second IMS address to the electronic device, and then the SMF network element may send a second PDU session establishment response carrying the second IMS address to the electronic device. Accordingly, the electronic device may receive a second PDU session establishment response from the SMF network element.

[0111] S306, the electronic device sends a first IMS registration request to the network device. Correspondingly, the network device receives the first IMS registration request from the electronic device.

[0112] In the embodiment of the present application, after obtaining the second IMS address, the electronic device may send a first IMS registration request to the network device to perform IMS registration, and the first IMS registration request may carry the second IMS address. The first IMS registration request may be, for example, a SIP registration request.

[0113] In some embodiments, after the network device completes the IMS registration based on the second IMS address, it can send an IMS registration success message to the electronic device. After the electronic device receives the IMS registration success message from the network device, it can use the voice services provided by the IMS network, such as voice incoming call services, voice outgoing call services, etc. Optionally, after the IMS registration is successful, the electronic device can display the IMS registration success mark, or the electronic device can also hide the IMS registration success mark. The IMS registration success mark can be a high definition (HD) mark, a VoLTE mark, a VoNR mark, etc.

[0114] For example, see Figure 4 , Figure 4 Schematic diagram of an electronic device showing a successful IMS registration mark provided by an embodiment of the present application. Figure 4 As shown, after the electronic device accesses the 5G network and successfully registers the IMS network, an IMS registration success mark 401 may be displayed. The mark 401 may be a mark including the text "HD", indicating that the electronic device can use the voice service provided by the IMS network.

[0115] In some embodiments, after the electronic device successfully performs IMS registration through the second IMS address, in response to the target operation performed within the third time period, a third connection request may be sent to the network device, and the IP type carried by the third connection request is the second IP type. Among them, the target operation may include at least one of power on, restart, and turn off the flight mode. That is, after the electronic device successfully performs IMS registration through the second IMS address, it can choose to use the IMS address of the second IP type for IMS registration within a period of time (i.e., within the third time period). If the electronic device performs any one of the operations of power on, restart, and turn off the flight mode within the third time period, it means that the electronic device will re-register with IMS to use the voice service provided by the IMS network. At this time, the electronic device can send a third connection request carrying the second IP type to the network device. Correspondingly, the network device can receive the third connection request from the electronic device and allocate a third IMS address of the second IP type to the electronic device. Optionally, the third IMS address can be an address different from the second IMS address reallocated by the network device, or it can be an address that is the same as the second IMS address allocated by the network device according to the record. Then the network device can send a third connection response to the electronic device, and the third connection response can carry the third IMS address. After receiving the third connection response, the electronic device can send a second IMS registration request to the network device to re-register with the IMS, and the second IMS registration request carries the third IMS address. In this way, the success rate of the electronic device re-registering with the IMS in the third time period can be improved.

[0116] In some embodiments, in response to the target operation performed by the electronic device in the third time period, it can also be determined whether the location information of the electronic device has changed. If the electronic device performs the target operation in the third time period and the location information of the electronic device has not changed, then the success rate of the electronic device registering with the IMS through the IMS address of the second IP type in this period and in this area is higher. In response to the target operation performed in the third time period and the location information of the electronic device has not changed, a third connection request carrying the second IP type can be sent to the network device to obtain the IMS address of the second IP type and re-register with the IMS address of the second IP type.

[0117] Figure 3 In the illustrated embodiment, the electronic device may first request an IPv6 type or IPv4v6 type IMS address from the network device, and then request an IPv4 type IMS address from the network device if the address prefix information used to form the IPv6 type IMS address fails, thereby performing IMS registration through the IPv4 type IMS address. The reason why the electronic device failed to obtain the address prefix information used to form the IPv6 type IMS address may be due to a failure to receive a routing response. In this case, if the electronic device re-requests an IPv4 type IMS address for IMS registration, it does not need to receive a routing response, which is beneficial to improving the success rate of IMS registration.

[0118] The following takes an example of an electronic device performing IMS registration through an LTE communication system to introduce a communication method provided in an embodiment of the present application.

[0119] See also Figure 5 , Figure 5 FIG. 1 is a flow chart of another communication method provided in an embodiment of the present application. Figure 5 As shown, the method may include but is not limited to the following steps:

[0120] S501, the electronic device sends an attach request message to the MME network element. Correspondingly, the MME network element receives the attach request message from the electronic device.

[0121] The MME network element is a key control node for electronic devices to access the LTE network. When the electronic device is within the coverage of the LTE network, it can send an attachment request message to the MME network. The attachment request message can be used to request the establishment of a data bearer between the electronic device and the LTE network.

[0122] It is understandable that the electronic device sending the attachment request message to the MME network element actually means that the electronic device first sends the attachment request message to the base station, and the base station then forwards the attachment request message to the MME network element. The transmission paths of the following messages in this application are also similar, which are uniformly described here and will not be repeated below.

[0123] S502, the MME network element sends an attach accept message to the electronic device. Correspondingly, the electronic device receives the attach accept message from the MME network element.

[0124] Based on the received attach request message, the MME network element can establish a network bearer between the LTE network and the base station, and send an attach accept message to the electronic device.

[0125] S503, the electronic device sends an attach completion message to the MME network element. Correspondingly, the MME network element receives the attach completion message from the electronic device.

[0126] Based on the received attach accept message, the electronic device can establish an LTE network bearer between the electronic device and the base station, and send an attach complete message to the MME network element.

[0127] S504, the electronic device sends a first PDN connection request to the PGW network element. Correspondingly, the PGW network element receives the first PDN connection request from the electronic device.

[0128] The PGW network element can be used for session management, data bearer management, and IP allocation for electronic devices. The first PDN connection request sent by the electronic device to the PGW network element can carry a first IP type, which is an IPv6 type or an IPv4v6 type. Optionally, the first PDN connection request can also carry an APN parameter, which is an IMS type.

[0129] S504 can be understood as the electronic device requesting the PGW network element to allocate an IPv6 type or an IPv4v6 type IP address.

[0130] S505, the PGW network element sends a first PDN connection response to the electronic device. Correspondingly, the electronic device receives the first PDN connection response from the PGW network element.

[0131] The first PDN connection response may carry the address and interface identification information of the P-CSCF network element of the first IP type. The first PDN connection response may also be described as an activation EPS dedicated bearer request message. After receiving the activation EPS dedicated bearer request message from the PGW network element, the electronic device may reply to the PGW network element with an activation EPS dedicated bearer acceptance message.

[0132] S506, the electronic device sends a routing request to the PGW network element. Correspondingly, the PGW network element receives the routing request from the electronic device.

[0133] The routing request may be used to request address prefix information of the first IP type, where the address prefix information is used to form an IMS address of the IPv6 type together with the interface identification information.

[0134] S507: In response to not receiving a routing response corresponding to the routing request within the first time period, the electronic device sends a second PDN connection request to the PGW network element. Accordingly, the PGW network element receives the second PDN connection request from the electronic device.

[0135] S507 can be understood as if the electronic device fails to obtain the address prefix information of the first IP type within the first time period, then a second PDN connection request can be sent to the PGW network element. The second PDN connection request can carry the second IP type, that is, requesting an IMS address of the second IP type from the PGW network element, and the second IP type is IPv4 type.

[0136] In addition, before sending the second PDN connection request to the PGW network element, the electronic device may also send a first PDN connection disconnection request to the PGW network element. After the PGW network element receives the first PDN connection disconnection request from the electronic device, it may send a deactivation dedicated bearer request message to the electronic device. After the electronic device receives the deactivation dedicated bearer request message from the network device, it may send a deactivation dedicated bearer request acceptance message to the network device.

[0137] S508, the PGW network element sends a second PDN connection response to the electronic device. Correspondingly, the electronic device receives the second PDN connection response from the PGW network element.

[0138] The second PDN connection response can carry the address of the P-CSCF network element of the second IP type and the IMS address. Here, the IMS address of the second IP type can also be described as the second IMS address, and the second IMS address can be obtained directly from the second PDN connection response without the need to splice the interface identification information and the address prefix information. The second PDN connection response can also be described as an activation EPS dedicated bearer request message. After the electronic device receives the activation EPS dedicated bearer request message from the PGW network element, it can reply to the PGW network element with an activation EPS dedicated bearer acceptance message.

[0139] S509: The electronic device sends a first IMS registration request to the IMS core network. Correspondingly, the IMS core network receives the first IMS registration request from the electronic device.

[0140] The first IMS registration request carries the second IMS address. The first IMS registration request may be, for example, a SIP registration request. S609 may be understood as the electronic device initiating an IMS registration of the second IP type to the IMS core network. After the IMS core network completes the IMS registration based on the second IMS address, it may send an IMS registration success message to the electronic device. After the electronic device receives the IMS registration success message from the IMS core network, it may initiate a voice service on the LTE network.

[0141] Figure 5 In the illustrated embodiment, after the electronic device accesses the LTE network, an IMS registration can be initiated based on the LTE network. The electronic device can first request an IMS address of the first IP type from the PGW network element. In the process of obtaining the IMS address of the first IP type, if the reason for the failure is that the address prefix information used to form the IMS address of the first IP type is not obtained, then the IMS address of the second IP type can be requested from the PGW network element again. Since the IMS address of the second IP type can be obtained at one time without the need to obtain the interface identification information and the address prefix information separately, the probability of the electronic device successfully obtaining the IMS address can be increased, which is conducive to improving the success rate of IMS registration.

[0142] The following takes an example of an electronic device performing IMS registration through an NR communication system to introduce a communication method provided in an embodiment of the present application.

[0143] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of another communication method provided in an embodiment of the present application. Figure 6 As shown, the method may include but is not limited to the following steps:

[0144] S601, the electronic device sends a registration request message to the AMF network element. Correspondingly, the AMF network element receives the registration request message from the electronic device.

[0145] The AMF network element can be used for connection management, mobility management, registration management, access authentication and authorization, etc. When an electronic device is within the coverage of the NR network, it can send an attachment request message to the AMF network element. The attachment request message can be used to request the establishment of a data bearer between the electronic device and the NR network.

[0146] S602, the AMF network element sends a registration acceptance message to the electronic device. Correspondingly, the electronic device receives the registration acceptance message from the AMF network element.

[0147] Based on the received registration request message, the AMF network element can establish a network bearer between the NR network and the base station, and send a registration acceptance message to the electronic device.

[0148] S603, the electronic device sends a registration completion message to the AMF network element. Correspondingly, the AMF network element receives the registration completion message from the electronic device.

[0149] Based on the received registration acceptance message, the electronic device can establish an NR network bearer between the electronic device and the base station, and send a registration completion message to the AMF network element.

[0150] S604, the electronic device sends a first PDU session establishment request to the SMF network element. Correspondingly, the SMF network element receives the first PDU session establishment request from the electronic device.

[0151] The SMF network element can be used for session management such as session establishment, modification and release, and IP address allocation. The first PDU session establishment request sent by the electronic device to the SMF network element can carry a first IP type, which is an IPv6 type or an IPv4v6 type. Optionally, the first PDU session establishment request can also carry a DNN parameter, which is an IMS type.

[0152] S605, the SMF network element sends a first PDU session establishment response to the electronic device. Correspondingly, the electronic device receives the first PDU session establishment response from the SMF network element.

[0153] The first PDU session establishment response may carry the address and interface identification information of the P-CSCF network element of the first IP type. The first PDU session establishment response may also be described as an activation EPS dedicated bearer request message. After receiving the activation EPS dedicated bearer request message from the SMF network element, the electronic device may reply to the PGW network element with an activation EPS dedicated bearer acceptance message.

[0154] S606, the electronic device sends a routing request to the SMF network element. Correspondingly, the SMF network element receives the routing request from the electronic device.

[0155] The routing request may be used to request address prefix information of the first IP type, where the address prefix information is used to form an IMS address of the IPv6 type together with the interface identification information.

[0156] S607, in response to not receiving a routing response corresponding to the routing request within the first time period, the electronic device sends a second PDU session establishment request to the SMF network element. Accordingly, the SMF network element receives the second PDU session establishment request from the electronic device.

[0157] S607 can be understood as if the electronic device fails to obtain the address prefix information of the first IP type within the first time period, then a second PDU session establishment request can be sent to the SMF network element. The second PDU session establishment request can carry the second IP type, that is, requesting the SMF network element for an IMS address of the second IP type, and the second IP type is an IPv4 type.

[0158] In addition, before sending the second PDU session establishment request to the SMF network element, the electronic device may also send a first PDU session release request to the SMF network element. After the SMF network element receives the first PDU session release request from the electronic device, it may send a deactivation dedicated bearer request message to the electronic device. After the electronic device receives the deactivation dedicated bearer request message from the network device, it may send a deactivation dedicated bearer request acceptance message to the network device.

[0159] S608, the SMF network element sends a second PDU session establishment response to the electronic device. Correspondingly, the electronic device receives the second PDU session establishment response from the SMF network element.

[0160] The second PDU session establishment response can carry the address of the second IP type P-CSCF network element and the IMS address. Here, the second IP type IMS address can also be described as the second IMS address, and the second IMS address can be obtained directly from the second PDU session establishment response without the need to splice the interface identification information and the address prefix information. The second PDU session establishment response can also be described as an activation EPS dedicated bearer request message. After the electronic device receives the activation EPS dedicated bearer request message from the SMF network element, it can reply to the SMF network element with an activation EPS dedicated bearer acceptance message.

[0161] S609: The electronic device sends a first IMS registration request to the IMS core network. Correspondingly, the IMS core network receives the first IMS registration request from the electronic device.

[0162] The first IMS registration request carries the second IMS address. The first IMS registration request may be, for example, a SIP registration request. S709 may be understood as the electronic device initiating an IMS registration of the second IP type to the IMS core network. After the IMS core network completes the IMS registration based on the second IMS address, it may send an IMS registration success message to the electronic device. After the electronic device receives the IMS registration success message from the IMS core network, it may initiate a voice service through the NR network.

[0163] Figure 6In the illustrated embodiment, after the electronic device accesses the NR network, it can initiate an IMS registration based on the NR network. The electronic device can first request an IMS address of the first IP type from the SMF network element. In the process of obtaining the IMS address of the first IP type, if the reason for the failure is that the address prefix information used to form the IMS address of the first IP type is not obtained, then the SMF network element can be re-requested for the IMS address of the second IP type. Since the IMS address of the second IP type can be obtained at one time without the need to obtain the interface identification information and the address prefix information separately, the probability of the electronic device successfully obtaining the IMS address can be increased, which is conducive to improving the success rate of IMS registration.

[0164] The above describes in detail the communication method provided by the embodiment of the present application, and the following will introduce the communication device provided by the embodiment of the present application.

[0165] See also Figure 7 , Figure 7 Schematic diagram of a communication device provided in an embodiment of the present application. Figure 7 As shown, the communication device 70 includes a transceiver unit 701 and a processing unit 702 .

[0166] Among them, the transceiver unit 701 is used to send a first connection request to the network device; the IP type carried by the first connection request is the first IP type; receive a first connection response corresponding to the first connection request, and the first connection response carries interface identification information; send a routing request to the network device, and the routing request is used to request address prefix information of the first IP type; the interface identification information and the address prefix information constitute a first IMS address, and the first IMS address is used to initiate IMS registration of the first IP type;

[0167] The processing unit 702 is configured to send a second connection request to the network device in response to not receiving a routing response corresponding to the routing request within the first time period; the IP type carried in the second connection request is a second IP type;

[0168] The transceiver unit 701 is further configured to receive a second connection response corresponding to the second connection request; the second connection response carries the second IMS address; and send a first IMS registration request to the network device, the first IMS registration request carries the second IMS address.

[0169] Optionally, the processing unit 702 is further configured to send a routing request to the network device in response to not receiving a routing response corresponding to the routing request within a first time period; and send a second connection request to the network device in response to not receiving a routing response within a second time period.

[0170] Optionally, the processing unit 702 is further used to repeatedly send the routing request to the network device N times in response to not receiving the routing response corresponding to the routing request within the first time period; N is a positive integer; in response to not receiving the routing response corresponding to the N routing requests, send a second connection request to the network device.

[0171] Optionally, the processing unit 702 is further configured to send a second connection request to the network device in response to receiving a routing response within the first time period, and the routing response does not carry the address prefix information.

[0172] Optionally, the processing unit 702 is further configured to send a first connection request to the network device based on a network type of the network to which the electronic device is attached.

[0173] Optionally, the processing unit 702 is further used to send a third connection request to the network device in response to a target operation performed within a third time period; the IP type carried by the third connection request is the second IP type; the target operation includes at least one of powering on, restarting, and turning off the airplane mode; the transceiver unit 701 is further used to receive a third connection response from the network device; the third connection response carries a third IMS address; and a second IMS registration request is sent to the network device, and the second IMS registration request carries the third IMS address.

[0174] Optionally, the processing unit 702 is also used to send a third connection request to the network device in response to a target operation performed within a third time period, including: sending a third connection request to the network device in response to a target operation performed within a third time period and the location information of the electronic device has not changed.

[0175] It can be understood that the functions of each functional unit of the communication device provided in the embodiment of the present application can be specifically implemented according to the relevant methods in the above-mentioned method embodiments, and its specific implementation process can refer to the relevant description in the above-mentioned method embodiments, which will not be repeated here.

[0176] In the embodiments of the present application, Figure 7 The communication device 70 in the embodiment may also be a chip or a chip system, such as a system on chip (SoC). Correspondingly, the transceiver unit (including the transmitting unit and the receiving unit) may be a transceiver circuit of the chip, which is not limited here.

[0177] The hardware structure of the electronic device in the embodiment of the present application is introduced below.

[0178] See also Figure 8 , Figure 8 Schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device may include: a processor 110, an application processor 110A, a modem processor 110B, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0179] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP) 110A, a modem processor 110B, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0180] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0181] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.

[0182] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied in electronic devices.

[0183] The modem processor (Modem) runs on the baseband chip and the coprocessor. For example, the Modem may be provided with a SIM card module, which can be used to provide network registration, authentication and other functions related to SIM information. Exemplarily, when a user uses an electronic device with a Modem, he can implement a series of SIM card functions by triggering a local application. The SIM card mentioned above can be a physical card or a hard card, or a virtual SIM card (or a soft card), which may include an embedded chip-based user identity card (embedded-SIM, eSIM), etc. The specific form of the SIM card is not limited in the embodiments of the present application.

[0184] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem may be an independent device. In other embodiments, the modem may be independent of the processor 110 and be arranged in the same device as the mobile communication module 150 or other functional modules.

[0185] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0186] In the embodiment of the present application, the wireless communication module 160 can be used to request an IMS address of a different IP type from the network device, and the processor 110 can be used to change the IMS address requested by the wireless communication module 160 to an IPv4 type when the wireless communication module 160 fails to request an IMS address of an IPv6 type or an IPv4v6 type. The wireless communication module 160 or the processor 110 can execute the steps executed by the electronic device in the communication method provided in the embodiment of the present application, and the details can be referred to in the above Figure 3-Figure 6 Description of the electronic equipment in .

[0187] The electronic device realizes the display function through the GPU, the display screen 194 and the application processor, etc. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.

[0188] The display screen 194 is used to display images or videos, etc. A series of graphical user interfaces (GUIs) can be displayed on the display screen 194 of the electronic device. Figure 4 The interface shown.

[0189] It is understandable that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.

[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0191] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0192] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0193] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0194] A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which may include a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0195] The above disclosure is only a preferred embodiment of the present application, which is only a part of the embodiments of the present application and cannot be used to limit the scope of rights of the present application.

Claims

1. A communication method, characterized in that: Applied to electronic equipment, the method comprises: Sending a first connection request to the network device; the IP type carried by the first connection request is a first IP type; receiving a first connection response corresponding to the first connection request, wherein the first connection response carries interface identification information; Sending a routing request to the network device, the routing request is used to request the address prefix information of the first IP type; the interface identification information and the address prefix information constitute a first IMS address, and the first IMS address is used to initiate IMS registration of the first IP type; In response to not receiving a routing response corresponding to the routing request within the first time period, sending a second connection request to the network device; the IP type carried by the second connection request is a second IP type; receiving a second connection response corresponding to the second connection request, wherein the second connection response carries a second IMS address; A first IMS registration request is sent to the network device, where the first IMS registration request carries the second IMS address.

2. The method according to claim 1, characterized in that In response to not receiving a routing response corresponding to the routing request within the first time period, sending a second connection request to the network device includes: In response to not receiving a routing response corresponding to the routing request within a first time period, sending the routing request to the network device; In response to not receiving the routing response within a second time period, sending a second connection request to the network device.

3. The method according to claim 1, characterized in that In response to not receiving a routing response corresponding to the routing request within the first time period, sending a second connection request to the network device includes: In response to not receiving a routing response corresponding to the routing request within a first time period, repeatedly sending the routing request to the network device N times; N is a positive integer; In response to the fact that no routing responses corresponding to the N routing requests are received, a second connection request is sent to the network device.

4. The method according to claim 1, characterized in that The method further comprises: In response to receiving the routing response within a first time period, and the routing response not carrying the address prefix information, sending the second connection request to the network device.

5. The method according to any one of claims 1 to 4, characterized in that: The sending a first connection request to the network device includes: A first connection request is sent to a network device based on a network type of the network to which the electronic device is attached.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a target operation performed within a third time period, a third connection request is sent to the network device; the IP type carried by the third connection request is the second IP type; the target operation includes at least one of powering on, restarting, and turning off the airplane mode; receiving a third connection response from the network device; the third connection response carrying a third IMS address; A second IMS registration request is sent to the network device, where the second IMS registration request carries the third IMS address.

7. The method according to claim 6, characterized in that The sending a third connection request to the network device in response to the target operation performed within the third time period includes: In response to the target operation being performed within a third time period and the location information of the electronic device not being changed, sending a third connection request to the network device.

8. An electronic device, characterized in that: It includes a memory and one or more processors; the memory is coupled to the one or more processors and is used to store a computer program, and the computer program includes program instructions; the one or more processors call the program instructions so that the electronic device executes the method as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A chip system, characterized in that: The chip system is coupled to a memory, and the chip system is used to read and execute a computer program stored in the memory to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for user registration of IP multimedia subsystem network and service fulfillment system

    CN101931923A

  • Method for establishing a communication connection and electronic device capable of establishing a communication connection

    CN114938546A

  • Supporting Termination Access Domain Selection for a Dual Registered Wireless Device

    US20190297121A1

  • First IMS node, second IMS node, network node and methods in a communications network

    WO2023134885A1