一种基于多系统终端建立通信连接的方法及装置Method and device for establishing communication connection based on multi-system terminal
本申请要求于2015年01月14日提交中国专利局,申请号为CN 201510018435.3、发明名称为“一种基于多系统终端建立通信连接的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. CN 201510018435.3, entitled "A Method and Apparatus for Establishing Communication Connections Based on Multi-System Terminals", which is filed on January 14, 2015. This is incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种基于多系统终端建立通信连接的方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for establishing a communication connection based on a multi-system terminal.
背景技术Background technique
目前,随着智能终端的快速发展,陆续出现了具有两个操作系统甚至是多个操作系统的终端,该类终端中可以安装多个操作系统,用以满足用户的不同需求。该类终端在进行通信时,例如,拨打或接听电话,一般是基于当前终端所处的操作系统来执行,即,由当前终端所处的操作系统来与请求方建立通信连接,或是根据用户的选择,基于用户的切换,在指定的操作系统下进行通信,然而,对于具有保密性要求的通信连接,需要在具有一定保护措施的操作系统下进行,否则容易被监听到,导致通信秘密被泄露,可见,目前基于多操作系统建立通信连接的方式,不能根据通信连接的请求选择系统,导致通信的安全性较低。At present, with the rapid development of intelligent terminals, terminals with two operating systems or even multiple operating systems have appeared one after another. Multiple operating systems can be installed in such terminals to meet the different needs of users. When the terminal communicates, for example, making or receiving a call, it is generally performed based on the operating system in which the current terminal is located, that is, the operating system in which the current terminal is located establishes a communication connection with the requesting party, or according to the user. The choice is based on the user's switching, communication under the specified operating system, however, for the communication connection with confidentiality requirements, it needs to be carried out under the operating system with certain protection measures, otherwise it is easy to be monitored, resulting in the communication secret being Leakage, it can be seen that the current way of establishing a communication connection based on multiple operating systems cannot select a system according to the request of the communication connection, resulting in lower communication security.
发明内容Summary of the invention
本发明的主要目的在于提供一种基于多系统终端建立通信连接的方法及装置,用以解决目前基于多操作系统不能根据通信连接的请求选择系统,通信安全性较低的问题。The main object of the present invention is to provide a method and a device for establishing a communication connection based on a multi-system terminal, which are used to solve the problem that the current communication system cannot select a system based on a communication connection, and the communication security is low.
根据本发明的一个方面,提供了一种基于多操作系统终端建立通信连接的方法,包括:接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息;接收各操作系统的反馈
的通信连接请求的匹配信息,根据各操作系统的反馈的通信连接请求的匹配信息,确定处理通信连接请求的操作系统;将通信连接请求发送至确定的处理通信连接请求的操作系统。According to an aspect of the present invention, a method for establishing a communication connection based on a multi-operating system terminal includes: obtaining a matching of a communication connection request to each operating system according to information of a requesting party of the communication connection request when receiving the communication connection request Information; receiving feedback from various operating systems
The matching information of the communication connection request determines the operating system that processes the communication connection request according to the matching information of the communication connection request fed back by each operating system; and transmits the communication connection request to the determined operating system that processes the communication connection request.
其中,通信连接为通话连接,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息,包括:向终端的各操作系统获取通话连接的主叫方的联系人信息;接收各操作系统的反馈的通信连接请求的匹配信息,根据各操作系统的反馈的通信连接请求的匹配信息,确定处理通信连接请求的操作系统,包括:在终端的多个操作系统中仅存在一个操作系统具有联系人信息的情况下,确定具有联系人信息的操作系统为处理通信连接请求的操作系统;在终端的多个操作系统中存在至少两个操作系统具有联系人信息或终端的多个操作系统均不存在联系人信息的情况下,根据预设的策略确定处理通信连接请求的操作系统。其中,终端的多个操作系统中包括安全操作系统,安全操作系统的存储区域与终端中非安全操作系统的存储区隔离,预设的策略存储于安全操作系统中。The communication connection is a call connection, and the matching information of the communication connection request is obtained from each operating system according to the information of the requesting party of the communication connection request, including: obtaining contact information of the calling party of the call connection to each operating system of the terminal; The matching information of the communication connection request fed back by each operating system determines the operating system for processing the communication connection request according to the matching information of the communication connection request fed back by each operating system, including: only one operation exists in multiple operating systems of the terminal Where the system has contact information, the operating system having the contact information is determined to be an operating system that processes the communication connection request; and at least two operating systems in the plurality of operating systems of the terminal have contact information or multiple operations of the terminal In the case where the system does not have contact information, the operating system that processes the communication connection request is determined according to a preset policy. The operating system of the security operating system is isolated from the storage area of the non-secure operating system in the terminal, and the preset policy is stored in the secure operating system.
所述终端的多个操作系统中的一个操作系统具有底层通信资源,所述方法还包括:将所述预先设置的策略存储至与终端的多个操作系统隔离的存储区域;在接收各操作系统的匹配信息后,根据所述匹配信息以及预先设置的策略确定用于处理所述请求的操作系统,将所述请求发送至对确定出的系统之后,调用所述底层通信资源进行通话连接。进一步的,终端的多个操作系统中包括安全操作系统,方法还包括:One of the plurality of operating systems of the terminal has an underlying communication resource, the method further comprising: storing the pre-set policy to a storage area that is isolated from a plurality of operating systems of the terminal; receiving each operating system After the matching information, the operating system for processing the request is determined according to the matching information and a preset policy, and the request is sent to the determined system, and the underlying communication resource is invoked to make a call connection. Further, the operating system of the terminal includes a security operating system, and the method further includes:
在将所述通信连接请求发送至确定的处理所述通信连接请求的操作系统之后,通过对应操作系统与请求方建立通信连接,如果对应的操作系统为安全操作系统,则通过安全操作系统对通信内容进行加密处理。After transmitting the communication connection request to the determined operating system for processing the communication connection request, establishing a communication connection with the requesting party through the corresponding operating system, and if the corresponding operating system is a secure operating system, communicating through the secure operating system The content is encrypted.
根据本发明的另一个方面,提供了一种基于多操作系统终端建立通信连接的装置,包括:获取模块,用于接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息;确定模块,用于接收各操作系统的反馈的通信连接请求的匹配信息,根据各操作系统的反馈的通信连接请求的匹配信息,确定处理通信连接请求的操作系统;第一发送模块,用于将通信连接请求发送至确定的处理通信连接请
求的操作系统。According to another aspect of the present invention, an apparatus for establishing a communication connection based on a multi-operating system terminal is provided, comprising: an obtaining module, configured to: when receiving a communication connection request, information to a requesting party according to a communication connection request to each operating system Obtaining matching information of the communication connection request; determining a module, configured to receive matching information of the communication connection request fed back by each operating system, and determine an operating system for processing the communication connection request according to the matching information of the communication connection request fed back by each operating system; a first sending module, configured to send a communication connection request to the determined processing communication connection
Seeking the operating system.
其中,通信连接为通话连接,获取模块包括:获取单元,用于向终端的各操作系统获取通话连接的主叫方的联系人信息;确定单元,用于在终端的多个操作系统中仅存在一个操作系统具有联系人信息的情况下,确定具有联系人信息的操作系统为处理通信连接请求的操作系统;在终端的多个操作系统中存在至少两个操作系统具有联系人信息或终端的多个操作系统均不存在联系人信息的情况下,根据预设的策略确定处理通信连接请求的操作系统。The communication connection is a call connection, and the acquisition module includes: an acquisition unit, configured to acquire contact information of the calling party of the call connection to each operating system of the terminal; and a determining unit, configured to exist only in multiple operating systems of the terminal In the case where an operating system has contact information, it is determined that an operating system having contact information is an operating system that processes a communication connection request; and at least two operating systems in a plurality of operating systems of the terminal have contact information or a plurality of terminals In the case where none of the operating systems has contact information, the operating system that processes the communication connection request is determined according to a preset policy.
其中,终端的多个操作系统中包括安全操作系统,安全操作系统的存储区域与终端中非安全操作系统的存储区隔离,预设的策略存储于安全操作系统中。The operating system of the security operating system is isolated from the storage area of the non-secure operating system in the terminal, and the preset policy is stored in the secure operating system.
所述终端的多个操作系统中的一个操作系统具有底层通信资源,所述装置还包括:存储模块,用于将所述预先设置的策略存储至与终端的多个操作系统隔离的存储区域;第二发送模块,用于在接收各操作系统的匹配信息后,根据所述匹配信息以及预先设置的策略确定用于处理所述请求的操作系统,将所述请求发送至对确定出的系统之后,调用所述底层通信资源进行通话连接。An operating system of the operating system of the terminal has an underlying communication resource, and the device further includes: a storage module, configured to store the preset policy to a storage area that is isolated from multiple operating systems of the terminal; a second sending module, configured to: after receiving the matching information of each operating system, determine an operating system for processing the request according to the matching information and a preset policy, and send the request to the determined system Calling the underlying communication resource to make a call connection.
进一步的,终端的多个操作系统中包括安全操作系统,装置还包括:上层通信模块,用于将所述通信连接请求发送至确定的处理所述通信连接请求的操作系统之后,通过对应操作系统与请求方建立通信连接,如果对应的操作系统为安全操作系统,则通过安全操作系统对通信内容进行加密处理。Further, the operating system of the terminal includes a security operating system, and the device further includes: an upper layer communication module, configured to send the communication connection request to the determined operating system for processing the communication connection request, and pass the corresponding operating system Establish a communication connection with the requesting party. If the corresponding operating system is a secure operating system, the communication content is encrypted by the secure operating system.
根据本发明的另一个方面,提供了一种终端,所述终端包括通信总线、输入装置、输出装置、存储器以及处理器,其中:According to another aspect of the present invention, a terminal is provided, the terminal comprising a communication bus, an input device, an output device, a memory, and a processor, wherein:
所述通信总线,用于实现所述输入装置、输出装置、存储器以及处理器之间的连接通信;The communication bus is configured to implement connection communication between the input device, the output device, the memory, and the processor;
所述输入装置,用于接收到屏幕界面唤醒指令时,接收用户输入的屏幕界面解锁密钥,并采集用户输入的语音信息;The input device is configured to receive a screen interface unlocking key input by a user when receiving a screen interface wake-up instruction, and collect voice information input by the user;
所述存储器中存储一组程序代码,且处理器调用存储器中存储的程序代
码,用于执行以下操作:The memory stores a set of program codes, and the processor calls the program generation stored in the memory
Code, used to do the following:
在所述屏幕界面解锁密钥与预设的目标屏幕界面解密密钥匹配,且所述语音信息与预设的目标语音信息匹配时,控制所述终端进入第一操作系统;When the screen interface unlocking key matches the preset target screen interface decryption key, and the voice information matches the preset target voice information, the terminal is controlled to enter the first operating system;
在所述屏幕界面解锁密钥与所述预设的目标屏幕界面解密密钥匹配,且所述语音信息与预设的目标语音信息不匹配时,控制所述终端进入第二操作系统,所述第一操作系统的安全级别高于所述第二操作系统的安全级别。When the screen interface unlocking key matches the preset target screen interface decryption key, and the voice information does not match the preset target voice information, controlling the terminal to enter the second operating system, The security level of the first operating system is higher than the security level of the second operating system.
其中,所述屏幕界面的解锁方式包括语音解锁方式和触控解锁方式,则所述输入装置接收到屏幕界面唤醒指令时,接收用户输入的屏幕界面解锁密钥,并采集用户输入的语音信息,具体为:The unlocking mode of the screen interface includes a voice unlocking mode and a touch unlocking mode. When the input device receives the screen interface wake-up command, the input device receives the screen interface unlocking key input by the user, and collects the voice information input by the user. Specifically:
所述输入装置接收到屏幕界面唤醒指令时,所述处理器判断所述终端的屏幕界面的当前解锁方式;When the input device receives the screen interface wake-up instruction, the processor determines a current unlock mode of the screen interface of the terminal;
在所述当前解锁方式为触控解锁方式时,所述输出装置提示所述用户输入所述触控解锁方式对应的屏幕界面解锁密码;When the current unlocking mode is the touch unlocking mode, the output device prompts the user to input a screen interface unlocking password corresponding to the touch unlocking mode;
所述输入装置接收所述用户输入的所述屏幕界面解锁密码,并开始获取所述用户输入的所述语音信息;以及The input device receives the screen interface unlock password input by the user, and starts acquiring the voice information input by the user;
还包括:Also includes:
所述处理器将所述屏幕界面解锁密码和所述预设的目标屏幕解锁密钥进行匹配,并对所述语音解锁信息进行解析,将解析出的声纹数据和预设的声纹数据进行匹配;The processor matches the screen interface unlock password and the preset target screen unlocking key, parses the voice unlocking information, and performs the parsed voiceprint data and the preset voiceprint data. match;
所述处理器在所述声纹数据和所述预设的声纹数据匹配时,判定所述语音信息和所述预设的目标语音信息匹配。The processor determines that the voice information and the preset target voice information match when the voiceprint data and the preset voiceprint data match.
其中,所述处理器判断所述终端的屏幕界面的当前解锁方式之后,还包括:After the processor determines the current unlocking mode of the screen interface of the terminal, the method further includes:
在所述当前解锁方式为语音解锁方式时,所述输入装置直接采集用户输入的所述语音信息,并将所述语音信息作为所述屏幕界面解锁密码;以及When the current unlocking mode is the voice unlocking mode, the input device directly collects the voice information input by the user, and uses the voice information as the screen interface unlocking password;
所述处理器对所述语音信息进行解析,并将解析出的声纹数据和预设
的声纹数据进行匹配;以及The processor parses the voice information, and parses the voiceprint data and preset
Matching voiceprint data; and
所述处理器在所述声纹数据和所述预设的声纹数据匹配时,判定所述屏幕界面解锁密钥和所述预设的目标屏幕界面解锁密钥匹配;以及The processor determines that the screen interface unlocking key and the preset target screen interface unlocking key match when the voiceprint data and the preset voiceprint data match;
所述处理器在所述声纹数据和所述预设的声纹数据匹配时,判断所述语音信息中是否包含预设的关键词;The processor determines, when the voiceprint data and the preset voiceprint data match, whether the voice information includes a preset keyword;
所述处理器在所述语音信息中包含所述预设的关键词时,判定所述语音信息与预设的目标语音信息匹配。When the processor includes the preset keyword in the voice information, the processor determines that the voice information matches the preset target voice information.
其中,所述处理器根据接收到的设置命令,设置所述目标屏幕界面解锁密钥、所述预设的声纹数据和/或所述预设的关键词。The processor sets the target screen interface unlocking key, the preset voiceprint data, and/or the preset keyword according to the received setting command.
其中,所述输出装置在所述屏幕界面解锁密钥与所述预设的目标屏幕界面解密密钥不匹配,且所述语音信息与预设的目标语音信息不匹配时,提示所述用户解锁失败;以及The output device prompts the user to unlock when the screen interface unlocking key does not match the preset target screen interface decryption key, and the voice information does not match the preset target voice information. Failure;
所述输出装置在连续解锁失败的次数达到预设次数时,进行报警提示。The output device prompts an alarm when the number of consecutive unlock failures reaches a preset number of times.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例的方案,在接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息,根据获取到的请求方的匹配信息来确定通信连接请求的路由,可以基于通信连接请求的请求方来确定建立通信连接的操作系统,提高了多操作系统终端通信的安全性。In the solution of the embodiment of the present invention, when receiving the communication connection request, the matching information of the communication connection request is obtained from each operating system according to the information of the requesting party of the communication connection request, and the communication connection request is determined according to the matching information of the obtained requesting party. The routing can determine the operating system for establishing the communication connection based on the requesting party of the communication connection request, and improve the security of the communication of the multi-operating system terminal.
附图说明DRAWINGS
图1是本发明实施例1的基于多操作系统终端建立通信连接的方法的流程图;1 is a flowchart of a method for establishing a communication connection based on a multi-operating system terminal according to Embodiment 1 of the present invention;
图2为本发明实施例2提供多操作系统终端的双系统的结构框图;2 is a structural block diagram of a dual system for providing multiple operating system terminals according to Embodiment 2 of the present invention;
图3为本发明实施例3的在多操作系统终端上执行通话建立的流程图;3 is a flowchart of performing call establishment on a multi-operating system terminal according to Embodiment 3 of the present invention;
图4是本发明实施例的基于多操作系统终端建立通信连接的装置的结构框图;4 is a structural block diagram of an apparatus for establishing a communication connection based on a multi-operating system terminal according to an embodiment of the present invention;
图5是本发明实施例的基于多操作系统的终端。
FIG. 5 is a multi-operating system based terminal according to an embodiment of the present invention.
具体实施方式detailed description
为了解决现有技术基于多操作系统进行通信安全性较低的问题,本发明提供了一种基于多操作系统终端建立通信连接的方法,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem that the communication security of the prior art is low based on multiple operating systems, the present invention provides a method for establishing a communication connection based on a multi-operating system terminal. The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
实施例1Example 1
图1是本发明实施例1的基于多操作系统终端建立通信连接的方法的流程图。如图1所示,该方法包括以下步骤:1 is a flow chart of a method for establishing a communication connection based on a multi-operating system terminal according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following steps:
步骤101:接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息。Step 101: When receiving the communication connection request, acquire the matching information of the communication connection request to each operating system according to the information of the requesting party of the communication connection request.
在该步骤中,具体可以是终端将通信连接请求的请求方的身份信息发送至终端的各操作系统,例如,在上述通信连接为语音通话连接的情况下,可以将主叫方的电话号码发送至各操作系统。In this step, the terminal may send the identity information of the requesting party of the communication connection request to each operating system of the terminal. For example, if the communication connection is a voice call connection, the calling party's phone number may be sent. To each operating system.
步骤102:接收各操作系统的反馈的通信连接请求的匹配信息,根据各操作系统的反馈的通信连接请求的匹配信息,确定处理通信连接请求的操作系统。Step 102: Receive matching information of the communication connection request fed back by each operating system, and determine an operating system that processes the communication connection request according to the matching information of the communication connection request fed back by each operating system.
在该步骤中,各操作系统的反馈结果可以是操作系统自身是否存储有请求方的信息,同时,在各操作系统中的某一操作系统,例如,安全系统中存储有预先设置的通信策略的情况下,操作系统的反馈结果还可以包括通信策略。In this step, the feedback result of each operating system may be whether the operating system itself stores the information of the requesting party, and at the same time, a certain communication system is stored in an operating system in each operating system, for example, the security system. In this case, the feedback result of the operating system may also include a communication strategy.
步骤103:将通信连接请求发送至确定的处理通信连接请求的操作系统。Step 103: Send a communication connection request to the determined operating system that processes the communication connection request.
在该步骤103中,将通信连接请求发送至确定的处理通信连接请求的操作系统,可以理解为将当前通信路由到对应操作系统。In this step 103, the communication connection request is sent to the determined operating system for processing the communication connection request, which can be understood as routing the current communication to the corresponding operating system.
其中,上述通信连接优选的可以为通话连接,具体可以是语音通话连接以及视频通话连接,向终端的各操作系统获取请求的请求方信息,包括:向终端的各操作系统获取通话连接的主叫方的联系人信息;基于此,上述步骤102中的接收各操作系统的反馈结果,根据反馈结果将请求发送至对应操作系统,包括:在终端的多个操作系统中仅存在一个操作系统具有联
系人信息的情况下,将请求发送至具有联系人信息的操作系统;在终端的多个操作系统中存在至少两个操作系统具有联系人信息或终端的多个操作系统均不存在联系人信息的情况下,根据预设的策略将请求发送至对应操作系统,由于用户在存储联系人信息时,会按照联系人的保密等级将联系人的信息存储于安全等级不同的系统中,所以,按照各系统反馈的联系人的信息来确定响应当前通话连接的系统可以提高通话的安全性。Preferably, the communication connection may be a call connection, and may be a voice call connection and a video call connection, and obtain the requested requester information from each operating system of the terminal, including: obtaining a call connection call to each operating system of the terminal. The contact information of the party; based on the feedback result of receiving the operating system in the above step 102, sending the request to the corresponding operating system according to the feedback result, including: only one operating system in the multiple operating systems of the terminal has a connection
In the case of the person information, the request is sent to the operating system with the contact information; at least two operating systems in the terminal have at least two operating systems having contact information or multiple operating systems of the terminal do not have contact information In the case that the request is sent to the corresponding operating system according to the preset policy, since the user stores the contact information, the contact information is stored in a system with different security levels according to the security level of the contact, so The information of the contacts fed back by each system to determine the system responding to the current call connection can improve the security of the call.
上述预先设定的策略具体可以是用户或系统事先设定的某类联系人对应的操作系统,或,在各操作系统均具有当前通话联系人信息的情况下,各系统建立通话连接的优先级等信息,对应的,如果是用户预先设定的信息,则后续过程中,终端可以接收用户更改的信息,来实现用户对策略信息的自行设置。The foregoing preset policy may specifically be an operating system corresponding to a certain type of contact set by the user or the system in advance, or, in a case where each operating system has current call contact information, each system establishes a priority of a call connection. The information, correspondingly, if it is the information preset by the user, in the subsequent process, the terminal can receive the information changed by the user to implement the self-setting of the policy information by the user.
其中,终端的多个操作系统中可以包括安全操作系统,安全操作系统的存储区域与终端中非安全操作系统的存储区隔离,优选的,安全系统的存储区可以设置访问权限,只有获取访问权限后,才可以访问安全系统存储的数据,上述预设的策略可以存储于安全操作系统中,优选的,该安全操作系统还可以用于在接收到通话连接后,与主叫方建立通话,对通话内容进行加密处理。The operating system of the security operating system may be isolated from the storage area of the non-secure operating system in the terminal. Preferably, the storage area of the security system may be set with access rights, and only access rights may be obtained. After the data is stored in the security system, the preset policy can be stored in the security operating system. Preferably, the security operating system can also be used to establish a call with the calling party after receiving the call connection. The content of the call is encrypted.
其中,上述终端的多个操作系统中的一个操作系统具有底层通信资源,基于此,上述方法还可以包括:将预先设置的策略存储至与终端的多个操作系统隔离的存储区域;在接收各操作系统的匹配信息后,根据所述匹配信息以及预先设置的策略确定用于处理接收到的请求的操作系统,将请求发送至对确定出的系统之后,调用底层通信资源进行通话连接。本实施例的终端的多个操作系统中的某一个操作系统具有底层通信模块,基于此,在接收各操作系统的反馈结果,根据反馈结果将请求发送至对应操作系统之后,由该通信控制模块调用底层通信模块进行通话连接,即,可以通过通信控制模块控制终端的多个操作系统复用一个底层通信模块来进行通话。The operating system of the operating system of the terminal has an underlying communication resource. Based on the above, the method may further include: storing the preset policy to a storage area that is isolated from multiple operating systems of the terminal; After the matching information of the operating system, the operating system for processing the received request is determined according to the matching information and the preset policy, and the request is sent to the determined system, and the underlying communication resource is called to make a call connection. One of the multiple operating systems of the terminal of the embodiment has an underlying communication module. Based on this, after receiving the feedback result of each operating system and transmitting the request to the corresponding operating system according to the feedback result, the communication control module The underlying communication module is called to make a call connection, that is, a plurality of operating systems of the terminal can be controlled by the communication control module to multiplex one underlying communication module to perform a call.
实施例2Example 2
本实施例以在具有双系统的终端上建立通话连接的过程为例,对本发
明提供的基于多操作系统终端建立通信连接的方法的流程进行简要描述,需要说明的是,该实施例仅为本发明的一个优选实施方式,并不对本发明造成唯一限定。This embodiment takes the process of establishing a call connection on a terminal having dual systems as an example.
The flow of the method for establishing a communication connection based on a multi-operating system terminal is briefly described. It should be noted that the embodiment is only a preferred embodiment of the present invention and does not limit the invention.
图2为本发明实施例2提供多操作系统终端的双系统的结构框图,如图2所示,本实施例中的双系统终端具有系统A和系统B两个操作系统,该两个系统都可以存储联系人信息,系统A具有底层通信模块,即实施例1中所述的通信模块,系统B可以复用系统A的底层通信模块,在系统A和系统B之外,具有通信控制模块,该通信模块的存储空间与系统A以及系统B分别独立,在使用该终端进行通信(包括电话、短信等)时,通信控制模块会根据联系人信息,按照设定的系统选择策略选择系统A或B来完成相应的通信。2 is a structural block diagram of a dual system for providing multiple operating system terminals according to Embodiment 2 of the present invention. As shown in FIG. 2, the dual system terminal in this embodiment has two operating systems, System A and System B, both of which are The contact information can be stored, the system A has an underlying communication module, that is, the communication module described in Embodiment 1, and the system B can reuse the underlying communication module of the system A, and has a communication control module in addition to the system A and the system B. The storage space of the communication module is independent of the system A and the system B. When the terminal is used for communication (including telephone, short message, etc.), the communication control module selects the system A according to the set system selection policy according to the contact information. B to complete the corresponding communication.
图3为本发明实施例3的在多操作系统终端上执行通话建立的流程图,其中,操作系统A以及操作系统B为同一终端上安装的两个操作系统,如图3所示,该流程包括以下步骤:3 is a flowchart of performing call establishment on a multi-operating system terminal according to Embodiment 3 of the present invention, where operating system A and operating system B are two operating systems installed on the same terminal, as shown in FIG. 3, the process Includes the following steps:
操作系统A的底层通信模块收到通信请求,并将通信请求方的信息上报至通信控制模块;The underlying communication module of the operating system A receives the communication request, and reports the information of the communication requester to the communication control module;
通信控制模块要求操作系统A与操作系统B匹配联系人信息,并接收操作系统A以及操作系统B返回的结果;The communication control module requires the operating system A to match the contact information with the operating system B, and receives the results returned by the operating system A and the operating system B;
其中,与每一类联系人的通信在哪一个操作系统进行,可以由操作系统预先设定或由用户选择,在由用户选择的情况下,可以是用户事先设定好的策略,也可以是通信控制模块根据操作系统A以及操作系统B返回的结果,向用户呈现提示消息,由用户选择基于提示消息选择用于进行通信的操作系统,用于执行当前通话的系统。The operating system with each type of contact is performed by the operating system, and may be preset by the operating system or selected by the user. In the case of being selected by the user, the user may set a predetermined policy or may be The communication control module presents a prompt message to the user according to the results returned by the operating system A and the operating system B, and the user selects an operating system for performing communication based on the prompt message, and the system for executing the current call.
通信控制模块根据匹配结果将该路通信路由到指定的系统的上层通信模块,以完成后续的处理。The communication control module routes the communication to the upper communication module of the designated system according to the matching result to complete the subsequent processing.
实施例3Example 3
本发明实施例提供一种基于多操作系统终端建立通信连接的装置,该装置用于实现上述实施例1以及实施例2中的基于多操作系统终端建立通信连接的方法。
An embodiment of the present invention provides a device for establishing a communication connection based on a multi-operating system terminal, and the device is used to implement the method for establishing a communication connection based on a multi-operating system terminal in the foregoing Embodiment 1 and Embodiment 2.
图4是本发明实施例的基于多操作系统终端建立通信连接的装置的结构框图,如图4所示,该装置40具体可以包括以下结构:4 is a structural block diagram of an apparatus for establishing a communication connection based on a multi-operating system terminal according to an embodiment of the present invention. As shown in FIG. 4, the apparatus 40 may specifically include the following structure:
获取模块41,用于接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息;确定模块42,用于接收各操作系统的反馈的通信连接请求的匹配信息,根据各操作系统的反馈的通信连接请求的匹配信息,确定处理通信连接请求的操作系统;第一发送模块43,用于将通信连接请求发送至确定的处理通信连接请求的操作系统。The obtaining module 41 is configured to: when receiving the communication connection request, acquire matching information of the communication connection request to each operating system according to the information of the requesting party of the communication connection request; and the determining module 42 is configured to receive the communication connection request of the feedback of each operating system. Matching information, determining an operating system for processing the communication connection request according to the matching information of the communication connection request fed back by each operating system; the first sending module 43 is configured to send the communication connection request to the determined operating system for processing the communication connection request .
在上述通信连接为通话连接的情况下,上述获取模块41具体可以包括如下组成部分:In the case that the communication connection is a call connection, the acquiring module 41 may specifically include the following components:
获取单元,用于向终端的各操作系统获取通话连接的主叫方的联系人信息;An obtaining unit, configured to obtain, by each operating system of the terminal, contact information of a calling party of the call connection;
发送单元,用于在终端的多个操作系统中仅存在一个操作系统具有联系人信息的情况下,将请求发送至具有联系人信息的操作系统,在终端的多个操作系统中存在至少两个操作系统具有联系人信息或终端的多个操作系统均不存在联系人信息的情况下,根据预设的策略将请求发送至对应操作系统。a sending unit, configured to send a request to an operating system with contact information in a case where only one operating system has contact information in a plurality of operating systems of the terminal, where at least two of the operating systems of the terminal exist If the operating system has contact information or multiple operating systems of the terminal do not have contact information, the request is sent to the corresponding operating system according to a preset policy.
其中,本实施例的终端的多个操作系统中包括安全操作系统,安全操作系统的存储区域与终端中非安全操作系统的存储区隔离,预设的策略存储于安全操作系统中,该安全操作系统可以用于在接收到通话连接后,与主叫方建立通话,对通话内容进行加密处理。The operating system of the terminal of the embodiment includes a security operating system, and the storage area of the security operating system is isolated from the storage area of the non-secure operating system in the terminal, and the preset policy is stored in the security operating system, and the security operation is performed. The system can be used to establish a call with the calling party after receiving the call connection, and encrypt the call content.
终端的多个操作系统中的一个操作系统具有底层通信资源,基于此,上述装置40还可以包括:存储模块,用于将预先设置的策略存储至与终端的多个操作系统隔离的存储区域;第二发送模块,用于在接收各操作系统的匹配信息后,根据匹配信息以及预先设置的策略确定用于处理请求的操作系统,将请求发送至对确定出的系统之后,调用底层通信资源进行通话连接。One of the multiple operating systems of the terminal has an underlying communication resource. Based on this, the device 40 may further include: a storage module, configured to store the preset policy to a storage area that is isolated from multiple operating systems of the terminal; a second sending module, configured to: after receiving the matching information of each operating system, determine an operating system for processing the request according to the matching information and a preset policy, send the request to the determined system, and invoke the underlying communication resource to perform Call connection.
本发明实施例的方案,在接收到通信连接请求时,根据通信连接请求的请求方的信息向各操作系统获取通信连接请求的匹配信息,根据获取到
的请求方的匹配信息来确定通信连接请求的路由,可以基于通信连接请求的请求方来确定建立通信连接的操作系统,提高了多操作系统终端通信的安全性。In the solution of the embodiment of the present invention, when receiving the communication connection request, the matching information of the communication connection request is obtained from each operating system according to the information of the requesting party of the communication connection request, according to the obtained
The requesting party's matching information determines the routing of the communication connection request, and the operating system that establishes the communication connection can be determined based on the requesting party of the communication connection request, thereby improving the security of the multi-operating system terminal communication.
实施例4Example 4
本发明实施例提供一种基于多操作系统的终端,该终端包括第一操作系统和第二操作系统,所述第一操作系统的安全级别高于所述第二操作系统的安全级别。The embodiment of the present invention provides a terminal based on multiple operating systems, where the terminal includes a first operating system and a second operating system, and the security level of the first operating system is higher than the security level of the second operating system.
图5是本发明实施例的基于多操作系统的终端,如图所示,所述终端可以包括:至少一个输入装置503,至少一个输出装置504,至少一个处理器501,例如CPU,存储器505和至少一个总线502,处理器501可以结合图4所示的基于多操作系统终端建立通信连接的装置。5 is a multi-operating system-based terminal according to an embodiment of the present invention. As shown, the terminal may include at least one input device 503, at least one output device 504, at least one processor 501, such as a CPU, a memory 505, and At least one bus 502, the processor 501 can be combined with the device for establishing a communication connection based on the multi-operating system terminal shown in FIG.
其中,上述总线502用于连接上述输入装置503、输出装置504、处理器501和存储器505。The bus 502 is used to connect the input device 503, the output device 504, the processor 501, and the memory 505.
其中,上述输入装置503具体可为终端的触控面板,用于接收屏幕界面唤醒指令以及屏幕界面解锁密钥,上述输入装置503具体可为终端的麦克风,用于采集用户输入的语音信息。The input device 503 is specifically a touch panel of the terminal, and is configured to receive a screen interface wake-up command and a screen interface unlocking key. The input device 503 is specifically a microphone of the terminal, and is configured to collect voice information input by the user.
上述输出装置504具体可为终端的显示屏或者播放装置,用于提示用户输入触控解锁方式对应的屏幕界面解锁密码。The output device 504 may be a display screen or a playback device of the terminal, and is used to prompt the user to input a screen interface unlock password corresponding to the touch unlock mode.
上述存储器505可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器505还用于存储一组程序代码,上述输入装置503、输出装置504和处理器501用于调用存储器505中存储的程序代码,执行如下操作:The above memory 505 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The memory 505 is further configured to store a set of program codes, and the input device 503, the output device 504, and the processor 501 are configured to call the program code stored in the memory 505, and perform the following operations:
所述输入装置503,用于接收到屏幕界面唤醒指令时,接收用户输入的屏幕界面解锁密钥,并采集用户输入的语音信息;The input device 503 is configured to receive a screen interface unlocking key input by a user when receiving a screen interface wake-up command, and collect voice information input by the user;
所述处理器501,用于在所述屏幕界面解锁密钥与预设的目标屏幕界面解密密钥匹配,且所述语音信息与预设的目标语音信息匹配时,控制所述终端进入第一操作系统;The processor 501 is configured to control the terminal to enter the first when the screen interface unlocking key matches the preset target screen interface decryption key, and the voice information matches the preset target voice information. operating system;
所述处理器501,用于在所述屏幕界面解锁密钥与所述预设的目标屏幕界面解密密钥匹配,且所述语音信息与预设的目标语音信息不匹配时,控
制所述终端进入第二操作系统。The processor 501 is configured to control, when the screen interface unlocking key matches the preset target screen interface decryption key, and the voice information does not match the preset target voice information,
The terminal enters a second operating system.
在可选实施例中,所述屏幕界面的解锁方式包括语音解锁方式和触控解锁方式,则所述输入装置503接收到屏幕界面唤醒指令时,接收用户输入的屏幕界面解锁密钥,并采集用户输入的语音信息,具体为:In an optional embodiment, the unlocking mode of the screen interface includes a voice unlocking mode and a touch unlocking mode, and the input device 503 receives the screen interface unlocking key input by the user when receiving the screen interface wake-up instruction, and collects The voice information input by the user is specifically:
所述输入装置503接收到屏幕界面唤醒指令时,所述处理器501判断所述终端的屏幕界面的当前解锁方式;When the input device 503 receives the screen interface wake-up instruction, the processor 501 determines a current unlock mode of the screen interface of the terminal;
在所述当前解锁方式为触控解锁方式时,所述输出装置504提示所述用户输入所述触控解锁方式对应的屏幕界面解锁密码;When the current unlocking mode is the touch unlocking mode, the output device 504 prompts the user to input a screen interface unlocking password corresponding to the touch unlocking mode;
所述输入装置503接收所述用户输入的所述屏幕界面解锁密码,并开始获取所述用户输入的所述语音信息;以及The input device 503 receives the screen interface unlock password input by the user, and starts acquiring the voice information input by the user;
还包括:Also includes:
所述处理器501将所述屏幕界面解锁密码和所述预设的目标屏幕解锁密钥进行匹配,并对所述语音解锁信息进行解析,将解析出的声纹数据和预设的声纹数据进行匹配;The processor 501 matches the screen interface unlock password and the preset target screen unlocking key, and parses the voice unlocking information, and parses the voiceprint data and the preset voiceprint data. Matching;
所述处理器501在所述声纹数据和所述预设的声纹数据匹配时,判定所述语音信息和所述预设的目标语音信息匹配。The processor 501 determines that the voice information and the preset target voice information match when the voiceprint data and the preset voiceprint data match.
进一步可选的,所述处理器501判断所述终端的屏幕界面的当前解锁方式之后,还包括:Further, after the processor 501 determines the current unlocking mode of the screen interface of the terminal, the method further includes:
在所述当前解锁方式为语音解锁方式时,所述输入装置503直接采集用户输入的所述语音信息,并将所述语音信息作为所述屏幕界面解锁密码;以及When the current unlocking mode is the voice unlocking mode, the input device 503 directly collects the voice information input by the user, and uses the voice information as the screen interface unlocking password;
所述处理器501对所述语音信息进行解析,并将解析出的声纹数据和预设的声纹数据进行匹配;以及The processor 501 parses the voice information, and matches the parsed voiceprint data with preset voiceprint data;
所述处理器501在所述声纹数据和所述预设的声纹数据匹配时,判定所述屏幕界面解锁密钥和所述预设的目标屏幕界面解锁密钥匹配;以及The processor 501 determines that the screen interface unlocking key and the preset target screen interface unlocking key match when the voiceprint data and the preset voiceprint data match;
所述处理器501在所述声纹数据和所述预设的声纹数据匹配时,判断所述语音信息中是否包含预设的关键词;The processor 501 determines, when the voiceprint data and the preset voiceprint data match, whether the voice information includes a preset keyword;
所述处理器501在所述语音信息中包含所述预设的关键词时,判定所述语音信息与预设的目标语音信息匹配。
The processor 501 determines that the voice information matches the preset target voice information when the preset keyword is included in the voice information.
进一步可选的,所述处理器501根据接收到的设置命令,设置所述目标屏幕界面解锁密钥、所述预设的声纹数据和/或所述预设的关键词。Further optionally, the processor 501 sets the target screen interface unlocking key, the preset voiceprint data, and/or the preset keyword according to the received setting command.
在可选实施例中,所述输出装置504在所述屏幕界面解锁密钥与所述预设的目标屏幕界面解密密钥不匹配,且所述语音信息与预设的目标语音信息不匹配时,提示所述用户解锁失败;以及In an optional embodiment, the output device 504 does not match the preset screen interface decryption key, and the voice information does not match the preset target voice information. , prompting that the user failed to unlock;
所述输出装置504在连续解锁失败的次数达到预设次数时,进行报警提示。The output device 504 prompts an alarm when the number of consecutive unlock failures reaches a preset number of times.
具体的,本发明实施例中介绍的终端可以用以实施本发明结合图1、图3介绍的方法实施例中的部分或全部流程。Specifically, the terminal introduced in the embodiment of the present invention may be used to implement some or all of the processes in the method embodiments introduced in conjunction with FIG. 1 and FIG.
以上所述仅为本发明的实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。
The above is only the embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. within the spirit and scope of the invention are intended to be included within the scope of the appended claims.