WO2016183871A1 - External device connection method, external device connection apparatus and terminal - Google Patents

External device connection method, external device connection apparatus and terminal Download PDF

Info

Publication number
WO2016183871A1
WO2016183871A1 PCT/CN2015/080403 CN2015080403W WO2016183871A1 WO 2016183871 A1 WO2016183871 A1 WO 2016183871A1 CN 2015080403 W CN2015080403 W CN 2015080403W WO 2016183871 A1 WO2016183871 A1 WO 2016183871A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection system
preset connection
external device
preset
external
Prior art date
Application number
PCT/CN2015/080403
Other languages
French (fr)
Chinese (zh)
Inventor
刘亚鑫
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2016183871A1 publication Critical patent/WO2016183871A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to an external device connection method, an external device connection device, and a terminal.
  • the connection scheme between a terminal (such as a mobile phone) and a peripheral device in the related art is generally that when the terminal is connected to the peripheral device, the peripheral device is directly connected with the currently running system in the terminal, and when the terminal has multiple systems with different security levels. , then multiple peripherals share the peripheral.
  • the peripheral refers to the external device, which is used to refer to the hardware device other than the terminal host, plays the role of transmission, transfer and storage of data and information, and is an important component of the terminal.
  • the peripheral device can be a Bluetooth headset, a wired headset. , wearable devices, etc.
  • connection of terminals and peripherals in which a plurality of systems are installed in the related art does not take into consideration the security requirements of a system with a higher security level in the terminal, if the system or peripherals currently running in the peripheral connection terminal are If the systems are shared, the security of the data in multiple systems is not guaranteed. For example, if the smart watch does not allow direct reading of data in a system with a higher security level, the data in the system with higher security level is easy. After being leaked, or the external camera is connected to the terminal, the private photos taken by the external camera are directly stored in the system with lower security level, and the private photos are easily stolen.
  • the user has two requirements for the performance of the terminal.
  • the terminals in the related art cannot meet the requirements of the user.
  • the user can use one system in the terminal while the peripheral device can be in another The system starts up and running. For example, the user can make a call in a system with a higher security level, or use an external camera to take a picture in another system.
  • users can run different peripherals simultaneously on different systems in the terminal. For example, two people use the same terminal, one of them is used in a system with lower security level.
  • the line earphones listen to songs, and the other person uses a Bluetooth headset to make a call in a system with a higher security level.
  • the invention is based on the above problems, and proposes a new technical solution, which enables different peripherals to be corresponding to and access different systems, so that different systems respectively manage access peripherals of different systems, thereby avoiding sharing due to multiple systems. This can lead to data leakage in systems with higher security levels.
  • multiple systems can be used in parallel at the same time to improve the user experience of multiple systems.
  • an aspect of the present invention provides an external device connection method for a terminal, the terminal includes a plurality of systems, and the method includes: when the terminal receives a connection request of any external device, determining whether There is already a preset connection system corresponding to any of the external devices; when the determination result is YES, the any external device is connected to the preset connection system; otherwise, according to the received setting command, The external connection device sets the preset connection system, wherein the preset connection system is any one of the plurality of systems.
  • the terminal when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system.
  • External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems.
  • a user when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level.
  • an external camera While using a wired headset to listen to songs in a lower system, another person makes it in a system with a higher security level. Call with a Bluetooth headset.
  • the determining whether a preset connection system corresponding to the any external device exists specifically comprising: acquiring a device name and/or a device identification number of the any external device; The device name and/or the device identification number generate device identification information corresponding to the any external device; and according to the device identification information and the identification information of the terminal, determine whether there is a corresponding device identification information.
  • the preset connection system and when the determination result is yes, determining that the preset connection system corresponding to any of the external devices already exists; otherwise, determining that there is no corresponding to any of the external devices Preset connection system.
  • each external device corresponds to a unique device identification information
  • each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged.
  • An external device does not have a corresponding preset connection system.
  • the method further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, wherein the target connection system And being any one of the plurality of systems whose security level is higher than a preset security level; and changing the preset connection system corresponding to any of the external devices according to the received change command.
  • the method before the connecting the any external device to the preset connection system, the method further includes: determining whether the preset connection system works normally, and when the determination result is yes, The any external device is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
  • the external connection device before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system.
  • the performance of the terminal is affected.
  • the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system.
  • the preset connection system Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
  • an external device connection device for a terminal, the terminal comprising a plurality of systems, the device comprising: a determining unit, when the terminal receives a connection request of any external device, determining whether There is already a preset connection system corresponding to any of the external devices; the first processing unit connects the any external device to the preset connection system when the determination result is yes, otherwise, according to the received Setting a command to set the preset connection system for any of the external devices, wherein the preset connection system is any one of the plurality of systems.
  • the terminal when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system.
  • External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems.
  • a user makes a call in a system with a higher security level, he can also use an external camera at another security level. Taking pictures in the system, or when two people use the same terminal, one of them uses a wired headset to listen to the song in a system with a lower security level, while another person uses a Bluetooth headset to make a call in a system with a higher security level.
  • the determining unit is specifically configured to: acquire a device name and/or a device identification number of any of the external devices; generate and match the device name and/or the device identification number according to the device name Determining the corresponding device identification information of any external device; determining, according to the device identification information and the identification information of the terminal, whether the preset connection system corresponding to the device identification information exists, and when the determination result is yes Determining that the preset connection system corresponding to any of the external devices already exists, otherwise, determining that the preset connection system corresponding to the any external device does not exist.
  • each external device corresponds to a unique device identification information
  • each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged.
  • An external device does not have a corresponding preset connection system.
  • the storage unit further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where The target connection system is any one of the plurality of systems whose security level is higher than a preset security level; and the change unit changes the preset connection system corresponding to any of the external devices according to the received change command .
  • the second processing unit acquires the change key, determines whether the change key is correct, and determines whether the change key is correct before changing the preset connection system corresponding to the any external device. Allowing to change the preset connection system when the change key is correct, or not Then, it is forbidden to change the preset connection system.
  • the illegal user can be effectively prevented from changing the preset connection that any external device can access.
  • the system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
  • the determining unit is further configured to: before connecting the any external device to the preset connection system, determine whether the preset connection system works normally, and determine the result If yes, connect any of the external devices to the preset connection system; otherwise, issue a prompt signal to prompt whether to change the preset connection system corresponding to any of the external devices.
  • the external connection device before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system.
  • the performance of the terminal is affected.
  • the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system.
  • the preset connection system Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
  • Yet another aspect of the present invention provides a terminal, the terminal including a plurality of systems, and the terminal includes a communication bus, a transceiver, a memory, and a processor, wherein:
  • the communication bus is configured to implement connection communication between the transceiver device, the memory, and the processor;
  • the program stores a set of program codes, and the transceiver device and the processor call program code stored in the memory to perform the following operations:
  • the transceiver device is configured to receive a connection request of any external device
  • the processor is configured to determine, when the transceiver device receives a connection request of any external device, whether a preset connection system corresponding to the any external device already exists;
  • the processor is further configured to connect the any external device to the preset connection system when the determination result is yes, otherwise, set the foregoing for the any external device according to the received setting command.
  • a preset connection system wherein the preset connection system is any one of the plurality of systems system.
  • the step of determining, by the processor, whether a preset connection system corresponding to the any external device already exists specifically includes:
  • the transceiver device is further configured to receive a storage instruction and a change instruction
  • the processor is further configured to store, according to the storage command received by the transceiver device, a correspondence between the any external device and the preset connection system in a target connection system, where the target connection system Any of the plurality of systems having a security level higher than a preset security level;
  • the processor is further configured to change the preset connection system corresponding to any of the external devices according to the change command received by the transceiver.
  • the processor is further configured to:
  • the processor is further configured to:
  • different peripherals can be correspondingly connected to different systems, so that different systems respectively manage access peripherals of different systems, thereby avoiding a system with higher security level due to sharing of peripherals by multiple systems.
  • Data leakage at the same time, can also enable multiple systems to use multiple peripherals in parallel at the same time to improve user experience with multiple systems.
  • FIG. 1 is a flow chart showing an external device connection method according to an embodiment of the present invention
  • FIG. 2 shows a schematic diagram of an external device connection table in accordance with one embodiment of the present invention
  • FIG. 3 is a flow chart showing a method of connecting external devices according to another embodiment of the present invention.
  • FIG. 4 is a schematic structural view of an external device connecting device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing the principle structure of an external device connecting device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 7 shows a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • FIG. 1 is a flow chart showing an external device connection method according to an embodiment of the present invention. Figure.
  • an external device connection method includes: Step 102: When a terminal receives a connection request of any external device, it is determined whether there is a corresponding device corresponding to any of the external devices. Presetting the connection system; step 104, when the determination result is yes, connecting any of the external devices to the preset connection system, otherwise, setting the said external device according to the received setting command A preset connection system, wherein the preset connection system is any one of the plurality of systems.
  • the terminal when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system.
  • External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems.
  • a user when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level.
  • an external camera While using a wired headset to listen to songs in a lower system, another person uses a Bluetooth headset to make a call in a system with a higher security level.
  • the determining whether a preset connection system corresponding to the any external device exists specifically comprising: acquiring a device name and/or a device identification number of the any external device; The device name and/or the device identification number generate device identification information corresponding to the any external device; and according to the device identification information and the identification information of the terminal, determine whether there is a corresponding device identification information.
  • the preset connection system and when the determination result is yes, determining that the preset connection system corresponding to any of the external devices already exists; otherwise, determining that there is no corresponding to any of the external devices Preset connection system.
  • each external device corresponds to a unique device identification information
  • each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system, can Ensure that the accuracy of the judgment result is not to cause the external device to be misconnected to other systems because the judgment result is inaccurate, and the information of other systems is leaked or misjudged, and the corresponding preset connection does not exist in any external device. system.
  • the method further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, wherein the target connection system And being any one of the plurality of systems whose security level is higher than a preset security level; and changing the preset connection system corresponding to any of the external devices according to the received change command.
  • the illegal user can be effectively prevented from changing the preset connection that any external device can access.
  • the system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
  • the method before the connecting the any external device to the preset connection system, the method further includes: determining whether the preset connection system works normally, and when the determination result is yes, The any external device is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
  • the external connection device before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system.
  • the performance of the terminal is affected. For example, at this time, in order to save power, the current state of the preset connection system may be off or in a sleep state, therefore, any of the Before the external device is connected to the preset connection system, the user may be prompted to change the preset connection system corresponding to the external device, so that the external device can access other systems that are currently working normally, and save the device. The power of the terminal.
  • FIG. 2 shows a schematic diagram of an external device connection table in accordance with one embodiment of the present invention.
  • an external device connection table according to an embodiment of the present invention (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level. Ordinary system), the description of the external device connection table is as follows:
  • the external device connection table is maintained by a security system with a higher security level. Other systems must not modify the external device connection table.
  • the security system Each time a new peripheral is accessed, the security system generates a unique mobile ID based on the name of the mobile phone and the identification number of the mobile phone (for the same mobile phone, the ID is the same, only one generation is required), for Identify the mobile phone; generate a unique peripheral ID (device identification information) based on the peripheral name and peripheral identification number to identify the peripheral; and, at the same time, generate an entry for the peripheral based on the mobile phone ID and the peripheral ID.
  • the user can set the default access system corresponding to the peripheral in each peripheral's entry to form an external device connection table.
  • FIG. 3 is a flow chart showing a method of connecting external devices according to another embodiment of the present invention.
  • an external device connection method (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level.
  • Ordinary system including:
  • Step 302 Send access information of the peripheral device to prompt the user to connect the mobile phone to the peripheral device.
  • Step 304 Query the peripheral ID and the mobile phone ID in the external device connection table according to the access information of the peripheral device.
  • Step 306 Determine, according to the peripheral ID and the mobile phone ID, whether the default access system corresponding to the peripheral ID is in the connection table of the external device. When the determination result is yes, there is a default access system corresponding to the peripheral, and the step of entering 308. When the determination result is no, that is, there is no default access system corresponding to the peripheral device, and the process proceeds to step 312. Of course, in step 306, if the peripheral ID is not queried, step 312 is also entered.
  • Step 308 determining whether the current state of the default access system (preset connection system) corresponding to the peripheral device is normal, that is, determining whether the default access system is in a dormant state or a closed state, etc., when the determination result is yes, the step is entered. 316. When the determination result is no, the process proceeds to step 310.
  • Step 310 When the current state of the default access system corresponding to the peripheral device is abnormal (for example, the default access system is in a dormant state or a closed state), prompting the user to change the default access system, when the judgment result is yes That is, the user wants to save the power consumption of the mobile phone by changing the default access system, thereby extending the time of the peripheral accessing the system, and proceeds to step 316, and when the judgment result is no, the connection between the peripheral device and the mobile phone is ended.
  • the judgment result is yes That is, the user wants to save the power consumption of the mobile phone by changing the default access system, thereby extending the time of the peripheral accessing the system.
  • Step 312 when there is no default access system corresponding to the peripheral device in the external device connection table, the mobile phone displays a window for setting a change key of the external device connection table, so that the user sets the default access corresponding to the peripheral device.
  • the system when the user inputs the correct change key, proceeds to step 314 to allow the user to set the external device connection table to prevent the mobile phone from accessing the illegal peripheral device, thereby preventing data leakage in the system with higher security level in the mobile phone.
  • the judgment result is no, the connection between the peripheral and the mobile phone is ended.
  • Step 314 After the user sets a default access system connected to the external device, the external device connection table is updated.
  • step 316 the peripheral is connected to the default access system.
  • Fig. 4 is a block diagram showing the structure of an external device connecting device according to an embodiment of the present invention.
  • an external device connection device 400 includes a determination unit 402 and a first processing unit 404.
  • the determining unit 402 is configured to: when the terminal receives the connection request of any external device, determine whether a preset connection system corresponding to the any external device already exists;
  • the first processing unit 404 is configured to: Connecting any of the external devices to the preset connection system, otherwise, setting the preset connection system for any of the external devices according to the received setting command, wherein the preset connection system Is any of the plurality of systems.
  • the terminal when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, then it is set for any external device. Preset the connection system so that different external devices can correspond to and access different systems, so that each preset connection system can manage the external devices of the respective systems, avoiding multiple systems sharing external devices, thereby avoiding security. The data of a higher-level system is leaked in the shared external device. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without affecting each other to improve the user's peripheral experience for multiple systems.
  • a user when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level.
  • an external camera While using a wired headset to listen to songs in a lower system, another person uses a Bluetooth headset to make a call in a system with a higher security level.
  • the determining unit 402 is specifically configured to: acquire a device name and/or a device identification number of any of the external devices; generate and generate according to the device name and/or the device identification number. Corresponding device identification information of any of the external devices; determining, according to the device identification information and the identification information of the terminal, whether the preset connection system corresponding to the device identification information exists, and the determination result is When it is determined that the preset connection system corresponding to any of the external devices already exists, otherwise, it is determined that the preset connection system corresponding to the any external device does not exist.
  • each external device corresponds to a unique device identification information
  • each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged.
  • An external device does not have a corresponding preset connection system.
  • the method further includes: a storage unit 406, configured to store, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where The target connection system is any one of the plurality of systems whose security level is higher than a preset security level; and the changing unit 408 changes the preset corresponding to the any external device according to the received change command Connect the system.
  • a storage unit 406 configured to store, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where The target connection system is any one of the plurality of systems whose security level is higher than a preset security level; and the changing unit 408 changes the preset corresponding to the any external device according to the received change command Connect the system.
  • the second processing unit 410 acquires a change key, determines whether the change key is correct, and determines whether the change key is correct before changing the preset connection system corresponding to any of the external devices.
  • the preset connection system is allowed to be changed; otherwise, the preset connection system is prohibited from being changed.
  • the illegal user can be effectively prevented from changing the preset connection that any external device can access.
  • the system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
  • the determining unit 402 is further configured to: before connecting the any external device to the preset connection system, determine whether the preset connection system works normally, and determine When the result is YES, any of the external devices is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
  • the external connection device before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system.
  • the performance of the terminal is affected.
  • the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system.
  • the preset connection system Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
  • FIG. 5 is a schematic block diagram showing the structure of an external device connecting device according to an embodiment of the present invention.
  • an external device connection device 400 according to an embodiment of the present invention (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level.
  • Ordinary system including:
  • a peripheral management module 502 configured to manage peripheral devices connected to the mobile phone, and to the table management module Block 506 transmits peripheral access information and, in addition, accesses the peripheral to the corresponding default access system based on the presence of the peripheral ID in the external device connection table.
  • the mobile phone system module 504 is configured to manage common systems and security systems in the mobile phone, and manage peripheral devices corresponding to the respective systems.
  • the table management module 506 maintains the device connection table 508 and queries the device connection table according to the peripheral ID sent by the peripheral management module 502 and returns the query result. In addition, when the device connection table is queried, the default connection corresponding to the peripheral device is detected. Enter the operating state of the system.
  • the device connection table 508 is used to record the mobile phone ID, the peripheral ID, and the default access system of the corresponding peripheral.
  • FIG. 6 shows a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • a terminal 600 includes the external device connecting device 400 according to any one of the above technical solutions.
  • FIG. 7 shows a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal may include at least one transceiver 503, at least one processor 501, such as a CPU, a memory 504, and at least one communication bus 502.
  • the communication bus 502 is configured to connect the transceiver 503, the processor 501, and the memory 504.
  • the above memory 504 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the memory 504 is further configured to store a set of program codes, and the transceiver 503 and the processor 501 are configured to call the program code stored in the memory 504, and perform the following operations:
  • the transceiver device 503 is configured to receive a connection request of any external device
  • the processor 201 is configured to receive a connection of any external device at the transceiver 203 When requesting, determining whether a preset connection system corresponding to any of the external devices already exists;
  • the processor 501 is further configured to connect the any external device to the preset connection system when the determination result is yes, otherwise, set the location for the any external device according to the received setting command.
  • the preset connection system wherein the preset connection system is any one of the plurality of systems.
  • the step of the processor 501 determining whether a preset connection system corresponding to the any external device already exists includes:
  • the transceiver device 503 is further configured to receive a storage instruction and a change instruction
  • the processor 501 is further configured to store, according to the storage command received by the transceiver 503, a correspondence between the any external device and the preset connection system in a target connection system, where the target The connection system is any one of the plurality of systems whose security level is higher than a preset security level;
  • the processor 501 is further configured to change, according to the change command received by the transceiver 503, the preset connection system corresponding to any of the external devices.
  • the processor 501 is further configured to:
  • the processor 501 is further configured to:
  • peripheral devices can be correspondingly connected to different systems, so that different systems can respectively manage access peripherals of different systems, thereby avoiding security caused by sharing peripherals of multiple systems.
  • Data leakage in higher-level systems can also enable multiple systems to use multiple peripherals in parallel at the same time to improve user experience with multiple systems.

Abstract

Provided are an external device connection method, an external device connection apparatus and a terminal. The external device connection method comprises: when receiving a connection request from any external device, a terminal determining if there already is a pre-set connection system corresponding to the external device; and if so, connecting the external device to the pre-set connection system, or otherwise setting the pre-set connection system for the external device according to a received setting command, wherein the pre-set connection system is any one of a plurality of systems. By means of the technical solution of the present invention, different peripherals can correspond to and access different systems, and different systems respectively manage accessing peripherals of the different systems, so that data leakage of a system with a relatively high security level due to peripheral sharing by a plurality of systems is avoided, and meanwhile a plurality of systems may use a plurality of peripherals in parallel and at the same time, thereby improving the peripheral usage experience of a user in a multi-system.

Description

外部设备连接方法、外部设备连接装置和终端External device connection method, external device connection device, and terminal
本申请要求于2015年5月20日提交中国专利局、申请号为201510258883.0,发明名称为“外部设备连接方法、外部设备连接装置和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201510258883.0, filed on May 20, 2015, entitled "External Device Connection Method, External Device Connection Device, and Terminal", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及终端技术领域,具体而言,涉及一种外部设备连接方法、外部设备连接装置和一种终端。The present invention relates to the field of terminal technologies, and in particular, to an external device connection method, an external device connection device, and a terminal.
背景技术Background technique
目前,相关技术中的终端(如手机)与外设的连接方案一般是当终端连接外设后,将外设与终端中当前运行的系统直接进行连接,当终端存在多个安全等级不同的系统,则多个系统共享该外设。其中,外设指外部设备,用于指除终端主机以外的硬件设备,对数据和信息起着传输、转送和存储的作用,是终端的重要组成部分,例如外设可以是蓝牙耳机,有线耳机,可穿戴设备等。At present, the connection scheme between a terminal (such as a mobile phone) and a peripheral device in the related art is generally that when the terminal is connected to the peripheral device, the peripheral device is directly connected with the currently running system in the terminal, and when the terminal has multiple systems with different security levels. , then multiple peripherals share the peripheral. Among them, the peripheral refers to the external device, which is used to refer to the hardware device other than the terminal host, plays the role of transmission, transfer and storage of data and information, and is an important component of the terminal. For example, the peripheral device can be a Bluetooth headset, a wired headset. , wearable devices, etc.
但是,相关技术中安装有多个系统的终端和外设的连接并没有考虑到终端中安全等级较高的系统在安全方面的需求,如果外设连接终端中当前运行的系统或者外设被多个系统共用,则多个系统中数据的安全性得不到保障,例如,智能手表不经允许直接读取安全等级较高的系统中的数据,则安全等级较高的系统中的数据很容易遭到泄漏,或者外置摄像头与终端连接后,通过外置摄像头拍摄的私密照片直接存入安全等级较低的系统中,则该私密照片很容易遭到非法窃取。However, the connection of terminals and peripherals in which a plurality of systems are installed in the related art does not take into consideration the security requirements of a system with a higher security level in the terminal, if the system or peripherals currently running in the peripheral connection terminal are If the systems are shared, the security of the data in multiple systems is not guaranteed. For example, if the smart watch does not allow direct reading of data in a system with a higher security level, the data in the system with higher security level is easy. After being leaked, or the external camera is connected to the terminal, the private photos taken by the external camera are directly stored in the system with lower security level, and the private photos are easily stolen.
另外,用户对终端的使用性能有两方面的需求,相关技术中的终端均无法实现用户对两方面的需求,一方面,用户可以在使用终端中某一系统的同时,外设可以在另一个系统中启动运行,例如,用户可以在安全等级较高的系统中拨打电话的同时,也可以使用外置摄像头在另一个系统中拍照。另一方面,用户可以在终端中的不同的系统上同时运行不同的外设,例如,两个人用同一个终端,其中一个人在安全等级较低的系统中使用有 线耳机听歌,另一个人在安全等级较高的系统中使用蓝牙耳机打电话。In addition, the user has two requirements for the performance of the terminal. The terminals in the related art cannot meet the requirements of the user. On the one hand, the user can use one system in the terminal while the peripheral device can be in another The system starts up and running. For example, the user can make a call in a system with a higher security level, or use an external camera to take a picture in another system. On the other hand, users can run different peripherals simultaneously on different systems in the terminal. For example, two people use the same terminal, one of them is used in a system with lower security level. The line earphones listen to songs, and the other person uses a Bluetooth headset to make a call in a system with a higher security level.
因此,如何使不同外设可以接入不同系统,使不同系统各自管理不同系统的接入外设,从而避免因为多个系统共享外设而导致安全等级较高的系统的数据泄露,同时,也可以使多个系统同时并行使用多个外设,以提高用户对多系统的外设使用体验,成为亟待解决的问题。Therefore, how to enable different peripherals to access different systems, so that different systems can manage access peripherals of different systems, thereby avoiding data leakage of systems with higher security levels due to sharing of peripherals by multiple systems, and also It is an urgent problem to be solved by enabling multiple systems to use multiple peripherals in parallel at the same time to improve the user experience of multiple systems.
发明内容Summary of the invention
本发明正是基于上述问题,提出了一种新的技术方案,能够使不同外设对应并接入不同系统,使不同系统各自管理不同系统的接入外设,从而避免因为多个系统共享外设而导致安全等级较高的系统的数据泄露,同时,也可以使多个系统同时并行使用多个外设,以提高用户对多系统的外设使用体验。The invention is based on the above problems, and proposes a new technical solution, which enables different peripherals to be corresponding to and access different systems, so that different systems respectively manage access peripherals of different systems, thereby avoiding sharing due to multiple systems. This can lead to data leakage in systems with higher security levels. At the same time, multiple systems can be used in parallel at the same time to improve the user experience of multiple systems.
有鉴于此,本发明的一方面提出了一种外部设备连接方法,用于终端,所述终端包括多个系统,所述方法包括:当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。In view of this, an aspect of the present invention provides an external device connection method for a terminal, the terminal includes a plurality of systems, and the method includes: when the terminal receives a connection request of any external device, determining whether There is already a preset connection system corresponding to any of the external devices; when the determination result is YES, the any external device is connected to the preset connection system; otherwise, according to the received setting command, The external connection device sets the preset connection system, wherein the preset connection system is any one of the plurality of systems.
在该技术方案中,当终端接收到任一外部设备的连接请求时,如果该任一外部设备已存在对应的预设连接系统,则将该任一外部设备连接至该预设连接系统,如果不存在对应的预设连接系统,则为该任一外部设备设置预设连接系统,从而使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。例如:用户在安全等级较高的系统中拨打电话的同时,也可以使用外置摄像头在另一个安全等级较低的系统中拍照,或者,两个人用同一个终端时,其中一个人在安全等级较低的系统中使用有线耳机听歌的同时,另一个人在安全等级较高的系统中使 用蓝牙耳机打电话。In the technical solution, when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system. External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems. For example, when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level. While using a wired headset to listen to songs in a lower system, another person makes it in a system with a higher security level. Call with a Bluetooth headset.
在上述技术方案中,优选地,所述判断是否已存在与所述任一外部设备对应的预设连接系统,具体包括:获取所述任一外部设备的设备名称和/或设备识别号;根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the determining whether a preset connection system corresponding to the any external device exists, specifically comprising: acquiring a device name and/or a device identification number of the any external device; The device name and/or the device identification number generate device identification information corresponding to the any external device; and according to the device identification information and the identification information of the terminal, determine whether there is a corresponding device identification information. The preset connection system, and when the determination result is yes, determining that the preset connection system corresponding to any of the external devices already exists; otherwise, determining that there is no corresponding to any of the external devices Preset connection system.
在该技术方案中,由于每个外部设备均对应一个唯一的设备标识信息,每个终端均对应一个唯一的终端的标识信息,因此,通过根据设备标识信息和终端的标识信息判断任一外部设备是否对应某个预设连接系统,可以确保判断结果的准确率,避免因为判断结果不准确,而导致该任一外部设备误连接至其他系统,进而导致其他系统的信息被泄露或误判断而任一外部设备不存在对应的预设连接系统。In this technical solution, each external device corresponds to a unique device identification information, and each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged. An external device does not have a corresponding preset connection system.
在上述技术方案中,优选地,还包括:根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the method further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, wherein the target connection system And being any one of the plurality of systems whose security level is higher than a preset security level; and changing the preset connection system corresponding to any of the external devices according to the received change command.
在该技术方案中,通过将任一外部设备与预设连接系统的对应关系存储在安全级别较高的目标连接系统中,可以确保两者之间的对应关系无法被安全等级较低的系统或非法用户更改;当然,用户可以根据个人意愿和使用需求,更改任一外部设备所对应的预设连接系统,从而实现满足不同用户的使用需求。In this technical solution, by storing the correspondence between any external device and the preset connection system in the target connection system with a higher security level, it can be ensured that the correspondence between the two cannot be reduced by the system with lower security level or Illegal user changes; of course, the user can change the preset connection system corresponding to any external device according to personal wishes and usage requirements, so as to meet the needs of different users.
在上述技术方案中,优选地,在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。In the above technical solution, preferably, before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and determining the change key When it is correct, it is allowed to change the preset connection system, otherwise it is forbidden to change the preset connection system.
在该技术方案中,在更改与该任一外部设备对应的预设连接系统之前, 通过对更改密钥进行验证,可以有效地防止非法用户随意更改该任一外部设备可以接入的预设连接系统,确保任一外部设备与预设连接系统的对应关系无法被随意篡改。In this technical solution, before changing the preset connection system corresponding to any of the external devices, By verifying the change key, it is possible to effectively prevent the illegal user from arbitrarily changing the preset connection system that any external device can access, and ensure that the correspondence between any external device and the preset connection system cannot be arbitrarily falsified.
在上述技术方案中,优选地,在将所述任一外部设备连接至所述预设连接系统之前,还包括:判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, before the connecting the any external device to the preset connection system, the method further includes: determining whether the preset connection system works normally, and when the determination result is yes, The any external device is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
在该技术方案中,在将该任一外部设备连接至该预设连接系统之前,通过判断该预设连接系统是否正常工作,可以防止对该预设连接系统的当前状态造成不良影响,进而对终端的性能造成影响,例如:此时,为了省电,该预设连接系统当前状态可能为关闭或休眠状态,因此,在将该任一外部设备连接至该预设连接系统之前,可以提示用户是否更改与该任一外部设备对应的预设连接系统,以使该任一外部设备既可以接入当前正常工作的其他系统,也可以节省终端的电能。In the technical solution, before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system. The performance of the terminal is affected. For example, at this time, in order to save power, the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system. Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
本发明的另一方面提出了一种外部设备连接装置,用于终端,所述终端包括多个系统,所述装置包括:判断单元,当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;第一处理单元,在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。Another aspect of the present invention provides an external device connection device for a terminal, the terminal comprising a plurality of systems, the device comprising: a determining unit, when the terminal receives a connection request of any external device, determining whether There is already a preset connection system corresponding to any of the external devices; the first processing unit connects the any external device to the preset connection system when the determination result is yes, otherwise, according to the received Setting a command to set the preset connection system for any of the external devices, wherein the preset connection system is any one of the plurality of systems.
在该技术方案中,当终端接收到任一外部设备的连接请求时,如果该任一外部设备已存在对应的预设连接系统,则将该任一外部设备连接至该预设连接系统,如果不存在对应的预设连接系统,则为该任一外部设备设置预设连接系统,从而使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。例如:用户在安全等级较高的系统中拨打电话的同时,也可以使用外置摄像头在另一个安全等级较低的 系统中拍照,或者,两个人用同一个终端时,其中一个人在安全等级较低的系统中使用有线耳机听歌的同时,另一个人在安全等级较高的系统中使用蓝牙耳机打电话。In the technical solution, when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system. External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems. For example, if a user makes a call in a system with a higher security level, he can also use an external camera at another security level. Taking pictures in the system, or when two people use the same terminal, one of them uses a wired headset to listen to the song in a system with a lower security level, while another person uses a Bluetooth headset to make a call in a system with a higher security level.
在上述技术方案中,优选地,所述判断单元具体用于:获取所述任一外部设备的设备名称和/或设备识别号;根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the determining unit is specifically configured to: acquire a device name and/or a device identification number of any of the external devices; generate and match the device name and/or the device identification number according to the device name Determining the corresponding device identification information of any external device; determining, according to the device identification information and the identification information of the terminal, whether the preset connection system corresponding to the device identification information exists, and when the determination result is yes Determining that the preset connection system corresponding to any of the external devices already exists, otherwise, determining that the preset connection system corresponding to the any external device does not exist.
在该技术方案中,由于每个外部设备均对应一个唯一的设备标识信息,每个终端均对应一个唯一的终端的标识信息,因此,通过根据设备标识信息和终端的标识信息判断任一外部设备是否对应某个预设连接系统,可以确保判断结果的准确率,避免因为判断结果不准确,而导致该任一外部设备误连接至其他系统,进而导致其他系统的信息被泄露或误判断而任一外部设备不存在对应的预设连接系统。In this technical solution, each external device corresponds to a unique device identification information, and each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged. An external device does not have a corresponding preset connection system.
在上述技术方案中,优选地,还包括:存储单元,根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及更改单元,根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the storage unit further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where The target connection system is any one of the plurality of systems whose security level is higher than a preset security level; and the change unit changes the preset connection system corresponding to any of the external devices according to the received change command .
在该技术方案中,通过将任一外部设备与预设连接系统的对应关系存储在安全级别较高的目标连接系统中,可以确保两者之间的对应关系无法被安全等级较低的系统或非法用户更改;当然,用户可以根据个人意愿和使用需求,更改任一外部设备所对应的预设连接系统,从而实现满足不同用户的使用需求。In this technical solution, by storing the correspondence between any external device and the preset connection system in the target connection system with a higher security level, it can be ensured that the correspondence between the two cannot be reduced by the system with lower security level or Illegal user changes; of course, the user can change the preset connection system corresponding to any external device according to personal wishes and usage requirements, so as to meet the needs of different users.
在上述技术方案中,优选地,第二处理单元,在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否 则,禁止更改所述预设连接系统。In the above technical solution, preferably, the second processing unit acquires the change key, determines whether the change key is correct, and determines whether the change key is correct before changing the preset connection system corresponding to the any external device. Allowing to change the preset connection system when the change key is correct, or not Then, it is forbidden to change the preset connection system.
在该技术方案中,在更改与该任一外部设备对应的预设连接系统之前,通过对更改密钥进行验证,可以有效地防止非法用户随意更改该任一外部设备可以接入的预设连接系统,确保任一外部设备与预设连接系统的对应关系无法被随意篡改。In the technical solution, by modifying the change key before the change of the preset connection system corresponding to the external device, the illegal user can be effectively prevented from changing the preset connection that any external device can access. The system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
在上述技术方案中,优选地,所述判断单元还用于:在将所述任一外部设备连接至所述预设连接系统之前,判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the determining unit is further configured to: before connecting the any external device to the preset connection system, determine whether the preset connection system works normally, and determine the result If yes, connect any of the external devices to the preset connection system; otherwise, issue a prompt signal to prompt whether to change the preset connection system corresponding to any of the external devices.
在该技术方案中,在将该任一外部设备连接至该预设连接系统之前,通过判断该预设连接系统是否正常工作,可以防止对该预设连接系统的当前状态造成不良影响,进而对终端的性能造成影响,例如:此时,为了省电,该预设连接系统当前状态可能为关闭或休眠状态,因此,在将该任一外部设备连接至该预设连接系统之前,可以提示用户是否更改与该任一外部设备对应的预设连接系统,以使该任一外部设备既可以接入当前正常工作的其他系统,也可以节省终端的电能。In the technical solution, before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system. The performance of the terminal is affected. For example, at this time, in order to save power, the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system. Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
本发明的又一方面提出了一种终端,所述终端包括多个系统,且所述终端包括通信总线、收发装置、存储器以及处理器,其中:Yet another aspect of the present invention provides a terminal, the terminal including a plurality of systems, and the terminal includes a communication bus, a transceiver, a memory, and a processor, wherein:
所述通信总线,用于实现所述收发装置、所述存储器以及所述处理器之间的连接通信;The communication bus is configured to implement connection communication between the transceiver device, the memory, and the processor;
所述存储器中存储一组程序代码,且所述收发装置和所述处理器调用存储器中存储的程序代码,用于执行以下操作:The program stores a set of program codes, and the transceiver device and the processor call program code stored in the memory to perform the following operations:
所述收发装置,用于接收任一外部设备的连接请求;The transceiver device is configured to receive a connection request of any external device;
所述处理器,用于在所述收发装置接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;The processor is configured to determine, when the transceiver device receives a connection request of any external device, whether a preset connection system corresponding to the any external device already exists;
所述处理器,还用于在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一 系统。The processor is further configured to connect the any external device to the preset connection system when the determination result is yes, otherwise, set the foregoing for the any external device according to the received setting command. a preset connection system, wherein the preset connection system is any one of the plurality of systems system.
在上述技术方案中,优选地,所述处理器判断是否已存在与所述任一外部设备对应的预设连接系统的步骤具体包括:In the foregoing technical solution, the step of determining, by the processor, whether a preset connection system corresponding to the any external device already exists, specifically includes:
获取所述任一外部设备的设备名称和/或设备识别号;Obtaining the device name and/or device identification number of any of the external devices;
根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;Generating device identification information corresponding to any of the external devices according to the device name and/or the device identification number;
根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。Determining, according to the device identification information and the identifier information of the terminal, whether the preset connection system corresponding to the device identification information exists, and determining that the existing external device exists if the determination result is yes Corresponding to the preset connection system, otherwise, it is determined that there is no such preset connection system corresponding to any of the external devices.
在上述技术方案中,优选地,所述收发装置,还用于接收存储指令和更改指令;In the above technical solution, preferably, the transceiver device is further configured to receive a storage instruction and a change instruction;
所述处理器,还用于根据所述收发装置接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及The processor is further configured to store, according to the storage command received by the transceiver device, a correspondence between the any external device and the preset connection system in a target connection system, where the target connection system Any of the plurality of systems having a security level higher than a preset security level;
所述处理器,还用于根据所述收发装置接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。The processor is further configured to change the preset connection system corresponding to any of the external devices according to the change command received by the transceiver.
在上述技术方案中,优选地,所述处理器还用于:In the above technical solution, preferably, the processor is further configured to:
在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。Before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and allowing the change of the preset when determining that the change key is correct Connect the system, otherwise it is forbidden to change the preset connection system.
在上述技术方案中,优选地,所述处理器还用于:In the above technical solution, preferably, the processor is further configured to:
判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。Determining whether the preset connection system works normally, and when the determination result is yes, connecting any of the external devices to the preset connection system; otherwise, issuing a prompt signal to prompt whether to change with any of the The preset connection system corresponding to the external device.
在该技术方案中,通过在终端上设置外部设备连接装置,使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安 全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。In this technical solution, by setting an external device connection device on the terminal, different external devices can be corresponding to and access different systems, so that each preset connection system can manage external devices of the respective systems, avoiding more Systems share external devices, thus avoiding security The data of the higher-level system is leaked in the shared external device. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without affecting each other, so as to improve the user's peripheral experience for multiple systems.
通过本发明的技术方案,能够使不同外设对应并接入不同系统,使不同系统各自管理不同系统的接入外设,从而避免因为多个系统共享外设而导致安全等级较高的系统的数据泄露,同时,也可以使多个系统同时并行使用多个外设,以提高用户对多系统的外设使用体验。Through the technical solution of the present invention, different peripherals can be correspondingly connected to different systems, so that different systems respectively manage access peripherals of different systems, thereby avoiding a system with higher security level due to sharing of peripherals by multiple systems. Data leakage, at the same time, can also enable multiple systems to use multiple peripherals in parallel at the same time to improve user experience with multiple systems.
附图说明DRAWINGS
图1示出了根据本发明的一个实施例的外部设备连接方法的流程示意图;1 is a flow chart showing an external device connection method according to an embodiment of the present invention;
图2示出了根据本发明的一个实施例的外部设备连接表的示意图;2 shows a schematic diagram of an external device connection table in accordance with one embodiment of the present invention;
图3示出了根据本发明的另一个实施例的外部设备连接方法的流程示意图;FIG. 3 is a flow chart showing a method of connecting external devices according to another embodiment of the present invention; FIG.
图4示出了根据本发明的一个实施例的外部设备连接装置的结构示意图;4 is a schematic structural view of an external device connecting device according to an embodiment of the present invention;
图5示出了根据本发明的一个实施例的外部设备连接装置的原理结构示意图;FIG. 5 is a schematic diagram showing the principle structure of an external device connecting device according to an embodiment of the present invention; FIG.
图6示出了根据本发明的一个实施例的终端的结构示意图;FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention; FIG.
图7示出了根据本发明的另一个实施例的终端的结构示意图。FIG. 7 shows a schematic structural diagram of a terminal according to another embodiment of the present invention.
具体实施方式detailed description
为了可以更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。The above described objects, features and advantages of the present invention will become more apparent from the detailed description of the appended claims. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, numerous specific details are set forth in order to provide a full understanding of the invention, but the invention may be practiced otherwise than as described herein. Limitations of the embodiments.
图1示出了根据本发明的一个实施例的外部设备连接方法的流程示意 图。FIG. 1 is a flow chart showing an external device connection method according to an embodiment of the present invention. Figure.
如图1所示,根据本发明的一个实施例的外部设备连接方法,包括:步骤102,当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;步骤104,在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。As shown in FIG. 1 , an external device connection method according to an embodiment of the present invention includes: Step 102: When a terminal receives a connection request of any external device, it is determined whether there is a corresponding device corresponding to any of the external devices. Presetting the connection system; step 104, when the determination result is yes, connecting any of the external devices to the preset connection system, otherwise, setting the said external device according to the received setting command A preset connection system, wherein the preset connection system is any one of the plurality of systems.
在该技术方案中,当终端接收到任一外部设备的连接请求时,如果该任一外部设备已存在对应的预设连接系统,则将该任一外部设备连接至该预设连接系统,如果不存在对应的预设连接系统,则为该任一外部设备设置预设连接系统,从而使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。例如:用户在安全等级较高的系统中拨打电话的同时,也可以使用外置摄像头在另一个安全等级较低的系统中拍照,或者,两个人用同一个终端时,其中一个人在安全等级较低的系统中使用有线耳机听歌的同时,另一个人在安全等级较高的系统中使用蓝牙耳机打电话。In the technical solution, when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, a preset connection system is set for the external device, so that different external devices can correspond to and access different systems, so that each preset connection system can be used for the respective system. External devices are managed to prevent multiple systems from sharing external devices, thereby preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without mutual Impact to improve user experience with multiple systems. For example, when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level. While using a wired headset to listen to songs in a lower system, another person uses a Bluetooth headset to make a call in a system with a higher security level.
在上述技术方案中,优选地,所述判断是否已存在与所述任一外部设备对应的预设连接系统,具体包括:获取所述任一外部设备的设备名称和/或设备识别号;根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the determining whether a preset connection system corresponding to the any external device exists, specifically comprising: acquiring a device name and/or a device identification number of the any external device; The device name and/or the device identification number generate device identification information corresponding to the any external device; and according to the device identification information and the identification information of the terminal, determine whether there is a corresponding device identification information. The preset connection system, and when the determination result is yes, determining that the preset connection system corresponding to any of the external devices already exists; otherwise, determining that there is no corresponding to any of the external devices Preset connection system.
在该技术方案中,由于每个外部设备均对应一个唯一的设备标识信息,每个终端均对应一个唯一的终端的标识信息,因此,通过根据设备标识信息和终端的标识信息判断任一外部设备是否对应某个预设连接系统,可以 确保判断结果的准确率,避免因为判断结果不准确,而导致该任一外部设备误连接至其他系统,进而导致其他系统的信息被泄露或误判断而任一外部设备不存在对应的预设连接系统。In this technical solution, each external device corresponds to a unique device identification information, and each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system, can Ensure that the accuracy of the judgment result is not to cause the external device to be misconnected to other systems because the judgment result is inaccurate, and the information of other systems is leaked or misjudged, and the corresponding preset connection does not exist in any external device. system.
在上述技术方案中,优选地,还包括:根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the method further includes: storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, wherein the target connection system And being any one of the plurality of systems whose security level is higher than a preset security level; and changing the preset connection system corresponding to any of the external devices according to the received change command.
在该技术方案中,通过将任一外部设备与预设连接系统的对应关系存储在安全级别较高的目标连接系统中,可以确保两者之间的对应关系无法被安全等级较低的系统或非法用户更改;当然,用户可以根据个人意愿和使用需求,更改任一外部设备所对应的预设连接系统,从而实现满足不同用户的使用需求。In this technical solution, by storing the correspondence between any external device and the preset connection system in the target connection system with a higher security level, it can be ensured that the correspondence between the two cannot be reduced by the system with lower security level or Illegal user changes; of course, the user can change the preset connection system corresponding to any external device according to personal wishes and usage requirements, so as to meet the needs of different users.
在上述技术方案中,优选地,在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。In the above technical solution, preferably, before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and determining the change key When it is correct, it is allowed to change the preset connection system, otherwise it is forbidden to change the preset connection system.
在该技术方案中,在更改与该任一外部设备对应的预设连接系统之前,通过对更改密钥进行验证,可以有效地防止非法用户随意更改该任一外部设备可以接入的预设连接系统,确保任一外部设备与预设连接系统的对应关系无法被随意篡改。In the technical solution, by modifying the change key before the change of the preset connection system corresponding to the external device, the illegal user can be effectively prevented from changing the preset connection that any external device can access. The system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
在上述技术方案中,优选地,在将所述任一外部设备连接至所述预设连接系统之前,还包括:判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, before the connecting the any external device to the preset connection system, the method further includes: determining whether the preset connection system works normally, and when the determination result is yes, The any external device is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
在该技术方案中,在将该任一外部设备连接至该预设连接系统之前,通过判断该预设连接系统是否正常工作,可以防止对该预设连接系统的当前状态造成不良影响,进而对终端的性能造成影响,例如:此时,为了省电,该预设连接系统当前状态可能为关闭或休眠状态,因此,在将该任一 外部设备连接至该预设连接系统之前,可以提示用户是否更改与该任一外部设备对应的预设连接系统,以使该任一外部设备既可以接入当前正常工作的其他系统,也可以节省终端的电能。In the technical solution, before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system. The performance of the terminal is affected. For example, at this time, in order to save power, the current state of the preset connection system may be off or in a sleep state, therefore, any of the Before the external device is connected to the preset connection system, the user may be prompted to change the preset connection system corresponding to the external device, so that the external device can access other systems that are currently working normally, and save the device. The power of the terminal.
图2示出了根据本发明的一个实施例的外部设备连接表的示意图。2 shows a schematic diagram of an external device connection table in accordance with one embodiment of the present invention.
如图2所示,根据本发明的一个实施例的外部设备连接表(在该实施例中,终端为手机,手机中安装有双系统,即安全等级较高的安全系统和安全等级较低的普通系统),该外部设备连接表的描述如下:As shown in FIG. 2, an external device connection table according to an embodiment of the present invention (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level. Ordinary system), the description of the external device connection table is as follows:
1.外部设备连接表由安全等级较高的安全系统负责维护,其他系统不得修改外部设备连接表。1. The external device connection table is maintained by a security system with a higher security level. Other systems must not modify the external device connection table.
2.在每次有新的外设接入时,安全系统根据手机名称、手机识别号生成一个唯一的手机ID(对于同一个手机其ID是一样的,只需生成一次即可),用于识别手机;根据外设名称、外设识别号生成一个唯一的外设ID(设备标识信息),用于识别外设;同时,根据手机ID和外设ID生成一个关于外设的表项。2. Each time a new peripheral is accessed, the security system generates a unique mobile ID based on the name of the mobile phone and the identification number of the mobile phone (for the same mobile phone, the ID is the same, only one generation is required), for Identify the mobile phone; generate a unique peripheral ID (device identification information) based on the peripheral name and peripheral identification number to identify the peripheral; and, at the same time, generate an entry for the peripheral based on the mobile phone ID and the peripheral ID.
3.用户可以在每个外设的表项中设置该外设对应的默认接入系统,从而形成外部设备连接表。3. The user can set the default access system corresponding to the peripheral in each peripheral's entry to form an external device connection table.
图3示出了根据本发明的另一个实施例的外部设备连接方法的流程示意图。FIG. 3 is a flow chart showing a method of connecting external devices according to another embodiment of the present invention.
如图3所示,根据本发明的另一个实施例的外部设备连接方法(在该实施例中,终端为手机,手机中安装有双系统,即安全等级较高的安全系统和安全等级较低的普通系统),包括:As shown in FIG. 3, an external device connection method according to another embodiment of the present invention (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level. Ordinary system), including:
步骤302,发送外设的接入信息,以提示用户手机与外设连接。Step 302: Send access information of the peripheral device to prompt the user to connect the mobile phone to the peripheral device.
步骤304,根据外设的接入信息,在外部设备连接表中查询外设ID和手机ID。Step 304: Query the peripheral ID and the mobile phone ID in the external device connection table according to the access information of the peripheral device.
步骤306,根据外设ID和手机ID判断外部设备连接表中是否与外设ID对应的默认接入系统,当判断结果为是时,即存在与外设相对应的默认接入系统,进入步骤308,当判断结果为否时,即不存在与外设相对应的默认接入系统,进入步骤312。当然,在步骤306中,如果没有查询到外设ID,也进入步骤312。 Step 306: Determine, according to the peripheral ID and the mobile phone ID, whether the default access system corresponding to the peripheral ID is in the connection table of the external device. When the determination result is yes, there is a default access system corresponding to the peripheral, and the step of entering 308. When the determination result is no, that is, there is no default access system corresponding to the peripheral device, and the process proceeds to step 312. Of course, in step 306, if the peripheral ID is not queried, step 312 is also entered.
步骤308,判断与外设相对应的默认接入系统(预设连接系统)的当前状态是否正常,即判断默认接入系统是否处于休眠状态或关闭状态等,当判断结果为是时,进入步骤316,当判断结果为否时,进入步骤310。 Step 308, determining whether the current state of the default access system (preset connection system) corresponding to the peripheral device is normal, that is, determining whether the default access system is in a dormant state or a closed state, etc., when the determination result is yes, the step is entered. 316. When the determination result is no, the process proceeds to step 310.
步骤310,当与外设相对应的默认接入系统的当前状态不正常(例如:默认接入系统处于休眠状态或关闭状态)时,提示用户是否改变默认接入系统,当判断结果为是时,即用户希望通过改变默认接入系统来节省手机的用电量,从而延长外设接入系统的时间,进入步骤316,当判断结果为否时,结束外设与手机的连接。Step 310: When the current state of the default access system corresponding to the peripheral device is abnormal (for example, the default access system is in a dormant state or a closed state), prompting the user to change the default access system, when the judgment result is yes That is, the user wants to save the power consumption of the mobile phone by changing the default access system, thereby extending the time of the peripheral accessing the system, and proceeds to step 316, and when the judgment result is no, the connection between the peripheral device and the mobile phone is ended.
步骤312,当外部设备连接表中不存在与外设相对应的默认接入系统时,手机显示设置外部设备连接表的更改密钥的窗口,以使用户设置与外设相对应的默认接入系统,当用户输入正确的更改密钥时,进入步骤314,才允许用户设置外部设备连接表,避免手机接入非法外设,从而防止手机中安全等级较高的系统中的数据遭到泄漏,当判断结果为否时,结束外设与手机的连接。 Step 312, when there is no default access system corresponding to the peripheral device in the external device connection table, the mobile phone displays a window for setting a change key of the external device connection table, so that the user sets the default access corresponding to the peripheral device. The system, when the user inputs the correct change key, proceeds to step 314 to allow the user to set the external device connection table to prevent the mobile phone from accessing the illegal peripheral device, thereby preventing data leakage in the system with higher security level in the mobile phone. When the judgment result is no, the connection between the peripheral and the mobile phone is ended.
步骤314,当用户设置与外部设备相连的默认接入系统后,更新外部设备连接表。Step 314: After the user sets a default access system connected to the external device, the external device connection table is updated.
步骤316,将外设接入到默认接入系统。In step 316, the peripheral is connected to the default access system.
图4示出了根据本发明的一个实施例的外部设备连接装置的结构示意图。Fig. 4 is a block diagram showing the structure of an external device connecting device according to an embodiment of the present invention.
如图4所示,根据本发明的一个实施例的外部设备连接装置400,包括:判断单元402和第一处理单元404。判断单元402,用于当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;第一处理单元404,用于在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。As shown in FIG. 4, an external device connection device 400 according to an embodiment of the present invention includes a determination unit 402 and a first processing unit 404. The determining unit 402 is configured to: when the terminal receives the connection request of any external device, determine whether a preset connection system corresponding to the any external device already exists; the first processing unit 404 is configured to: Connecting any of the external devices to the preset connection system, otherwise, setting the preset connection system for any of the external devices according to the received setting command, wherein the preset connection system Is any of the plurality of systems.
在该技术方案中,当终端接收到任一外部设备的连接请求时,如果该任一外部设备已存在对应的预设连接系统,则将该任一外部设备连接至该预设连接系统,如果不存在对应的预设连接系统,则为该任一外部设备设 置预设连接系统,从而使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。例如:用户在安全等级较高的系统中拨打电话的同时,也可以使用外置摄像头在另一个安全等级较低的系统中拍照,或者,两个人用同一个终端时,其中一个人在安全等级较低的系统中使用有线耳机听歌的同时,另一个人在安全等级较高的系统中使用蓝牙耳机打电话。In the technical solution, when the terminal receives the connection request of any external device, if any corresponding external connection device exists in the external device, the external device is connected to the preset connection system, if If there is no corresponding preset connection system, then it is set for any external device. Preset the connection system so that different external devices can correspond to and access different systems, so that each preset connection system can manage the external devices of the respective systems, avoiding multiple systems sharing external devices, thereby avoiding security. The data of a higher-level system is leaked in the shared external device. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without affecting each other to improve the user's peripheral experience for multiple systems. For example, when a user makes a call in a system with a higher security level, he can also use an external camera to take a picture in another system with a lower security level, or when two people use the same terminal, one of them is at a security level. While using a wired headset to listen to songs in a lower system, another person uses a Bluetooth headset to make a call in a system with a higher security level.
在上述技术方案中,优选地,所述判断单元402具体用于:获取所述任一外部设备的设备名称和/或设备识别号;根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。In the foregoing technical solution, the determining unit 402 is specifically configured to: acquire a device name and/or a device identification number of any of the external devices; generate and generate according to the device name and/or the device identification number. Corresponding device identification information of any of the external devices; determining, according to the device identification information and the identification information of the terminal, whether the preset connection system corresponding to the device identification information exists, and the determination result is When it is determined that the preset connection system corresponding to any of the external devices already exists, otherwise, it is determined that the preset connection system corresponding to the any external device does not exist.
在该技术方案中,由于每个外部设备均对应一个唯一的设备标识信息,每个终端均对应一个唯一的终端的标识信息,因此,通过根据设备标识信息和终端的标识信息判断任一外部设备是否对应某个预设连接系统,可以确保判断结果的准确率,避免因为判断结果不准确,而导致该任一外部设备误连接至其他系统,进而导致其他系统的信息被泄露或误判断而任一外部设备不存在对应的预设连接系统。In this technical solution, each external device corresponds to a unique device identification information, and each terminal corresponds to a unique terminal identification information. Therefore, any external device is determined according to the device identification information and the identification information of the terminal. Whether it corresponds to a preset connection system can ensure the accuracy of the judgment result, and avoid any inaccurate connection of the external device to other systems because the judgment result is inaccurate, thereby causing the information of other systems to be leaked or misjudged. An external device does not have a corresponding preset connection system.
在上述技术方案中,优选地,还包括:存储单元406,根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及更改单元408,根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, the method further includes: a storage unit 406, configured to store, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where The target connection system is any one of the plurality of systems whose security level is higher than a preset security level; and the changing unit 408 changes the preset corresponding to the any external device according to the received change command Connect the system.
在该技术方案中,通过将任一外部设备与预设连接系统的对应关系存储在安全级别较高的目标连接系统中,可以确保两者之间的对应关系无法 被安全等级较低的系统或非法用户更改;当然,用户可以根据个人意愿和使用需求,更改任一外部设备所对应的预设连接系统,从而实现满足不同用户的使用需求。In this technical solution, by storing the correspondence between any external device and the preset connection system in the target connection system with a higher security level, it is ensured that the correspondence between the two cannot be It is changed by a system with a lower security level or an illegal user; of course, the user can change the preset connection system corresponding to any external device according to the individual's wishes and usage requirements, so as to meet the usage requirements of different users.
在上述技术方案中,优选地,第二处理单元410,在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。In the above technical solution, preferably, the second processing unit 410 acquires a change key, determines whether the change key is correct, and determines whether the change key is correct before changing the preset connection system corresponding to any of the external devices. When it is determined that the change key is correct, the preset connection system is allowed to be changed; otherwise, the preset connection system is prohibited from being changed.
在该技术方案中,在更改与该任一外部设备对应的预设连接系统之前,通过对更改密钥进行验证,可以有效地防止非法用户随意更改该任一外部设备可以接入的预设连接系统,确保任一外部设备与预设连接系统的对应关系无法被随意篡改。In the technical solution, by modifying the change key before the change of the preset connection system corresponding to the external device, the illegal user can be effectively prevented from changing the preset connection that any external device can access. The system ensures that the correspondence between any external device and the preset connection system cannot be arbitrarily tampered with.
在上述技术方案中,优选地,所述判断单元402还用于:在将所述任一外部设备连接至所述预设连接系统之前,判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。In the above technical solution, preferably, the determining unit 402 is further configured to: before connecting the any external device to the preset connection system, determine whether the preset connection system works normally, and determine When the result is YES, any of the external devices is connected to the preset connection system; otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
在该技术方案中,在将该任一外部设备连接至该预设连接系统之前,通过判断该预设连接系统是否正常工作,可以防止对该预设连接系统的当前状态造成不良影响,进而对终端的性能造成影响,例如:此时,为了省电,该预设连接系统当前状态可能为关闭或休眠状态,因此,在将该任一外部设备连接至该预设连接系统之前,可以提示用户是否更改与该任一外部设备对应的预设连接系统,以使该任一外部设备既可以接入当前正常工作的其他系统,也可以节省终端的电能。In the technical solution, before determining whether the external connection device is working properly, the external connection device can be prevented from being adversely affected by the current connection state of the preset connection system. The performance of the terminal is affected. For example, at this time, in order to save power, the current state of the preset connection system may be a shutdown or a sleep state, and therefore, the user may be prompted before connecting any external device to the preset connection system. Whether to change the preset connection system corresponding to any of the external devices, so that any of the external devices can access other systems that are currently working normally, and can also save power of the terminal.
图5示出了根据本发明的一个实施例的外部设备连接装置的原理结构示意图。FIG. 5 is a schematic block diagram showing the structure of an external device connecting device according to an embodiment of the present invention.
如图5所示,根据本发明的一个实施例的外部设备连接装置400(在该实施例中,终端为手机,手机中安装有双系统,即安全等级较高的安全系统和安全等级较低的普通系统),包括:As shown in FIG. 5, an external device connection device 400 according to an embodiment of the present invention (in this embodiment, the terminal is a mobile phone, and a dual system is installed in the mobile phone, that is, a security system with a higher security level and a lower security level. Ordinary system), including:
外设管理模块502,用于管理连接到手机上的外设,并且向表管理模 块506发送外设接入信息,另外,根据外设ID在外部设备连接表中的情况,将外设接入到对应的默认接入系统中。a peripheral management module 502, configured to manage peripheral devices connected to the mobile phone, and to the table management module Block 506 transmits peripheral access information and, in addition, accesses the peripheral to the corresponding default access system based on the presence of the peripheral ID in the external device connection table.
手机系统模块504,用于管理手机中的普通系统和安全系统,以及管理与各个系统对应的外设。The mobile phone system module 504 is configured to manage common systems and security systems in the mobile phone, and manage peripheral devices corresponding to the respective systems.
表管理模块506,维护设备连接表508,以及根据外设管理模块502发送的外设ID查询设备连接表并返回查询结果,另外,在查询设备连接表的同时,检测与外设对应的默认接入系统的运行状态。The table management module 506 maintains the device connection table 508 and queries the device connection table according to the peripheral ID sent by the peripheral management module 502 and returns the query result. In addition, when the device connection table is queried, the default connection corresponding to the peripheral device is detected. Enter the operating state of the system.
设备连接表508,用于记录手机ID、外设ID及相应外设的默认接入系统。The device connection table 508 is used to record the mobile phone ID, the peripheral ID, and the default access system of the corresponding peripheral.
图6示出了根据本发明的一个实施例的终端的结构示意图。FIG. 6 shows a schematic structural diagram of a terminal according to an embodiment of the present invention.
如图6所示,根据本发明的一个实施例的终端600,包括如上述任一项技术方案所述的外部设备连接装置400。As shown in FIG. 6, a terminal 600 according to an embodiment of the present invention includes the external device connecting device 400 according to any one of the above technical solutions.
在该技术方案中,通过在终端600上设置外部设备连接装置400,使得不同的外部设备可以对应并接入不同系统,进而使得每个预设连接系统均可以对各自系统的外部设备进行管理,避免多个系统共享外部设备,进而避免安全等级较高的系统的数据在共享外部设备中被泄露,同时,也可以使多个系统同时并行使用多个外设,且互不影响,以提高用户对多系统的外设使用体验。In this technical solution, by setting the external device connection device 400 on the terminal 600, different external devices can be corresponding to and access different systems, so that each preset connection system can manage the external devices of the respective systems. Avoid multiple systems sharing external devices, thus preventing data of systems with higher security levels from being leaked in shared external devices. At the same time, multiple systems can simultaneously use multiple peripherals in parallel without affecting each other to improve users. Experience with peripherals for multiple systems.
图7示出了根据本发明的实施例的终端的结构示意图。如图7所示,所述终端可以包括:至少一个收发装置503,至少一个处理器501,例如CPU,存储器504和至少一个通信总线502。FIG. 7 shows a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 7, the terminal may include at least one transceiver 503, at least one processor 501, such as a CPU, a memory 504, and at least one communication bus 502.
其中,上述通信总线502用于连接上述收发装置503、处理器501和存储器504。The communication bus 502 is configured to connect the transceiver 503, the processor 501, and the memory 504.
上述存储器504可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器504还用于存储一组程序代码,上述收发装置503和处理器501用于调用存储器504中存储的程序代码,执行如下操作:The above memory 504 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The memory 504 is further configured to store a set of program codes, and the transceiver 503 and the processor 501 are configured to call the program code stored in the memory 504, and perform the following operations:
所述收发装置503,用于接收任一外部设备的连接请求;The transceiver device 503 is configured to receive a connection request of any external device;
所述处理器201,用于在所述收发装置203接收到任一外部设备的连接 请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;The processor 201 is configured to receive a connection of any external device at the transceiver 203 When requesting, determining whether a preset connection system corresponding to any of the external devices already exists;
所述处理器501,还用于在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。The processor 501 is further configured to connect the any external device to the preset connection system when the determination result is yes, otherwise, set the location for the any external device according to the received setting command. The preset connection system, wherein the preset connection system is any one of the plurality of systems.
在上述技术方案中,优选地,所述处理器501判断是否已存在与所述任一外部设备对应的预设连接系统的步骤具体包括:In the above technical solution, preferably, the step of the processor 501 determining whether a preset connection system corresponding to the any external device already exists includes:
获取所述任一外部设备的设备名称和/或设备识别号;Obtaining the device name and/or device identification number of any of the external devices;
根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;Generating device identification information corresponding to any of the external devices according to the device name and/or the device identification number;
根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。Determining, according to the device identification information and the identifier information of the terminal, whether the preset connection system corresponding to the device identification information exists, and determining that the existing external device exists if the determination result is yes Corresponding to the preset connection system, otherwise, it is determined that there is no such preset connection system corresponding to any of the external devices.
在上述技术方案中,优选地,所述收发装置503,还用于接收存储指令和更改指令;In the above technical solution, preferably, the transceiver device 503 is further configured to receive a storage instruction and a change instruction;
所述处理器501,还用于根据所述收发装置503接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及The processor 501 is further configured to store, according to the storage command received by the transceiver 503, a correspondence between the any external device and the preset connection system in a target connection system, where the target The connection system is any one of the plurality of systems whose security level is higher than a preset security level;
所述处理器501,还用于根据所述收发装置503接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。The processor 501 is further configured to change, according to the change command received by the transceiver 503, the preset connection system corresponding to any of the external devices.
在上述技术方案中,优选地,所述处理器501还用于:In the above technical solution, preferably, the processor 501 is further configured to:
在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。Before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and allowing the change of the preset when determining that the change key is correct Connect the system, otherwise it is forbidden to change the preset connection system.
在上述技术方案中,优选地,所述处理器501还用于:In the above technical solution, preferably, the processor 501 is further configured to:
判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是 否更改与所述任一外部设备对应的所述预设连接系统。Determining whether the preset connection system works normally, and when the determination result is yes, connecting any of the external devices to the preset connection system; otherwise, issuing a prompt signal to prompt that Whether the preset connection system corresponding to any of the external devices is changed.
以上结合附图详细说明了本发明的技术方案,能够使不同外设对应并接入不同系统,使不同系统各自管理不同系统的接入外设,从而避免因为多个系统共享外设而导致安全等级较高的系统的数据泄露,同时,也可以使多个系统同时并行使用多个外设,以提高用户对多系统的外设使用体验。The technical solution of the present invention is described in detail above with reference to the accompanying drawings. Different peripheral devices can be correspondingly connected to different systems, so that different systems can respectively manage access peripherals of different systems, thereby avoiding security caused by sharing peripherals of multiple systems. Data leakage in higher-level systems can also enable multiple systems to use multiple peripherals in parallel at the same time to improve user experience with multiple systems.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred 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. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (15)

  1. 一种外部设备连接方法,用于终端,其特征在于,所述终端包括多个系统,所述方法包括:An external device connection method is provided for a terminal, wherein the terminal includes multiple systems, and the method includes:
    当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;When the terminal receives the connection request of any external device, it determines whether there is a preset connection system corresponding to any of the external devices;
    在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。When the determination result is yes, the any external device is connected to the preset connection system, otherwise, according to the received setting command, the preset connection system is set for any of the external devices, wherein The preset connection system is any one of the plurality of systems.
  2. 根据权利要求1所述的外部设备连接方法,其特征在于,The external device connection method according to claim 1, wherein
    所述判断是否已存在与所述任一外部设备对应的预设连接系统,具体包括:Determining whether a preset connection system corresponding to the any external device exists, specifically includes:
    获取所述任一外部设备的设备名称和/或设备识别号;Obtaining the device name and/or device identification number of any of the external devices;
    根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;Generating device identification information corresponding to any of the external devices according to the device name and/or the device identification number;
    根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。Determining, according to the device identification information and the identifier information of the terminal, whether the preset connection system corresponding to the device identification information exists, and determining that the existing external device exists if the determination result is yes Corresponding to the preset connection system, otherwise, it is determined that there is no such preset connection system corresponding to any of the external devices.
  3. 根据权利要求1所述的外部设备连接方法,其特征在于,还包括:The external device connection method according to claim 1, further comprising:
    根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及And storing, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, wherein the target connection system is a security level higher than a pre-determination in the multiple systems Any system with a security level; and
    根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。The preset connection system corresponding to any of the external devices is changed according to the received change command.
  4. 根据权利要求3所述的外部设备连接方法,其特征在于,The external device connection method according to claim 3, wherein
    在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。 Before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and allowing the change of the preset when determining that the change key is correct Connect the system, otherwise it is forbidden to change the preset connection system.
  5. 根据权利要求1至4中任一项所述的外部设备连接方法,其特征在于,The external device connection method according to any one of claims 1 to 4, characterized in that
    在将所述任一外部设备连接至所述预设连接系统之前,还包括:Before connecting any of the external devices to the preset connection system, the method further includes:
    判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。Determining whether the preset connection system works normally, and when the determination result is yes, connecting any of the external devices to the preset connection system; otherwise, issuing a prompt signal to prompt whether to change with any of the The preset connection system corresponding to the external device.
  6. 一种外部设备连接装置,用于终端,其特征在于,所述终端包括多个系统,所述装置包括:An external device connecting device is provided for a terminal, wherein the terminal comprises a plurality of systems, and the device comprises:
    判断单元,当终端接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;a determining unit, when the terminal receives a connection request of any external device, determining whether a preset connection system corresponding to the any external device already exists;
    第一处理单元,在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。The first processing unit, when the determination result is yes, connecting any of the external devices to the preset connection system, otherwise, setting the preset connection for any of the external devices according to the received setting command A system, wherein the preset connection system is any one of the plurality of systems.
  7. 根据权利要求6所述的外部设备连接装置,其特征在于,The external device connecting device according to claim 6, wherein
    所述判断单元具体用于:The determining unit is specifically configured to:
    获取所述任一外部设备的设备名称和/或设备识别号;Obtaining the device name and/or device identification number of any of the external devices;
    根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息;Generating device identification information corresponding to any of the external devices according to the device name and/or the device identification number;
    根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。Determining, according to the device identification information and the identifier information of the terminal, whether the preset connection system corresponding to the device identification information exists, and determining that the existing external device exists if the determination result is yes Corresponding to the preset connection system, otherwise, it is determined that there is no such preset connection system corresponding to any of the external devices.
  8. 根据权利要求6所述的外部设备连接装置,其特征在于,还包括:The external device connection device according to claim 6, further comprising:
    存储单元,根据接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及a storage unit, configured to store, according to the received storage command, a correspondence between the any external device and the preset connection system in a target connection system, where the target connection system is a security level in the multiple systems Any system that is above the preset security level; and
    更改单元,根据接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。 The changing unit changes the preset connection system corresponding to any of the external devices according to the received change command.
  9. 根据权利要求8所述的外部设备连接装置,其特征在于,The external device connecting device according to claim 8, wherein
    第二处理单元,在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。a second processing unit, before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and allowing the change key to be correct The preset connection system is changed, otherwise, the preset connection system is prohibited from being changed.
  10. 根据权利要求6至9中任一项所述的外部设备连接装置,其特征在于,The external device connecting device according to any one of claims 6 to 9, wherein
    所述判断单元还用于:在将所述任一外部设备连接至所述预设连接系统之前,判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。The determining unit is further configured to: determine whether the preset connection system works normally before connecting the any external device to the preset connection system, and when the determination result is yes, The external device is connected to the preset connection system, otherwise, a prompt signal is issued to prompt whether to change the preset connection system corresponding to any of the external devices.
  11. 一种终端,其特征在于,所述终端包括多个系统,且所述终端包括通信总线、收发装置、存储器以及处理器,其中:A terminal, wherein the terminal comprises a plurality of systems, and the terminal comprises a communication bus, a transceiver, a memory, and a processor, wherein:
    所述通信总线,用于实现所述收发装置、所述存储器以及所述处理器之间的连接通信;The communication bus is configured to implement connection communication between the transceiver device, the memory, and the processor;
    所述存储器中存储一组程序代码,且所述收发装置和所述处理器调用存储器中存储的程序代码,用于执行以下操作:The program stores a set of program codes, and the transceiver device and the processor call program code stored in the memory to perform the following operations:
    所述收发装置,用于接收任一外部设备的连接请求;The transceiver device is configured to receive a connection request of any external device;
    所述处理器,用于在所述收发装置接收到任一外部设备的连接请求时,判断是否已存在与所述任一外部设备对应的预设连接系统;The processor is configured to determine, when the transceiver device receives a connection request of any external device, whether a preset connection system corresponding to the any external device already exists;
    所述处理器,还用于在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,根据接收到的设置命令,为所述任一外部设备设置所述预设连接系统,其中,所述预设连接系统为所述多个系统中的任一系统。The processor is further configured to connect the any external device to the preset connection system when the determination result is yes, otherwise, set the foregoing for the any external device according to the received setting command. A preset connection system, wherein the preset connection system is any one of the plurality of systems.
  12. 如权利要求11所述的终端,其特征在于,所述处理器判断是否已存在与所述任一外部设备对应的预设连接系统的步骤具体包括:The terminal according to claim 11, wherein the step of determining, by the processor, whether a preset connection system corresponding to the any external device already exists comprises:
    获取所述任一外部设备的设备名称和/或设备识别号;Obtaining the device name and/or device identification number of any of the external devices;
    根据所述设备名称和/或所述设备识别号生成与所述任一外部设备相应的设备标识信息; Generating device identification information corresponding to any of the external devices according to the device name and/or the device identification number;
    根据所述设备标识信息和所述终端的标识信息,判断是否存在与所述设备标识信息相应的所述预设连接系统,并在判断结果为是时,判定已存在与所述任一外部设备对应的所述预设连接系统,否则,判定不存在与所述任一外部设备对应的所述预设连接系统。Determining, according to the device identification information and the identifier information of the terminal, whether the preset connection system corresponding to the device identification information exists, and determining that the existing external device exists if the determination result is yes Corresponding to the preset connection system, otherwise, it is determined that there is no such preset connection system corresponding to any of the external devices.
  13. 如权利要求11所述的终端,其特征在于,The terminal of claim 11 wherein:
    所述收发装置,还用于接收存储指令和更改指令;The transceiver device is further configured to receive a storage instruction and a change instruction;
    所述处理器,还用于根据所述收发装置接收到的存储命令,将所述任一外部设备与所述预设连接系统的对应关系存储在目标连接系统中,其中,所述目标连接系统为所述多个系统中安全级别高于预设安全级别的任一系统;以及The processor is further configured to store, according to the storage command received by the transceiver device, a correspondence between the any external device and the preset connection system in a target connection system, where the target connection system Any of the plurality of systems having a security level higher than a preset security level;
    所述处理器,还用于根据所述收发装置接收到的更改命令,更改与所述任一外部设备对应的所述预设连接系统。The processor is further configured to change the preset connection system corresponding to any of the external devices according to the change command received by the transceiver.
  14. 如权利要求13所述的终端,其特征在于,所述处理器还用于:The terminal according to claim 13, wherein the processor is further configured to:
    在更改与所述任一外部设备对应的所述预设连接系统之前,获取更改密钥,判断所述更改密钥是否正确,并在判定所述更改密钥正确时,允许更改所述预设连接系统,否则,禁止更改所述预设连接系统。Before changing the preset connection system corresponding to any of the external devices, acquiring a change key, determining whether the change key is correct, and allowing the change of the preset when determining that the change key is correct Connect the system, otherwise it is forbidden to change the preset connection system.
  15. 如权利要求11-14任一项所述的终端,其特征在于,所述处理器还用于:The terminal according to any one of claims 11 to 14, wherein the processor is further configured to:
    判断所述预设连接系统是否正常工作,并在判断结果为是时,将所述任一外部设备连接至所述预设连接系统,否则,发出提示信号,以提示是否更改与所述任一外部设备对应的所述预设连接系统。 Determining whether the preset connection system works normally, and when the determination result is yes, connecting any of the external devices to the preset connection system; otherwise, issuing a prompt signal to prompt whether to change with any of the The preset connection system corresponding to the external device.
PCT/CN2015/080403 2015-05-20 2015-05-29 External device connection method, external device connection apparatus and terminal WO2016183871A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510258883.0A CN105636027A (en) 2015-05-20 2015-05-20 Connection method for external equipment, connection device for external equipment and terminal
CN201510258883.0 2015-05-20

Publications (1)

Publication Number Publication Date
WO2016183871A1 true WO2016183871A1 (en) 2016-11-24

Family

ID=56050418

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080403 WO2016183871A1 (en) 2015-05-20 2015-05-29 External device connection method, external device connection apparatus and terminal

Country Status (2)

Country Link
CN (1) CN105636027A (en)
WO (1) WO2016183871A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110331A1 (en) * 2001-12-07 2003-06-12 International Business Machines Corporation; Apparatus, method and program product for initiating computer system operation
CN101452405A (en) * 2007-11-28 2009-06-10 张勇 Method for time-sharing using fixed t peripheral device for multiple operating systems
US20090300660A1 (en) * 2008-05-30 2009-12-03 Solomon Richard L Paravirtualization acceleration through single root I/O virtualization
CN104102611A (en) * 2013-04-01 2014-10-15 深圳市天方信安电子科技有限公司 Electronic device with dual systems

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620471B (en) * 2009-08-07 2011-06-15 福建升腾资讯有限公司 Method for realizing single host computer with multiple systems
CN104102497B (en) * 2013-04-02 2017-08-25 中国银联股份有限公司 The equipment and its loading method of system management facility interacted for safety information
CN103778366B (en) * 2013-11-30 2017-05-03 北京中启智源数字信息技术有限责任公司 Security maintenance method oriented to operating system and peripheral equipment
CN104462905B (en) * 2014-12-18 2018-12-25 宇龙计算机通信科技(深圳)有限公司 Data processing method, data processing equipment and the terminal of operating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110331A1 (en) * 2001-12-07 2003-06-12 International Business Machines Corporation; Apparatus, method and program product for initiating computer system operation
CN101452405A (en) * 2007-11-28 2009-06-10 张勇 Method for time-sharing using fixed t peripheral device for multiple operating systems
US20090300660A1 (en) * 2008-05-30 2009-12-03 Solomon Richard L Paravirtualization acceleration through single root I/O virtualization
CN104102611A (en) * 2013-04-01 2014-10-15 深圳市天方信安电子科技有限公司 Electronic device with dual systems

Also Published As

Publication number Publication date
CN105636027A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US11800004B2 (en) Executing applications in conjunction with other devices
US10402572B2 (en) Method and apparatus for selecting mode of terminal
KR102076280B1 (en) Method and apparatus for performing communication of electronic device in mobile communicatino system
US9544726B2 (en) Adding location names using private frequent location data
US10777205B2 (en) Voice control processing method and apparatus
US9519784B2 (en) Managing basic input/output system (BIOS) access
WO2015043420A1 (en) Permission control method and device
EP2911084B1 (en) Service authorization methods and apparatuses
WO2016082194A1 (en) Message processing method and apparatus
US9891969B2 (en) Method and apparatus for device state based encryption key
KR102107132B1 (en) Access point connection method of electronic apparatus and electronic appparatus thereof
US10002528B2 (en) IR communication method and electronic device thereof
US11030143B2 (en) System for sharing content between electronic devices, and content sharing method for electronic device
KR102110257B1 (en) Electronic device controlling external device using dial and method thereof
KR102157858B1 (en) Apparatas and method for reducing a power consumption in an electronic device
US10516699B2 (en) Electronic device and method for suggesting response manual in occurrence of denial
US10284614B2 (en) Method for downloading contents of electronic device and electronic device thereof
US20150121474A1 (en) Processor security authentication area
US20160330251A1 (en) Method and device for sharing connection information in electronic device
EP3662399B1 (en) Electronic device and control method thereof
WO2016183871A1 (en) External device connection method, external device connection apparatus and terminal
US20150220720A1 (en) Electronic device and method for controlling access to given area thereof
US20160188244A1 (en) Apparatus and method for providing security for memory in electronic device
US10216944B2 (en) Method for executing access control over electronic device and electronic device capable of executing access control
KR102165165B1 (en) Apparatas and method for reducing a current sinking of the time a roaming in an electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15892250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/04/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15892250

Country of ref document: EP

Kind code of ref document: A1