Disclosure of Invention
The invention aims to provide a mobile terminal and a method for the mobile terminal, aiming at the defects in the prior art.
In order to achieve the above object, in a first aspect, the present invention provides a mobile terminal, including a second microprocessor, and a second mobile communication baseband module and a second short-range wireless module respectively connected to the second microprocessor, wherein the second mobile communication baseband module is connected to the second short-range wireless module via a voice bus, a control bus and a data bus, the second mobile communication baseband module is connected to a second mobile communication antenna and at least one second SIM card, the second short-range wireless module has a unique device address and is connected to a second short-range wireless antenna, the second short-range wireless antenna is used for connecting to a wireless relay device and transmitting voice data, a control instruction and second SIM card data to the wireless relay device connected thereto, and the second SIM card data is used for authenticating a mobile communication baseband module network in the wireless relay device, the second short-distance wireless antenna is also used for receiving the voice and short message data transmitted by the target mobile terminal forwarded by the wireless relay device connected with the second short-distance wireless antenna.
Preferably, the second short-range wireless module includes a bluetooth module or a WIFI module.
Preferably, the voice data includes bidirectional analog voice data or bidirectional digital voice data.
Preferably, the control command comprises an outgoing call, an on-hook call, an answering call, a transfer extension number and a flow control command.
Preferably, the system further comprises a camera, a keyboard and a display, wherein the camera, the keyboard and the display are respectively connected with the second microprocessor.
In a second aspect, the present invention further provides a method of the above mobile terminal, including the following steps:
set in a searching state to search for the wireless relay device in the short-distance wireless coverage area,
establishing a short-range wireless connection with a wireless relay device,
receiving whether the mobile terminal has an available network remote authentication means and is equipped with a remote SIM card access protocol query result,
the operation of the mobile communication baseband module is closed to stop the mobile phone service and the remote network authentication mode is opened,
sending SIM card data according to the received remote network authentication request,
negotiating with the wireless relay device to enable standard combined key encryption or enhanced key encryption measures for subsequent data communications,
receiving a notification that the wireless relay service is available, switching the stopped mobile telephone service to use the voice relay service forwarded via the short-range wireless connection,
and establishing voice connection with the wireless relay device during communication.
The short-range wireless connection comprises a Bluetooth connection or a WIFI connection.
And when the mobile terminal cannot search the wireless relay device in the short-distance wireless coverage range, intermittently searching the wireless relay device in the short-distance wireless coverage range at set time intervals.
When the short-distance wireless connection is disconnected, the mobile communication baseband module is started, network authentication is carried out, mobile phone services are transferred to the mobile communication baseband module, and the mobile phone services enter a searching state again.
And when the voice connection can not be established, informing the user that the wireless relay service is unavailable.
Has the advantages that: the invention adopts the remote access SIM card technology and adopts the remote SIM card network authentication mode to realize the relay function and save one SIM card, thereby saving the cost and reducing the complexity and the management cost of the SIM card management of the user.
Detailed Description
The present invention will be further illustrated with reference to the accompanying drawings and specific examples, which are carried out on the premise of the technical solution of the present invention, and it should be understood that these examples are only for illustrating the present invention and are not intended to limit the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a wireless relay communication system, including: awireless relay apparatus 1 and amobile terminal 2.
As shown in fig. 2 and 3, thewireless relay device 1 according to the embodiment of the present invention includes a first mobilecommunication baseband module 11 and a first short-rangewireless module 12, wherein the first mobilecommunication baseband module 11 is connected to the first short-rangewireless module 12 via a voice bus, a control bus and a data bus, and the data bus may adopt a UART or USB interface. The first mobilecommunication baseband module 11 is connected with a first mobile communication antenna. The first short-rangewireless module 12 may be a bluetooth module or a WIFI module, when the bluetooth module is used, thewireless relay device 1 remotely accesses thesecond SIM card 25 of themobile terminal 2 according to the SAP protocol of the bluetooth module, when the WIFI module is used, the IP protocol and the VoIP voice technology are used between thewireless relay device 1 and themobile terminal 2, and the access to the remote SIM card is realized based on the IP technology.
The first short-rangewireless module 12 has a unique device address, preferably a unique serial number as its device address. The first short-rangewireless module 12 is connected with a first short-range wireless antenna, and the first short-range wireless antenna is used for being connected with themobile terminal 2 so as to receive voice data sent by the firstmobile terminal 2, a control instruction and data of thesecond SIM card 25 of themobile terminal 2, wherein the voice data includes bidirectional analog voice data or bidirectional digital voice data. The control instructions comprise an outgoing call, an on-hook call, an answering call, a transfer extension number, a flow control instruction and the like. The first mobilecommunication baseband module 11 performs remote network authentication using thesecond SIM card 25 data of themobile terminal 2 connected to thewireless relay device 1. The first mobile communication antenna is used for sending voice or short message data of themobile terminal 2 to the mobile communication network and then being received by the target mobile terminal, the first mobile communication antenna is also used for receiving the voice or short message data sent by the target mobile terminal from the mobile communication network, and the first short-distance wireless antenna sends the voice or short message data sent by the target mobile terminal and received by thewireless relay device 1 to themobile terminal 2. The target mobile terminal is a mobile terminal that performs telephone communication or short message communication with themobile terminal 2.
In order to increase the signal strength, the first mobile communication antenna includes a first mobile communicationinternal antenna 131 or a first mobile communicationexternal antenna 132, and the first short-range wireless antenna includes a first short-range wirelessinternal antenna 141 or a first short-range wirelessexternal antenna 142, and for easy storage, both the first mobile communicationexternal antenna 132 and the first short-range wirelessexternal antenna 142 are foldable antennas.
In order to maintain the functions of the wireless relay device in the prior art, afirst SIM card 15 and afirst microprocessor 16 may be further provided in the wireless relay device according to the embodiment of the present invention, where thefirst SIM card 15 is connected to the first mobilecommunication baseband module 11, and thefirst microprocessor 16 is connected to the first mobilecommunication baseband module 11 and the first short-range wireless module, respectively, for managing the functional logic of the wireless relay module. Thefirst SIM card 15 is standby and when themobile terminal 2 cannot perform remote network authentication, thefirst SIM card 15 in thewireless relay device 1 can be used for network authentication.
As shown in fig. 4, themobile terminal 2 according to the embodiment of the present invention includes asecond microprocessor 21, and a second mobilecommunication baseband module 22 and a second short-rangewireless module 23 respectively connected to thesecond microprocessor 21, where the second mobilecommunication baseband module 22 may provide the network authentication of themobile terminal 2, and also support the function of an independent card reader required by the remote network authentication. In order to enable themobile terminal 2 to perform short-range wireless communication with thewireless relay device 1, the second short-rangewireless module 23 has the same standard as the first short-rangewireless module 12, and is a bluetooth module or a WIFI module. The second mobilecommunication baseband module 22 is connected with a second short-distance wireless module 23 through a voice bus, a control bus and a data bus, the second mobilecommunication baseband module 22 is connected with a secondmobile communication antenna 24 and at least onesecond SIM card 25, the second short-distance wireless module 23 also has a unique device address, the second short-distance wireless module 23 is connected with a second short-distance wireless antenna 26, the second short-distance wireless antenna 26 is used for being connected with thewireless relay device 1 and sending voice data, a control instruction and second SIM card data inside thewireless relay device 1 connected with the second short-distance wireless module to thewireless relay device 1 connected with the second short-distance wireless module, the second SIM card data is used for network authentication of the first mobilecommunication baseband module 11 in thewireless relay device 1, and the second short-distance wireless antenna 26 is also used for receiving thewireless relay device 1 connected with the second short-distance wireless module 1 and forwarding voice and short message data sent by a target mobile terminal. The voice data transmitted between thewireless device 1 and themobile terminal 2 includes bidirectional analog voice data or bidirectional digital voice data. The control instructions output by themobile terminal 2 include an outgoing call, a hanging up call, an answering call, a transfer extension number, a flow control instruction and the like. Themobile terminal 2 may use specially installed software that takes over the telephone calling and called parties of themobile terminal 2. Themobile terminal 2 transmits and receives an instruction to and from thewireless relay apparatus 1 through the established short range wireless communication connection, establishes a bidirectional voice connection and control connection, originates a telephone call or receives a call incoming from the first mobilecommunication baseband module 11 of thewireless relay apparatus 1, and performs voice communication through a receiver and a transmitter carried by the mobile terminal after the call is connected.
Themobile terminal 2 of the embodiment of the present invention further includes a user interface display device, a user input device, and the like, such as acamera 27, akeyboard 28, a display 29, and the like, where thecamera 27, thekeyboard 28, and the display 29 are respectively connected to thesecond microprocessor 21. Themobile terminal 2 may be a mobile phone or a tablet computer with a telephone function.
Thewireless relay device 1 and themobile terminal 2 both implement an access protocol of a remote SIM card, for example, a bluetooth SAP protocol, thewireless relay device 1 implements a bluetooth Client, i.e., an SAP Client, and themobile terminal 2 implements a bluetooth Server, i.e., an SAP Server. Themobile terminal 2 used by the user may not implement the SAP Server side, and in such a case, thewireless relay device 1 itself needs to be able to complete the mobile phone network authentication, so that themobile terminal 2 can be provided with the mobile phone voice relay service.
Fig. 5 is a flow chart illustrating the operation logic of the initial connection between the mobile terminal and the wireless relay device when the bluetooth module is used to implement the short-distance connection. Fig. 6 illustrates a logic flow diagram of the operation of the wireless relay device side in initial connection with a mobile terminal.
In connection with fig. 1 to 6, it is assumed that thefirst SIM card 15 is not installed in thewireless relay apparatus 1, or an invalidfirst SIM card 15 is installed, i.e. thewireless relay apparatus 1 cannot complete the mobile phone network authentication by itself. The initial state of thewireless relay device 1 is that the first mobilecommunication baseband module 11 is in a closed state, the first short-range wireless module 12 is in a waiting searching state, and the short-range wirelessmobile terminals 2 of other same systems can inquire the service of thewireless relay device 1.
Themobile terminal 2 is in an initial state that the second mobilecommunication baseband module 22 is in a normal working state, themobile terminal 2 performs communication services through the second mobilecommunication baseband module 22, and the second short-distance wireless module 23 periodically searches for thewireless relay device 1 within the short-distance wireless coverage range according to a set time interval, for example, once every one minute; or the user of themobile terminal 2 actively starts a search task to continuously search thewireless relay device 1 in the short-distance wireless coverage area within a set time window.
After themobile terminal 2 searches for one or morewireless relay apparatuses 1, themobile terminal 2 first queries the services of the wireless relay apparatuses through a service discovery protocol, and when thewireless relay apparatuses 1 are found to be capable of providing voice relay services, prompts the user through an interface, provides a list of all the foundwireless relay apparatuses 1 to the user, and invites the user to select one of the wireless relay apparatuses for connection. If themobile terminal 2 never establishes connection with thewireless relay device 1, themobile terminal 2 will pair with thewireless relay device 1 first, the user of themobile terminal 2 must input a short-distance wireless PIN code in a specified time window to perform short-distance wireless authentication, and after the authentication is successful, the pairing can be successful, and the pairing will not be successful if the time window is exceeded or the PIN code is not paired, and the connection cannot be established continuously. After the pairing is successful, themobile terminal 2 and thewireless relay apparatus 1 store the short-range wireless device address of the other party in their respective pairing databases, and then both parties generate a session serial number based on the PIN code that the user just input, and store the session serial number in their respective key databases, and the session serial number is associated with the short-range wireless device address of the other party for use in the next time when the two parties are automatically connected. When themobile terminal 2 and thewireless relay apparatus 1 have been successfully paired and connected, the nextmobile terminal 2 searches thewireless relay apparatus 1, and will automatically connect according to the pairing database and the session serial number corresponding to the device generated by the previous connection, without a pairing process, and generate a new session serial number based on the session serial number used by the previous connection, store the new session serial number in the key database, replace the session serial number used by the previous connection, and prepare for the next automatic connection in the key database of themobile terminal 2 and thewireless relay apparatus 1. Each session sequence number is discarded after use. If at least one of thewireless relay device 1 and themobile terminal 2 deletes the corresponding record in the pairing database, the two return to the unpaired state, and need to be paired again when connecting next time, and when the corresponding record in the pairing database is deleted, the related other information such as the session serial number is also deleted.
After themobile terminal 2 and thewireless relay apparatus 1 establish the short range wireless connection, thewireless relay apparatus 1 inquires whether themobile terminal 2 has an available mobile phone network authentication method and is equipped with a remote SIM card access protocol through the already established short range wireless connection. If themobile terminal 2 is not equipped with the remote SIM card access protocol or has no mobile phone network authentication function, thewireless relay device 1 will notify themobile terminal 2 that the mobile phone network authentication cannot be completed, and the voice relay service is not available, after receiving the notification, themobile terminal 2 will delete all the related information of thewireless relay device 1 in the bluetooth pairing database, including the corresponding device address and the session serial number, and at the same time, thewireless relay device 1 will delete the corresponding pairing record and the session serial number, and then, the port short-distance wireless connection between the two is performed, and the wireless relay device returns to the initial state again, that is, the two parties are not in the state of pairing connection. If themobile terminal 2 is provided with one or more mobile phone network authentication functions and is equipped with a remote SIM card access protocol, thewireless relay device 1 will inform themobile terminal 2 via the established short range wireless connection that remote authentication is required using thesecond SIM card 25 data of themobile terminal 2. After receiving the notification, themobile terminal 2 prompts and asks the user through the user interface whether thewireless relay device 1 agrees to use the second mobilecommunication baseband module 22 of themobile terminal 2 to read the data of thesecond SIM card 25. After the user receives the request, themobile terminal 2 and thewireless relay device 1 negotiate to enable standard combined key encryption or enhanced key encryption measures to perform subsequent data communication, after the negotiation is completed, a data encryption mode is enabled on the short-distance wireless connection just established to perform all subsequent communication, themobile terminal 2 stops the second mobilecommunication baseband module 22 of the mobile terminal and starts the remote SIM card of the mobile terminal to access SAP service, and a logical connection is established with thewireless relay device 1, wherein the logical connection, namely the short-distance wireless connection just enabling encryption transmission, becomes a first connection. After the first connection between themobile terminal 2 and thewireless relay 1 is established, the second mobilecommunication baseband module 22 of themobile terminal 2 only functions as a card reader and is responsible for all subsequent operations of thesecond SIM card 25 related to network authentication. If thesecond SIM card 25 of themobile terminal 2 is enabled with the SIM card PIN security mechanism, the user is invited to enter the SIM card PIN, so that thewireless relay device 1 is allowed to use thesecond SIM card 25 of themobile terminal 2 for remote authentication. Thewireless relay device 1 starts the first mobilecommunication baseband module 11 of itself, uses the mobile phone network authentication which is just acquired to complete the network authentication of the first mobilecommunication baseband module 11 of itself, after the authentication is successful, the wireless relay service and the query service are started, and themobile terminal 2 is informed that the wireless relay service is available, and thewireless relay device 1 establishes a connection with the mobile communication network, which is called as a second connection here. After receiving the notification of successful establishment of the second connection, themobile terminal 2 switches its mobile telephone service, which has just been stopped, to a wireless relay service which is forwarded via a short-range wireless connection.
For security, the mobile phone network authentication is performed when the incoming call, the outgoing call, the short message, the location change and the service change occur, and the network authentication of the mobilecommunication baseband module 11 included in thewireless relay device 1 is performed subsequently through the established short-range wireless connection, i.e., the first connection, which enables encrypted transmission.
Fig. 7 is a flow chart illustrating the operation of the mobile terminal when a short-distance connection is implemented by using the bluetooth module and a calling party is initiated. Fig. 8 illustrates a flow chart of the operation of the wireless relay device at the time of originating a caller.
Referring to fig. 1, 2, 4, 7, and 8, when themobile terminal 2 initiates a caller, it first requests thewireless relay apparatus 1 to establish a voice connection, and the wireless relay apparatus receives the request and then establishes a voice connection. The voice connection is a dedicated short-range wireless connection for voice full duplex transmission, referred to herein as a third connection. After the third connection is successfully established, the called phone number and the calling instruction are sent to thewireless relay device 1 through the first connection, when thewireless relay device 1 receives the phone number and the calling instruction to be called, the calling number and the dialing instruction are sent to the first mobilecommunication baseband module 11, the first mobilecommunication baseband module 11 dials, the call audio is transmitted to the first short-distance wireless module 12, meanwhile, a network authentication request during dialing is sent to the first short-distance wireless module 11, and the first short-distance wireless module 11 sends a remote SIM card authentication request to the mobile terminal by using SAP. Themobile terminal 2 provides network authentication at the time of dialing to thewireless relay apparatus 1 using the SAP service. Since the voice connection has been established, the dual tone dial tone and ring back tone of the telephone dial may be transmitted to themobile terminal 2 through the just established third connection, and the user of themobile terminal 2 may listen to the dial tone and ring back tone instantly with the handset. After the called party is connected, the two parties carry out conversation. If the called party hangs up, thewireless relay device 1 hangs up according to the mobile phone network standard, and simultaneously informs themobile terminal 2 that the call is interrupted and the third connection is disconnected; if themobile terminal 2 as the calling party actively hangs up the call, themobile terminal 2 disconnects the third connection and notifies thewireless relay device 1 of the hang-up instruction through the first connection, and thewireless relay device 1 actively hangs up the call after receiving the hang-up instruction. If the third connection cannot be established, themobile terminal 21 notifies the user that the wireless relay service is not available, and the user may select to enable the second mobilecommunication baseband module 22 of themobile terminal 2 for dialing and stop the SAP service.
Fig. 9 illustrates an operation flowchart of the wireless relay apparatus when receiving an incoming call. Fig. 10 illustrates an operational flow diagram when a mobile terminal receives an incoming call.
When thewireless relay device 1 receives an incoming call with reference to fig. 1, 2, 4, 9 and 10, thewireless relay device 1 is called, a call is incoming through the first mobilecommunication baseband module 12, the first mobilecommunication baseband module 12 transmits remote authentication information with the first short-range wireless module 12 through a control bus and a data bus, and the first short-range wireless module 12 forwards an SAP authentication request. After receiving the remote SIM card authentication request from the wireless relay device, themobile terminal 2 performs remote authentication of the first mobilecommunication baseband module 11 using the enabled SAP service. After the authentication is successful, the first mobilecommunication baseband module 11 informs the first short-range wireless module 12 of a call incoming event and an incoming number through the data bus and the control bus. The first short-range wireless module 12 forwards the incoming call event and the incoming call number to themobile terminal 2, and after receiving the incoming call event and the incoming call number sent by thewireless relay device 1, themobile terminal 2 controls and displays the incoming call number and the incoming call interface and establishes a two-way voice connection with thewireless relay device 1. After the voice connection is successfully established, thewireless relay device 1 waits for a connection or hang-up instruction input by a user, themobile terminal 2 receives the connection or hang-up rejection instruction of the user, and thewireless relay device 1 executes the connection or hang-up instruction after the user executes the connection or hang-up instruction at themobile terminal 2. The hanging up process is the same as the hanging up process of the calling party.
Themobile terminal 2, whether it is a calling or called party, maintains the first connection and the second connection all the time when the phone is hung up, and only disconnects the third connection.
After thewireless relay device 1 receives the short message, thewireless relay device 1 may send the short message to themobile terminal 2 through the first connection, or may synchronize the short message to themobile terminal 2 in batch through a preset synchronization mode.
It should be noted that, if themobile terminal 2 searches for two or morewireless relay apparatuses 1 that have not been paired, themobile terminal 2 displays the list on the user interface and invites the user to select one of them for pairing and connection. If themobile terminal 2 finds two or morewireless relay apparatuses 1 that have been paired and have established connection, the list is displayed on the user interface, and prompts the user to select one of them for connection, and allows the user to set which device or devices that have been paired and have established connection can be set as default devices, and connection can be automatically performed when the user searches next time, and unpaired and connected devices cannot be set as default devices. If themobile terminal 2 finds that somewireless relay apparatuses 1 are paired and connected, and some are paired and connected for the first time, thewireless relay apparatuses 1 are distinguished in a user interface, so that a user can learn which devices are new devices and which devices are connected, and can also set which devices are paired and connected as default connection devices by agreeing to the user, and the connection can be automatically established when the user searches for the next time, and similarly, the devices which are not paired and connected cannot be used as the default devices. When the user selects multiple devices on themobile terminal 2 as default devices, if themobile terminal 2 searches for multiple default devices, themobile terminal 2 randomly selects one of the default devices to connect to.
As for thewireless relay device 1, once the short-range wireless connection, i.e., the first connection is disconnected, the initial state, i.e., the state waiting for searching, is entered again, and at the same time, the second connection is disconnected, and the first mobilecommunication baseband module 11 of itself is closed.
Once thewireless relay apparatus 1 enters the pairing and connection process, it exits the state waiting for search, and othermobile terminals 2 with the same capability will not find thewireless relay apparatus 1 until thewireless relay apparatus 1 enters the state waiting for search again, so that the situation that twomobile terminals 2 are connected to onewireless relay apparatus 1 at the same time is avoided.
For themobile terminal 2, once the short-range wireless connection, i.e. the first connection, is disconnected, the initial state is entered, i.e. the second mobilecommunication baseband module 22 of the mobile terminal is enabled and the network authentication is performed, and the mobile phone service is transferred to the second mobilecommunication baseband module 22 using the local mobile terminal, and the second short-range wireless module 23 of the local mobile terminal also enters the intermittent searching state.
If thewireless relay apparatus 1 itself is equipped with the first SIM card and is able to complete the authentication of its mobile communication network with the first SIM card, thewireless relay apparatus 1 does not inquire themobile terminal 2 about the authentication information of the mobile communication network and whether the information of the remote SIM card access protocol is installed or not after completing the pairing connection with themobile terminal 2, and themobile terminal 2 directly uses the service acquired by thewireless relay apparatus 1 itself from the mobile telephone network. If themobile terminal 2 has the remote access SIM protocol, themobile terminal 2 user may actively choose to use this function, changing the system to use the mobile phone network authentication of themobile terminal 2 itself.
Based on the above embodiment, the present invention also provides a method for a mobile terminal, including the steps of:
the wireless relay device is placed in a searching state to intermittently search the wireless relay device in the short-distance wireless coverage area,
establishing a short-range wireless connection with a wireless relay device,
receiving whether the mobile terminal has an available network remote authentication means and is equipped with a remote SIM card access protocol query result,
the operation of the mobile communication baseband module is closed to stop the mobile phone service and the remote network authentication mode is opened,
sending SIM card data according to the received remote network authentication request,
negotiating with the wireless relay device to enable standard combined key encryption or enhanced key encryption measures for subsequent data communications,
receiving a notification that the wireless relay service is available, switching the stopped mobile telephone service to use the voice relay service forwarded via the short-range wireless connection,
and establishing voice connection with the wireless relay device during communication.
Wherein, short range wireless connection includes bluetooth connection or WIFI connection.
When the mobile terminal can not search the wireless relay device in the short-distance wireless coverage range, the mobile terminal intermittently searches the wireless relay device in the short-distance wireless coverage range at set time intervals.
When the short-distance wireless connection is disconnected, the mobile communication baseband module is started, network authentication is carried out, mobile phone services are transferred to the mobile communication baseband module, and the mobile phone services enter a searching state again.
Wherein, when the voice connection can not be established, the user is informed that the wireless relay service is unavailable.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.