Disclosure of Invention
The present invention is directed to a terminal and a communication method, which are provided to overcome the above-mentioned drawbacks of the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in a first aspect, a terminal is provided, which includes:
a first subscriber identity card;
a second subscriber identity card;
a first processing unit;
a second processing unit;
the first user identification card and the second user identification card are both connected with the first processing unit, and the first processing unit is connected with the second processing unit;
the first processing unit is used for acquiring information of a first user identification card and a second user identification card;
the first processing unit is further configured to send the acquired information of the second subscriber identity module card to the second processing unit;
the first processing unit is used for communicating with a first 4G network based on the acquired information of the first subscriber identity module card to perform data service;
and the second processing unit is used for communicating with a second 4G network based on the received information of the second subscriber identity module card and performing data service.
In one embodiment, the first processing unit is further configured to perform a voice service based on the obtained information of the second subscriber identity card and communication with a 2G and/or 3G network.
In one embodiment, the first processing unit is further configured to perform a voice service based on the acquired information of the first subscriber identity card and communication with a 2G and/or 3G network.
In one embodiment, during network searching registration, the first processing unit is configured to load a network parameter corresponding to the first subscriber identity card according to information of the first subscriber identity card to start network searching registration, so that the first subscriber identity card resides in the first 4G network through the first processing unit.
In one embodiment, during network searching and registering, the first processing unit is configured to load a network parameter corresponding to the second subscriber identity card according to the information of the second subscriber identity card to perform network searching and registering, so that the second subscriber identity card resides in a 2G or 3G network through the first processing unit.
In an embodiment, the second processing unit is configured to perform network searching registration based on the acquired information of the second subscriber identity card, so that the second subscriber identity card resides in the second 4G network through the second processing unit.
In one embodiment, the first processing unit comprises a data interface, and the second processing unit comprises a data interface connected with the data interface of the first processing unit;
and the second processing unit acquires the information of the second user identification card from the first processing unit through the data interface.
In one embodiment, the second processing unit is configured to send a synchronization frame to the first processing unit when a preset condition is satisfied;
the first processing unit is used for replying a confirmation frame to establish connection with the second processing unit after receiving the synchronization frame sent by the second processor;
the first processing unit is also used for registering the preset service to acquire the information of the first user identification card and/or the second user identification card;
the second processing unit is further configured to perform service discovery, and register a client corresponding to the preset service, so as to perform information interaction of a second user identification card with the first processing unit.
In one embodiment, the data packet format adopted when the information interaction of the subscriber identity card is carried out at least comprises one of the following fields: flag bit, length, control flag, port number, service ID, client ID, data ID, control bit, message ID, data length, data.
In one embodiment, the first processing unit is further configured to configure a first logical port corresponding to the preset service, and configure a second logical port corresponding to a physical interface of the first processing unit;
and the information of the second subscriber identity module card is transmitted to the second logical port through the first logical port so as to be transmitted to the second processing unit through a physical interface of the first processing unit.
In one embodiment, the second processing unit is further configured to configure a third logical port corresponding to the client, and configure a fourth logical port corresponding to a physical interface of the second processing unit;
and the information of the second user identification card received by the physical interface of the second processing unit is transmitted to the third logical port through the fourth logical port so as to be transmitted to the client.
In one embodiment, the terminal further includes:
and the first application processor is connected with the first processing unit and used for providing an interactive interface, receiving an operation instruction of a user and transmitting the operation instruction to the first processing unit.
In one embodiment, the terminal further includes:
and the second application processor is respectively connected with the second processing unit and the first application processor and is used for receiving the information sent by the first application processor and transmitting the information to the second processing unit.
In a second aspect, a method of communication includes:
the method comprises the steps that a first processing unit obtains information of a first user identification card and information of a second user identification card;
the first processing unit sends the acquired information of the second user identification card to the second processing unit;
the first processing unit communicates with a first 4G network based on the acquired information of the first subscriber identity module card to perform data service;
and the second processing unit is communicated with a second 4G network based on the received information of the second subscriber identity card to perform data service.
In one embodiment, the first processing unit communicates with a 2G and/or 3G network based on the acquired information of the second subscriber identity card to perform a voice service.
In one embodiment, the first processing unit communicates with a 2G and/or 3G network based on the acquired information of the first subscriber identity card to perform a voice service.
In one embodiment, the second processing unit is configured to send a synchronization frame to the first processing unit when a preset condition is satisfied;
the first processing unit is used for replying a confirmation frame to establish connection with the second processing unit after receiving the synchronization frame sent by the second processor;
the first processing unit is also used for registering the preset service to acquire the information of the first user identification card and/or the second user identification card;
the second processing unit is further configured to perform service discovery, and register a client corresponding to the preset service, so as to perform information interaction of a second user identification card with the first processing unit.
In one embodiment, the first processing unit is further configured to configure a first logical port corresponding to the preset service, and configure a second logical port corresponding to a physical interface of the first processing unit;
and the information of the second subscriber identity module card is transmitted to the second logical port through the first logical port so as to be transmitted to the second processing unit through a physical interface of the first processing unit.
In one embodiment, the second processing unit is further configured to configure a third logical port corresponding to the client, and configure a fourth logical port corresponding to a physical interface of the second processing unit;
and the information of the second user identification card received by the physical interface of the second processing unit is transmitted to the third logical port through the fourth logical port so as to be transmitted to the client.
The terminal and the communication method have the following beneficial effects: through interaction between the first processing unit and the second processing unit, the support that two user identification cards reside in the 4G network is realized, and the two 4G channels can be used for concurrent transmission of data services, so that the transmission efficiency is improved; in addition, when data service transmission is carried out, voice service transmission can also be carried out, and user experience is improved; on the other hand, the two user identification cards are managed by the first processing unit, so that the management efficiency can be improved. And a C/S communication architecture is adopted between the first processing unit and the second processing unit, so that information sharing is realized. Therefore, the first processing unit can share the acquired information to the second processing unit by using the data interface, and the second processing unit can acquire the information immediately without using modes such as a shared memory and the like, so that the cost is saved. And because different ports are registered for different services to perform corresponding transmission, multiple transport layer protocols and physical layer protocols can be supported and expanded.
Example 1
Referring to fig. 1, the embodiment of the present invention uses an architecture of "first processing unit + second processing unit" to implement that the terminal 100 supports that both the two subscriber identity cards reside in the 4G network.
The first subscriber identification card 110 and the second subscriber identification card 120 may manage different subscribers associated with different or the same technical standards. In a particular non-limiting example, the technology standard can be a 2G communication technology (e.g., GSM, GPRS, EDGE), a 3G communication technology (e.g., WCDMA, TDS-CDMA), a 4G communication technology (e.g., LTE, TD-LTE), or any other mobile communication technology (e.g., 5G, 4.5G, etc.).
In one embodiment, the first subscriber identity card 110 holds information for the first 4G network communication. The second subscriber identity card 120 holds information for the second 4G network communication. In particular, the subscriber identity card may store one or more of the following information: a unique serial number (ICCID), an International Mobile Subscriber Identity (IMSI), security authentication and encryption information, temporary information related to the local network, a list of services accessed by the user, a Personal Identification Number (PIN), and a personal unlock code (PUK) for PIN unlocking.
In the embodiment of the present invention, the first processing unit 130 is configured to complete protocol processing, and to perform modulation and demodulation on transceived communication data to realize communication with an external communication device, and the like.
The second processing unit 140 is used for completing protocol processing, and for performing modulation and demodulation on the transceived communication data to realize communication with an external communication device, and the like.
In an embodiment of the present invention, the protocol processing includes executing a protocol stack for processing various network types interacting with the network, for example, a protocol code specified in a communication standard such as LTE/WCDMA/GSM/TDSCDMA/1X/CDMA/EVDO. The protocols of these standards are followed by the terminal 100 to interact with the operator's network (e.g., to surf the internet through data traffic, to make a call through VOLTE, or to make a call through the CS circuit domain, etc.).
The first processing unit 130 includes one or more data interfaces, such as general purpose I/O interfaces, UART interfaces, USB interfaces, I2C interfaces, and the like. The second processing unit 140 also includes one or more data transmission interfaces, such as a general purpose I/O interface, a UART interface, a USB interface, an I2C interface, and so forth.
Considering that the downlink rate of the 4G network is fast (150Mbps), the high-speed data transmission interface needs enough bandwidth and data transmission capability in order to enable the data of the second processing unit 140 to be transmitted and received (without buffering). The USB interface is a high-speed data transmission interface.
The general I/O interface is used as a state detection interface and is identified by high/low level or pulse. For example, the first processing chip 200 may detect whether the second processing chip 300 is in a dead halt state by detecting a high/low level state of the pin.
The UART interface is a serial communication interface for transmitting basic information such as control signals, status signals, etc.
The first processing unit 130 may be connected to the first subscriber identity card 110 and the second subscriber identity card 120 through a UART interface, respectively, to acquire card information from the first subscriber identity card 110 and the second subscriber identity card 120, and a detailed description will be given later on of a card information acquisition process.
In addition, the first processing unit 130 may be connected with the second processing unit 140 through a UART interface to transmit the card information to the second processing unit. The interaction process of the specific card information will be described in detail later. It should be understood that the card information between the first processing unit 130 and the second processing unit 140 may be transmitted through other interfaces, and the present invention is not limited thereto.
In one embodiment, the first processing unit 130 may be implemented by a modem chip and the second processing unit 140 may be implemented by a modem chip.
In the embodiment of the invention, the network data is transmitted at high speed through the high-speed USB data interface, the data transmission requirement is met, and when no network data needs to be transmitted, the low-speed data interface with low power consumption is used for transmitting information, so that the data transmission is ensured, and the power consumption is saved.
After the first processing unit 130 obtains the information of the first subscriber identity card 110 and the second identity card 120 through the data interface, the first processing unit 130 may perform operations such as network searching, registering, and authenticating according to the obtained information.
Referring to fig. 1, the first application service processor 150 and the second application service processor 160 may be connected through a GPIO interface and a USB interface. It should be understood that other interfaces are possible, and the invention is not limited in this regard.
The first application service processor 150 is configured to process complex logic operations and perform task allocation, provide an interactive interface for a user, and transmit operation instructions input by the user (for example, operation instructions related to internet surfing or telephone calling input by the user through the user interface) to the first processing unit 130 or the second processing unit 140. The first application service processor 150 processor executes an operating system of the terminal 100. An operating system is stored in memory, including but not limited to Windows, Linux, Unix, Mac OS X, IOS, Solaris, Android, and the like.
In the embodiment of the present invention, the second application service processor 160 does not process data, and only plays a role of transparent transmission. For example, the data received by the second processing unit 140 is passed through to the first application service processor 150 for processing, and the data passed by the first application service processor 150 is passed through to the second processing unit 140.
The first radio frequency 170 and the second radio frequency 180 are used to perform up-conversion, down-conversion, filtering, amplification, transmission, reception, etc. of the signal. The radio access technologies involved by the first radio frequency 170 and the second radio frequency 180 may include LTE, 3G, GSM, GPRS, etc.
When the terminal 100 performs data service transmission, the following cases are classified:
performing data service through a first subscriber identity card
Ascending: the first application service processor 150 receives the user instruction and controls the first processing unit 130 to process the uplink data according to the user instruction; the first radio frequency 170 transmits the uplink data processed by the first processing unit 130 to the first 4G network.
Descending: the first radio frequency 170 receives downlink data from the first 4G network and transmits the downlink data to the first processing unit 130 for processing; the first application service processor 150 outputs, stores and the like the downlink data processed by the first processing unit 130.
(II) data service via second subscriber identity card
Ascending: the first application service processor 150 receives the user instruction, and controls the second application service processor 150 to transmit the uplink data to the second processing unit 140 according to the user instruction; the second processing unit 140 processes the uplink data; the second radio frequency 180 transmits the uplink data processed by the second processing unit 140 to the second 4G network.
Descending: the second radio frequency 180 receives downlink data from the second 4G network and transmits the downlink data to the second processing unit 140 for processing; the second processing unit 140 transparently transmits the processed downlink data to the first application service processor 150 through the second application service processor 160, so that operations such as outputting and storing can be performed.
(III) simultaneously carrying out data service through the first subscriber identification card and the second subscriber identification card
When data service is performed through the first subscriber identity module card and the second subscriber identity module card, the following two situations can be included:
first, different data services are transmitted through the first subscriber identity card and the second subscriber identity card, respectively. Under the condition, different data services are respectively transmitted through the two data channels, so that the transmission efficiency can be greatly improved.
And secondly, the same data service is transmitted simultaneously through the first user identification card and the second user identification card. In this case, the traffic needs to be distributed, that is, the same data service is divided into different data blocks and transmitted by two data channels respectively. It should be appreciated that the flow of the two channels may be equally divided, or adjusted based on link quality (rate, delay, etc.), etc.
Referring to fig. 2, when performing a voice service, the dsp chip 210 is used to perform audio signal processing, such as echo suppression, noise suppression, and the like during a call. The Codec (Codec)220 is used for A/D and D/A conversion. The earpiece 230 is used to output an acoustic signal. The microphone 240 is used to collect voice signals.
When the terminal 100 performs voice service transmission, the following cases are divided:
voice service only through first user identification card
First, a voice communication connection is established: the first application service processor 150 transmits the operation instruction to the first processing unit 130, and sends a connection request and other processes to the network through the first radio frequency 170 to establish a voice communication connection with the called party.
After the voice communication connection is established, the voice uplink transmission process is as follows: the microphone 240 collects voice signals, and the codec 220 receives the collected voice signals, performs analog-to-digital conversion on the voice signals and transmits the converted voice signals to the digital signal processing chip 210; the digital signal processing chip 210 performs audio processing on the received signal and transmits the processed signal to the first processing unit 130; the first radio frequency 170 transmits the signal processed by the first processing unit 130. The voice downlink transmission process comprises the following steps: the first radio frequency 170 receives the downlink signal and transmits the downlink signal to the first processing unit 130; the digital signal processing chip 210 performs audio processing on the signal processed by the first processing unit 130 and transmits the signal to the codec 220; the codec 220 performs analog-to-digital conversion on the received signal and transmits the converted signal to the handset 230.
It should be understood that if the terminal 100 is a called party, the process of establishing the voice communication connection is to receive a connection establishment request of a calling party to establish the voice communication connection with the calling party. The subsequent voice uplink transmission and downlink transmission processes are the same.
(II) performing voice service only through the second subscriber identity card
First, a voice communication connection is established: the first application service processor 150 transmits the operation instruction to the first processing unit 130, and sends a connection request and other processes to the network through the first radio frequency 170 to establish a voice communication connection with the called party.
After the voice communication connection is established, the voice uplink transmission process is as follows: the microphone 240 collects voice signals, and the codec 220 receives the collected voice signals, performs analog-to-digital conversion on the voice signals and transmits the converted voice signals to the digital signal processing chip 210; the digital signal processing chip 210 performs audio processing on the received signal and transmits the processed signal to the first processing unit 130; the first radio frequency 170 transmits the signal processed by the first processing unit 130. The voice downlink transmission process comprises the following steps: the first radio frequency 170 receives the downlink signal and transmits the downlink signal to the first processing unit 130; the digital signal processing chip 210 performs audio processing on the signal processed by the first processing unit 130 and transmits the signal to the codec 220; the codec 220 performs analog-to-digital conversion on the received signal and transmits the converted signal to the handset 230.
It should be understood that if the terminal 100 is a called party, the process of establishing the voice communication connection is to receive a connection establishment request of a calling party to establish the voice communication connection with the calling party. The subsequent voice uplink transmission and downlink transmission processes are the same.
(III) carrying out voice service through the first subscriber identification card and simultaneously carrying out data service through the second subscriber identification card
In this case, the process of performing the voice service through the first subscriber identity card and the process of performing the data service through the second subscriber identity card are performed simultaneously, and are not described herein again.
(IV) performing voice service through the second subscriber identity module card and performing data service through the second subscriber identity module card
In this case, the process of performing the voice service through the second subscriber identity module card and the process of performing the data service through the second subscriber identity module card are performed simultaneously, and are not described herein again.
In the embodiment of the present invention, since the voice service and the data service of the second subscriber identification card 120 are registered via different processing units, the data service and the voice service can be simultaneously performed through the second subscriber identification card 120.
In some embodiments of the present invention, the first processing unit is further configured to perform a voice service based on the obtained information of the second subscriber identity card communicating with the 2G and/or 3G network, and to perform a voice service based on the obtained information of the first subscriber identity card communicating with the 2G and/or 3G network. I.e. voice services (CS voice services) via the first subscriber identity card and the second subscriber identity card, are performed via 2G and/or 3G networks. Three cases are included here, the first case being: and carrying out voice service through the 2G network, loading the corresponding network parameters based on the information of the first user identification card by the first processing unit when searching the network and registering, and starting network searching and registering to enable the first user identification card to reside in the 2G network. The same procedure is used for the second subscriber identity card.
The second case is: and carrying out voice service through the 3G network, loading the corresponding network parameters based on the information of the first user identification card by the first processing unit when searching the network and registering, and starting network searching and registering to enable the first user identification card to reside in the 3G network. The same procedure is used for the second subscriber identity card.
In the third case: and preferentially carrying out voice service through the 3G network, and carrying out voice service through the 2G network if the 3G network is abnormal.
It should be appreciated that in some embodiments, the voice services of the first subscriber identity card and the second subscriber identity card may also be VOLTE voice services, which may be conducted over a 4G network. In other embodiments, the first subscriber identity card (or the second subscriber identity card) may also reside in the 4G network via the first processing unit, and when the first subscriber identity card (or the second subscriber identity card) performs voice service, i.e., falls back to the 2G/3G network (e.g., falls back in a CSFB manner).
In the embodiment of the present invention, in order to ensure normal communication between the first subscriber identity card and the second subscriber identity card, the first processing unit 130 further performs in-place detection on the first subscriber identity card 110 and the second subscriber identity card 120 at regular time. Specifically, the method comprises the following steps:
the first processing unit 130 communicates with the first subscriber identification card 110 and the second subscriber identification card 120 once every preset time (for example, 28 seconds) to confirm whether the subscriber identification card is in place to ensure the communication is normal. For example, the first processing unit 130 sends a null data to the first subscriber identity card 110 and the second subscriber identity card 120, respectively, and if the null data is responded, it is determined that the subscriber identity card is in place, otherwise, the subscriber identity card is not in place.
In the embodiment of the present invention, when the first application service processor 150 receives an operation instruction of a user, it determines whether to perform a data service or a language service according to the operation instruction, and determines through which subscriber identity card to perform. It should be understood that the terminal 100 according to the embodiment of the present invention supports the three cases of the data service and the four cases of the voice service.
In the embodiment of the present invention, the terminal 100 may simultaneously use the data network of two subscriber identity cards to simultaneously download data services, so as to achieve the purpose of accelerating the concurrent downloading of the dual data, and therefore, the same subscriber identity card needs to be accessible by the first processing unit 130 and the second processing unit 140. The access referred to herein is to obtain information of the subscriber identity card to enable communication with the network through a first subscription associated with the first subscriber identity card 110 and communication with the network through a second subscription associated with the second subscriber identity card 120.
Referring to fig. 1, in the embodiment of the present invention, in terms of a hardware structure, two subscriber identity cards are connected to the first processing unit 130. In one embodiment, the first processing unit 130 may be connected to the first subscriber identity card 110 and the second subscriber identity card 120 through a data interface (e.g., UART), so as to perform information reading and writing operations on the first subscriber identity card 110 and the second subscriber identity card 120.
And the second processing unit 140 acquires the information of the subscriber identity card through interaction with the first processing unit 130. Specifically, the method comprises the following steps: in an embodiment of the present invention, the first processing unit 130 and the second processing unit 140 are connected via a data interface (e.g., a UART data interface) to transmit the information of the subscriber identity card to the second processing unit 140.
In order to realize the interaction of the card information between the first processing unit 130 and the second processing unit 140, the communication protocol between the first processing unit 130 and the second processing unit 140 is divided into a physical layer, a transport layer, and an application layer. The physical layer is used for transmitting and receiving data. The transport layer may extend a plurality of interfaces for respectively corresponding to different services enabled by the application layer. The application layer is used for opening the service to execute the corresponding information acquisition function.
Specifically, referring to fig. 3, first, the first processing unit 130 and the second processing unit 140 respectively perform configuration of one or more ports. In the embodiment of the present invention, the port is a virtual logical port, and configuring the port includes setting a port number and the like thereto. According to the function division, the ports comprise two types, the first type is a port corresponding to the service registered by the application layer, and the information acquired by the service of the application layer is transmitted to the transmission layer; the second is a port corresponding to a physical interface of the physical layer, which transmits information to the corresponding physical interface, thereby implementing transmission (or reception) of information.
Specifically, the first processing unit 130 registers a service to perform a corresponding function. In an embodiment of the present invention, the service may be a preset service. For example, if the information of the card is acquired as a preset service, the first processor may register the preset service after the second processor sends a synchronization frame to establish a connection with the first processor when a preset condition is satisfied, so as to execute the function of the preset service. In an embodiment of the present invention, the predetermined service is to acquire information of a subscriber identity card.
In an embodiment of the present invention, the functions of different services are different, for example, a service for acquiring card information may be registered. Other types of services, such as services for obtaining status information, control information, etc., may also be registered in embodiments of the present invention. Each service corresponds to a port, i.e. the information acquired by the service is transmitted through the port corresponding to the service. The port here refers to the first port mentioned above.
Therefore, in the embodiment of the present invention, since a plurality of ports (the first port) can be extended to correspond to different services, respectively, and different transport layers can be invoked to transmit information to a physical layer interface (e.g., a USB interface, a shared memory interface, etc.) according to actual communication transmission requirements, the extension of a plurality of transport layer protocols can be supported. For example, for a first service, transport layer 1 may be invoked for information transfer, while for a second service, transport layer 2 may be invoked for information transfer. The transport layer protocols and the like adopted by different transport layers are different.
The second processing unit 140 sends a sync frame (synchronization frame) to the first processing unit 130; the first processing unit 130 is further configured to reply with an acknowledgement frame (ACK) after receiving the sync frame, so as to establish a connection between the first processing unit 130 and the second processing unit 140. In an embodiment of the present invention, when a preset condition is satisfied, the second processing unit 140 initiates a process of connection establishment, i.e., sending a sync frame. The preset condition may be when initialization is performed such as startup and restart.
It should be understood that, in the embodiment of the present invention, the connection between the first processing unit 130 and the second processing unit 140 is established through sync and ACK, and the first processing unit 130 registers for service in no order. The first processing unit 130 may register for service before or after the connection is established.
The second processing unit 140 performs service discovery and registers a client corresponding to the service. In one embodiment, the clients registered by the second processing unit 140 correspond to the services registered by the first processing unit 130. And like the first processing unit 130 registering the service, the client registered by the second processing unit 140 also corresponds to a corresponding port, so as to transmit the information to the transport layer through the port, and then transmit the information to the corresponding physical interface through the port of the transport layer.
After the second processing unit 140 registers the client, the first processing unit 130 and the second processing unit 140 may perform information interaction. Specifically, when information interaction is performed, a data packet format as shown in fig. 4 may be adopted. It includes a flag bit (header portion), a length (length of the entire packet), a control flag (whether the flag is a client or a server), a port number (local port), a service ID, a client ID, a data ID, a control bit, a message ID, a data length, data (data).
In an embodiment of the invention, the port number is a port number of the second port, that is, a port number used for marking a physical interface to which the packet is transmitted. For example, when the physical interfaces include a USB interface and a shared memory interface, the data packet can be correctly transmitted to the corresponding physical interface through the port number, so as to implement interaction with the second processing unit 140. Thus, the port number field may be deleted when the packet is transmitted to the physical layer, i.e. no port number field is included in the packet transmitted to the peer.
In the embodiment of the invention, the port numbers of different physical interfaces (hardware interfaces) are different, so that the correct forwarding of the data packet can be realized by specifying the port numbers in the data packet, and the information acquired by the service registered by the application layer can be transmitted through the accurate physical interface. Therefore, the dual-core communication device of the embodiment of the invention can support the expansion of a plurality of physical interfaces (namely, the expansion of a plurality of physical layer protocols).
The service ID is an ID number of the registered service. The client ID is an ID number of a client corresponding to the service. The control bits are used to identify the data packet as a request packet, a reply packet, etc. The data (data) is in a type-len-value format, where type is used to indicate the type of the entire data block, len is used to indicate the size of a value area, and value is a data area.
In embodiments of the invention, a service may need to send multiple data packets, whereby the message ID indicates the sequence number of the sending data packet. The data ID is used to distinguish the message type of the data packet. A plurality of different types of data may be included in each packet, and thus, one message ID may correspond to a plurality of types. For example, information such as signal strength, network type, etc. may be transmitted as one packet, and the type of different data blocks may be indicated by type in the data field, thereby realizing that one packet can transmit a plurality of kinds of information belonging to the same message type.
It should be understood that the packet format shown in fig. 4 is merely exemplary, and other similar formats may be used.
In an embodiment of the present invention, specifically, the first processing unit 130 configures a first logical port corresponding to the predetermined service and configures a second logical port corresponding to the physical interface of the first processor. And the information obtained by the preset service is transmitted to the second logical port through the first logical port so as to be transmitted to the second processor through the physical interface of the first processor. The second processing unit 140 configures a third logical port corresponding to the client and configures a fourth logical port corresponding to the physical interface of the second processor. And the information received by the physical interface of the second processor is transmitted to the third logical port through the fourth logical port so as to be transmitted to the client.
In the embodiment of the present invention, when the second processing unit 140 is powered off or abnormally restarted, the second processing unit 20 shuts down the client and the port. When the system is recovered to normal, the system can reestablish connection with the first processing unit 130 by sending a synchronization frame (sync frame) to re-execute processes such as registering a service and registering a client for information interaction.
Similarly, if the first processing unit 130 is powered off or abnormally restarted, the first processing unit 130 will shut down the corresponding service and port. When the first processing unit 130 is recovered to normal, it may reestablish a connection with the second processing unit 140 by sending a synchronization frame (sync frame) to re-execute the processes of registering a service, registering a client, and the like, for information interaction.
In the embodiment of the invention, a C/S communication architecture is adopted between the first processor and the second processor, so that the card information is shared. Therefore, the first processing unit 130 can share the acquired information to the second processing unit 140, that is, the second processing unit 140 can acquire the information immediately. Because different ports are registered for different services to perform corresponding transmission, a plurality of transmission layer protocols can be supported and expanded; and supports the extension of multiple physical layer protocols.
After the second processing unit acquires the information of the user identification card, in the network searching and registering stage:
in an embodiment of the present invention, the first subscriber identity card may be used as a primary card, and the second subscriber identity card may be used as a secondary card. When searching and registering, the first processing unit acquires the information of the first user identification card, and loads the network parameters corresponding to the first user identification card according to the acquired information so as to register the voice service and the data service of the first user identification card in the first network. And the first processing unit also acquires the information of the second user identification card and loads the network parameters corresponding to the second user identification card according to the acquired information so as to register the voice service of the second user identification card in the second network.
The first processing unit also sends the acquired information of the second user identification card to the second processing unit. And the second processing unit registers the data service of the second user identification card in the second network according to the received information of the second user identification card.
In addition, the second processing unit can also perform read-write operation on the first user identification card and/or the second user identification card.
Referring to fig. 5, in the communication method of the embodiment of the present invention, the first processing unit acquires information of the first subscriber identification card and the second subscriber identification card at step S51. The first processing unit transmits the acquired information of the second subscriber identification card to the second processing unit at step S52. In step S53, the first processing unit communicates with the first 4G network based on the acquired information of the first subscriber identity card, and performs a data service. In step S54, the second processing unit communicates with the second 4G network based on the received information of the second subscriber identity card, and performs a data service.
It should be understood that the second processing unit obtains the information of the subscriber identity card the same as that in embodiment 1, and the description thereof is omitted here. The above-described specific flows of the data service and the voice service are also applicable to the communication method according to the embodiment of the present invention, and are not described herein again.
According to the terminal and the communication method provided by the embodiment of the invention, the two user identification cards are supported to reside in the 4G network through interaction between the first processing unit and the second processing unit, and the two 4G channels can be used for carrying out concurrent transmission of data services, so that the transmission efficiency is improved; in addition, when data service transmission is carried out, voice service transmission can also be carried out, and user experience is improved; on the other hand, the two user identification cards are managed by the first processing unit, so that the management efficiency can be improved. And a C/S communication architecture is adopted between the first processing unit and the second processing unit, so that information sharing is realized. Therefore, the first processing unit can share the acquired information to the second processing unit by using the data interface, so that the second processing unit can acquire the information immediately, and the cost is saved. And because different ports are registered for different services to perform corresponding transmission, multiple transport layer protocols and physical layer protocols can be supported and expanded.
In the above embodiments of the present invention, the first 4G network and the second 4G network may be LTE networks, or other types of 4G networks. In a preceding embodiment of the invention, the first 4G network and the second 4G network may be different networks of different operators, or the same or different networks of the same operator.
In embodiments of the present invention, a terminal may comprise any mobile, portable computing or communication device, such as a cellular device, capable of connecting to a network. For example, the terminal 100 may be a cellular phone (handset), a navigation system, a computing device, a camera, a PDA, a music device, a gaming device or a handheld device having wireless connection capability.
In the embodiments of the present invention, "a plurality" means two or more unless otherwise specified. In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Any process or method descriptions in flow charts or otherwise described in embodiments of the present invention may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the embodiments of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the invention. The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments are shown and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.