WO2017035994A1 - 外接设备的连接方法及装置 - Google Patents

外接设备的连接方法及装置 Download PDF

Info

Publication number
WO2017035994A1
WO2017035994A1 PCT/CN2015/097796 CN2015097796W WO2017035994A1 WO 2017035994 A1 WO2017035994 A1 WO 2017035994A1 CN 2015097796 W CN2015097796 W CN 2015097796W WO 2017035994 A1 WO2017035994 A1 WO 2017035994A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyboard
external
type
external device
module
Prior art date
Application number
PCT/CN2015/097796
Other languages
English (en)
French (fr)
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 小米科技有限责任公司
Priority to MX2016003768A priority Critical patent/MX359490B/es
Priority to KR1020167004077A priority patent/KR101813413B1/ko
Priority to RU2016113844A priority patent/RU2649936C2/ru
Priority to JP2017537001A priority patent/JP2017530493A/ja
Publication of WO2017035994A1 publication Critical patent/WO2017035994A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0227Cooperation and interconnection of the input arrangement with other functional units of a computer
    • 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
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/724092Interfacing with an external cover providing additional functionalities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0231Cordless keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • G06F3/0219Special purpose keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • H04L5/0055Physical resource allocation for ACK/NACK
    • 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
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/18Details of telephonic subscriber devices including more than one keyboard unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/70Details of telephonic subscriber devices methods for entering alphabetical characters, e.g. multi-tap or dictionary disambiguation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • the present disclosure relates to the field of device connection technologies, and in particular, to a connection method and device for an external device.
  • the user can take a photo by touching the electronic shutter on the Bluetooth selfie stick.
  • An embodiment of the present disclosure provides a method and an apparatus for connecting an external device, including the following technical solutions:
  • a method for connecting an external device includes:
  • the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • the description information of the external device is set according to the keyboard usage mode of the external device.
  • the acquiring the description information of the external device includes:
  • the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • an external keyboard device type of the external device including:
  • the external keyboard device type of the external device is a numeric keyboard type; the numeric keyboard type is a soft keyboard that allows the smart terminal to pop up an input method when inputting.
  • the acquiring the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the acquiring the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the device declaration and connection of the external device is completed according to the type of the external keyboard device, including:
  • the method further includes:
  • the external keyboard device type of the external device is a numeric keyboard type
  • a soft keyboard of the input method is popped up, and an input operation is performed using the soft keyboard of the input method
  • the keyboard of the external device is used for input operation.
  • a method for connecting an external device includes:
  • Descriptive information is reported when a connection with the smart terminal is detected
  • connection with the smart terminal is completed according to the description information.
  • the method further includes:
  • the description information is set according to the keyboard usage mode of the external device.
  • the setting information according to the keyboard usage mode of the external device includes:
  • keyboard service discovery protocol record information Setting keyboard service discovery protocol record information according to a keyboard usage mode of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • the keyboard service discovery protocol record information states that the external device supports a preset letter button; when the external device device type of the external device is In the case of the numeric keypad type, the keyboard service discovery protocol record information states that the external device does not support the preset letter button.
  • setting the description information according to a keyboard usage manner of the external device including:
  • the external keyboard device type of the external device when the external keyboard device type of the external device is a full keyboard type, a correspondence between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type And establishing a correspondence between the vendor identification information and the numeric keyboard type.
  • setting the description information according to a keyboard usage manner of the external device including:
  • the switch state of the external keyboard device type identifier of the external device is set to a first switch state; when the external keyboard device type of the external device is In the case of the numeric keypad type, the switch state of the external keyboard device type identifier of the external device is set to the second switch state.
  • the method further includes:
  • the home keyboard is activated for the smart terminal to perform an input operation.
  • connection device for an external device including:
  • An obtaining module configured to acquire description information of the external device when detecting that an external device is connected
  • a determining module configured to determine an external keyboard device type of the external device according to the description information of the external device acquired by the acquiring module
  • connection module configured to complete device declaration and connection of the external device according to the type of the external keyboard device determined by the determining module.
  • the description information of the external device is set according to the keyboard usage mode of the external device.
  • the obtaining module comprises:
  • a first obtaining submodule configured to obtain keyboard service discovery protocol record information of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • the determining module includes:
  • a determining sub-module configured to determine, according to the keyboard service discovery protocol record information acquired by the first acquiring sub-module, whether the external device supports a preset letter button;
  • a first determining submodule configured to: when the determining submodule determines that the external device supports the preset letter button, determine that the external keyboard device type of the external device is a full keyboard type;
  • a second determining submodule configured to: when the determining submodule determines that the external device does not support the preset letter button, determine that the external keyboard device type of the external device is a numeric keyboard type; Allows the smart terminal to pop up the soft keyboard of the input method when inputting.
  • the obtaining module comprises:
  • a second obtaining submodule configured to acquire vendor identification information of the external device
  • the determining module includes:
  • a first search sub-module configured to search for an external keyboard device type corresponding to vendor identification information of the external device acquired by the second acquiring sub-module in a corresponding relationship between the preset vendor identification information and the external keyboard device type;
  • a third determining submodule configured to: when the type of the external keyboard device found by the first searching submodule is a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • a fourth determining submodule configured to determine that the external keyboard device type of the external device is a full keyboard type when the external keyboard device type found by the first search submodule is a full keyboard class.
  • the obtaining module comprises:
  • a third obtaining submodule configured to acquire a switch state of an external keyboard device type identifier of the external device, where the external keyboard device type identifier is used to identify the external keyboard device type by using a switch state;
  • the determining module includes:
  • a second search sub-module configured to search for an external keyboard device type identifier of the external device acquired by the third acquiring sub-module in a correspondence between a switch state of the preset external keyboard device type identifier and an external keyboard device type The type of the external keyboard device corresponding to the switch state;
  • a fifth determining submodule configured to determine, when the external keyboard device type found by the second search submodule is a numeric keyboard type, that the external keyboard device type of the external device is a numeric keyboard type;
  • the sixth determining submodule is configured to determine that the external keyboard device type of the external device is a full keyboard type when the external keyboard device type found by the second search submodule is a full keyboard class.
  • connection module comprises:
  • connection submodule is configured to complete the device declaration of the external device according to the external keyboard device type, and complete a wireless connection with the external device.
  • the apparatus further includes:
  • a type judging module configured to determine an external keyboard device type of the external device when an input operation is required
  • a first processing module configured to: when the type determining module determines that the external keyboard device type of the external device is a numeric keyboard type, pop up a soft keyboard of the input method, and use the soft keyboard of the input method to perform an input operation;
  • the second processing module is configured to perform an input operation by using a keyboard of the external device when the type determining module determines that the external keyboard device type of the external device is a full keyboard type.
  • a connection device for an external device including:
  • the reporting module is configured to report the description information when detecting the connection with the smart terminal
  • the connection module is configured to complete the connection with the smart terminal according to the description information reported by the reporting module.
  • the apparatus further includes:
  • a setting module configured to set description information according to a keyboard usage manner of the external device before the connection module is connected to the smart terminal.
  • the setting module comprises:
  • a first setting submodule configured to set a keyboard service discovery protocol record information according to a keyboard usage manner of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • the keyboard service discovery protocol record information states that the external device supports a preset letter button; when the external device device type of the external device is a number In the keyboard type, the keyboard service discovery protocol record information states that the external device does not support the preset letter button.
  • the setting module comprises:
  • Creating a sub-module configured to create a correspondence between vendor identification information of the external device and an external keyboard device type of the external device according to a keyboard usage manner of the external device;
  • the external keyboard device type of the external device when the external keyboard device type of the external device is a full keyboard type, a correspondence between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type And establishing a correspondence between the vendor identification information and the numeric keyboard type.
  • the setting module comprises:
  • a second setting submodule configured to set a switch state of an external keyboard device type identifier of the external device according to a keyboard usage manner of the external device
  • the switch state of the external keyboard device type identifier of the external device is set to a first switch state; when the external keyboard device type of the external device is In the case of the numeric keypad type, the switch state of the external keyboard device type identifier of the external device is set to the second switch state.
  • the apparatus further includes:
  • the startup module is configured to start a keyboard of the smart terminal for input operation when receiving the keyboard usage indication of the smart terminal.
  • a connection device for an external device includes:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • connection device for an external device including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • Descriptive information is reported when a connection with the smart terminal is detected
  • connection with the smart terminal is completed according to the description information.
  • the description information of the external device is obtained, and the external keyboard device type of the external device is determined according to the description information of the external device, that is, whether the external device is a full keyboard type or a numeric keyboard type.
  • the device declaration and connection of the external device are completed, so that when the device such as the smart terminal is connected with the external device, if the user needs to perform an input operation, the soft keyboard using the input method can be determined according to the type of the external keyboard device. Whether the input operation or the input operation is performed by the external device ensures that the user can perform the input operation normally and improve the user experience.
  • FIG. 1 is a flowchart of a connection method of an external device according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a connection method of another external device according to an exemplary embodiment.
  • FIG. 3 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 4 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 5 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 6 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 7 is a flowchart of a connection method of an external device according to an exemplary embodiment.
  • FIG. 8 is a flowchart of a connection method of another external device according to an exemplary embodiment.
  • FIG. 9 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 10 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 11 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 12 is a flowchart of still another connection method of an external device according to an exemplary embodiment.
  • FIG. 13 is a block diagram of a connection device of an external device, according to an exemplary embodiment.
  • FIG. 14 is a block diagram of an acquisition module in a connection device of an external device, according to an exemplary embodiment.
  • FIG. 15 is a block diagram of a determining module in a connecting device of an external device according to an exemplary embodiment.
  • FIG. 16 is a block diagram of an acquisition module in a connection device of another external device according to an exemplary embodiment.
  • FIG. 17 is a block diagram of a determining module in a connecting device of another external device according to an exemplary embodiment.
  • FIG. 18 is a block diagram of an acquisition module in a connection device of still another external device according to an exemplary embodiment.
  • FIG. 19 is a block diagram of a determination module in a connection device of still another external device according to an exemplary embodiment.
  • FIG. 20 is a block diagram of a connection module in a connection device of an external device, according to an exemplary embodiment.
  • FIG. 21 is a block diagram of a connection device of another external device according to an exemplary embodiment.
  • FIG. 22 is a block diagram of a connection device of an external device, according to an exemplary embodiment.
  • FIG. 23 is a block diagram of a connection device of another external device according to an exemplary embodiment.
  • FIG. 24 is a block diagram of a setting module in a connection device of an external device according to an exemplary embodiment.
  • FIG. 25 is a block diagram of a setting module in a connection device of another external device according to an exemplary embodiment.
  • FIG. 26 is a block diagram of a setting module in a connection device of still another external device according to an exemplary embodiment.
  • FIG. 27 is a block diagram of a connection device of still another external device according to an exemplary embodiment.
  • FIG. 28 is a block diagram of a connection device suitable for an external device, according to an exemplary embodiment.
  • An embodiment of the present disclosure provides a method for connecting an external device.
  • the method can be used in a terminal device that needs to be connected to an external device. As shown in FIG. 1, the method includes steps S101-S103:
  • step S101 when it is detected that there is an external device to connect, the description information of the external device is obtained; in one embodiment, the description information of the external device is set according to the keyboard usage mode of the external device.
  • step S102 determining an external keyboard device type of the external device according to the description information of the external device;
  • step S103 the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • the description information of the external device is obtained, and the type of the external keyboard device of the external device is determined according to the description information of the external device, that is, whether the external device is a full keyboard type or a number.
  • the type of the keyboard, and then the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • the device such as the smart terminal is connected to the external device, if the user needs to perform an input operation on the smart terminal, the device can be determined according to the type of the external keyboard device. Whether the input operation is performed by using the soft keyboard of the input method or the input operation by the external device, thereby ensuring that the user can perform the input operation normally and improve the user experience.
  • the obtaining the description information of the external device in step S101 includes step S201:
  • step S201 the keyboard service discovery protocol record information of the external device is obtained, and the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • step S102 includes steps S202-S204:
  • step S202 it is determined whether the external device supports the preset letter button according to the keyboard service discovery protocol record information; wherein the preset letter button may be a letter button on the keyboard, such as a Q button.
  • step S203 when the external device supports the preset letter button, it is determined that the external keyboard device type of the external device is a full keyboard type; wherein the full keyboard type is a soft keyboard that does not allow the smart terminal to pop up the input method when inputting.
  • step S204 when the external device does not support the preset letter button, the external keyboard device of the external device is determined.
  • the type is a numeric keyboard type; the numeric keyboard type is a soft keyboard that allows the smart terminal to pop up the input method when inputting.
  • the external keyboard device type is determined by determining whether the external device supports the preset alphabetic button, and whether the input operation is performed by using the soft keyboard of the input method or the input operation by the external device according to the type of the external keyboard device, thereby ensuring the user It can be input normally to enhance the user experience.
  • the external device is a Bluetooth self-timer, and according to the service discovery protocol record information, it is determined that it does not support the preset letter button.
  • the preset letter button includes but is not limited to the Q button. If the Q button is not supported, the Bluetooth self-timer can be determined at this time.
  • the external keyboard device type of the lever is a numeric keypad type, which allows the soft keyboard of the input method to be popped when input is required, thereby ensuring that the user can input normally when using the Bluetooth selfie stick.
  • the obtaining the description information of the external device in step S101 includes the following step S301:
  • step S301 acquiring vendor identification information of the external device
  • step S102 includes steps S302-S304:
  • step S302 searching for the external keyboard device type corresponding to the vendor identification information of the external device in the corresponding relationship between the preset manufacturer identification information and the external keyboard device type;
  • step S303 when the type of the external keyboard device is found to be a numeric keyboard type, the external keyboard device type of the external device is determined to be a numeric keyboard type; and the numeric keyboard type is a soft keyboard that allows the smart terminal to pop up the input method when inputting.
  • step S304 when the found external keyboard device type is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the full keyboard type is a soft keyboard that does not allow the smart terminal to pop up the input method when inputting.
  • the vendor identification information may be different for different external devices.
  • the manufacturer identification information of the Bluetooth selfie stick and the external keyboard may be different. Therefore, different manufacturer identification information and the corresponding external keyboard device type may be preset, such as The manufacturer identification information of the Bluetooth selfie stick corresponds to the numeric keypad type, and the manufacturer identification information of the external keyboard corresponds to the full keyboard type, and then when the external device needs to be accessed, the manufacturer identification information is obtained, and the external keyboard belongs to the manufacturer according to the manufacturer identification information. Equipment type.
  • the external keyboard device type is determined according to the preset manufacturer identification information of the external device, and whether the input operation is performed by using the soft keyboard of the input method or the input operation by the external device according to the type of the external keyboard device, thereby ensuring the user Input operations can be performed normally to enhance the user experience.
  • the obtaining the description information of the external device in step S101 includes step S401:
  • step S401 the switch state of the external keyboard device type identifier of the external device is obtained, and the external keyboard device type identifier is used to identify the external keyboard device type by using the switch state;
  • step S102 includes steps S402-S404:
  • step S402 searching for the external keyboard device type corresponding to the switch state of the external keyboard device type identifier of the external device in the corresponding relationship between the switch state of the preset external keyboard device type identifier and the external keyboard device type;
  • step S403 when the type of the external keyboard device found is a numeric keyboard type, it is determined that the external keyboard device type of the external device is a numeric keyboard type;
  • step S404 when the found external keyboard device type is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the external keyboard device type may also be determined according to the switch state of the external keyboard device type identifier of the external device, wherein the switch state of the external keyboard device type identifier may include an open state and a closed state, and may be preset as an external connection.
  • the switch state of the keyboard device type identifier is on, the corresponding external keyboard device type is a full keyboard type, and when the switch state of the external keyboard device type identifier is off, the corresponding external keyboard device type is a numeric keyboard type.
  • the external keyboard device type is determined according to the switch state of the external keyboard device type identification of the external device, and according to the external keyboard device type, whether the soft keyboard of the input method is used for input operation or the external device performs input operation, thereby ensuring that the user can be normal. Perform input operations to enhance the user experience.
  • step S103 includes step S501:
  • step S501 the device declaration of the external device is completed according to the type of the external keyboard device, and the wireless connection with the external device is completed.
  • the external device may be a wireless external device. Therefore, the device such as the terminal can complete the wireless connection with the external device according to the external keyboard device type of the external device, and the statement of the external device, thereby ensuring the external device. Normal use, while ensuring the normal use of the soft keyboard of the input method.
  • the foregoing method further includes steps S601-S603:
  • step S601 when an input operation is required, determining an external keyboard device type of the external device;
  • step S602 when the external keyboard device type of the external device is a numeric keyboard type, the soft keyboard of the input method is popped up, and the input operation is performed using the soft keyboard of the input method;
  • step S603 when the external keyboard device type of the external device is the full keyboard type, the input operation is performed using the keyboard of the external device.
  • an input operation when an input operation is required, an input operation may be determined according to an external keyboard device type of the external device.
  • the external keyboard device type of the external device is a numeric keyboard type
  • the soft keyboard of the input method is popped up, and the input is used.
  • the soft keyboard of the method performs an input operation, and when the external keyboard device type of the external device is a full keyboard type, the keyboard of the external device is used for input operation. In this way, it is guaranteed that the input operation can be performed normally regardless of the type of the external device.
  • the embodiment of the present disclosure further provides a connection method of an external device, which can be used in an external device (such as an external keyboard, a wireless selfie stick, etc.). As shown in FIG. 7, the method includes steps S701-S702:
  • step S701 when detecting connection with the smart terminal, the description information is reported;
  • step S702 the connection with the smart terminal is completed according to the description information.
  • the external device may report the description information to the smart terminal to complete the connection with the smart terminal according to the description information.
  • the foregoing method further includes step S801:
  • step S801 before the connection with the smart terminal, the description information is set according to the keyboard usage mode of the external device.
  • the description information is set according to the keyboard usage mode of the external device, so that the description information of all the external devices can be prevented from being set to the description information corresponding to the full keyboard type by default, so that the input cannot be used when the external device is used.
  • the problem with the soft keyboard of the law occurs. In this way, it is guaranteed that the user can perform the input operation normally regardless of the type of the external device.
  • the description information is set according to the keyboard usage mode of the external device in the above step S801, including step S901:
  • step S901 the keyboard service discovery protocol record information is set according to the keyboard usage mode of the external device, and the keyboard service discovery protocol record information is used to declare the button supported by the external device;
  • the keyboard service discovery protocol record information indicates that the external device supports the preset letter button; when the external keyboard device type of the external device is the numeric keyboard type, the keyboard service discovery protocol The record information states that the external device does not support the preset letter button.
  • the keyboard service discovery protocol record information may be set according to the keyboard usage mode of the external device, wherein the keyboard service discovery protocol record information is used to declare a button supported by the external device, so that the external device needs which buttons, Declare which keys it supports.
  • the external device is a Bluetooth selfie stick, it does not need full keyboard input, then it can be determined that its type is a numeric keyboard type. In this case, it can be declared in its keyboard service discovery protocol record information.
  • Which keys are not supported such as the letter Q key is not supported, so when it is connected with other terminals and other devices, the external keyboard device type of the external device is determined according to the keyboard service discovery protocol record information, and if the user needs to input the operation, the external keyboard can be used according to the external keyboard.
  • the device type determines whether the input keyboard is allowed to be input using the soft keyboard of the input method, thereby ensuring the normal use of the input method and improving the user experience.
  • the description information is set according to the keyboard usage mode of the external device in the above step S801, including step S1001:
  • step S1001 the correspondence between the manufacturer identification information of the external device and the external keyboard device type of the external device is created according to the keyboard usage mode of the external device;
  • the external keyboard device type of the external device when the external keyboard device type of the external device is a full keyboard type, a correspondence relationship between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type, the manufacturer identification information and the number are created.
  • the correspondence between keyboard types when the external keyboard device type of the external device is a full keyboard type, a correspondence relationship between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type, the manufacturer identification information and the number are created.
  • the vendor identification information may be different for different external devices.
  • the manufacturer identification information of the Bluetooth selfie stick and the external keyboard may be different. Therefore, different vendor identification information and an external keyboard corresponding thereto may be preset.
  • the device type for example, the manufacturer identification information of the Bluetooth selfie stick corresponds to the numeric keypad type, and the manufacturer identification information of the external keyboard corresponds to the full keyboard type, and then when the external device needs to be accessed, the manufacturer identification information is obtained, and the manufacturer identification information is determined according to the manufacturer identification information.
  • step S801 is set according to the keyboard usage mode of the external device.
  • Descriptive information including step S1101:
  • step S1101 the switch state of the external keyboard device type identifier of the external device is set according to the keyboard usage mode of the external device;
  • the switch state of the external keyboard device type identifier of the external device is set to the first switch state; when the external keyboard device type of the external device is the numeric keyboard type, The switch state of the external keyboard device type identifier of the external device is set to the second switch state.
  • the switch state of the external keyboard device type identifier of the external device may include a first switch state and a second switch state (such as an open state and a closed state), and may be preset when the switch state of the external keyboard device type identifier is In the first switch state, the corresponding external keyboard device type is a full keyboard type.
  • the switch state of the external keyboard device type identifier is the second switch state, the corresponding external keyboard device type is a numeric keyboard type.
  • the foregoing method further includes step S1201:
  • step S1201 when the keyboard usage indication of the smart terminal is received, the keyboard is activated for the smart terminal to perform an input operation.
  • the external device when receiving the keyboard usage indication of the smart terminal, the external device starts the keyboard for the smart terminal to perform an input operation, and when the keyboard usage indication is not received, the smart terminal can use the soft keyboard of the input method. Input operation, in this way, can ensure that the input operation can be performed normally regardless of the type of external device.
  • FIG. 13 is a block diagram of a connection device of an external device, which may be implemented as part or all of a terminal device by software, hardware, or a combination of both, according to an exemplary embodiment.
  • the connection device of the external device includes:
  • the obtaining module 1301 is configured to acquire description information of the external device when detecting that an external device is connected;
  • the determining module 1302 is configured to determine an external keyboard device type of the external device according to the description information of the external device acquired by the obtaining module 1302;
  • connection module 1303 is configured to complete the device declaration and connection of the external device according to the external keyboard device type determined by the determining module 1302.
  • the description information of the external device is set according to the keyboard usage mode of the external device.
  • the obtaining module 1301 includes:
  • the first obtaining submodule 1401 is configured to acquire keyboard service discovery protocol record information of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device.
  • the determining module 1302 includes:
  • the determining sub-module 1501 is configured to determine, according to the keyboard service discovery protocol record information acquired by the first obtaining sub-module 1401, whether the external device supports a preset letter button;
  • the first determining sub-module 1502 is configured to: when the determining sub-module 1501 determines that the external device supports the preset alphabetic button, determine that the external keyboard device type of the external device is a full keyboard type;
  • the second determining sub-module 1503 is configured to: when the determining sub-module 1501 determines that the external device does not support the preset letter button, determine that the external keyboard device type of the external device is a numeric keyboard type; The type is a soft keyboard that allows the smart terminal to pop up the input method when inputting.
  • the obtaining module 1301 includes:
  • the second obtaining submodule 1601 is configured to acquire vendor identification information of the external device
  • the determining module 1302 includes:
  • the first search sub-module 1701 is configured to search for an external keyboard device type corresponding to the vendor identification information of the external device acquired by the second acquisition sub-module in the corresponding relationship between the preset vendor identification information and the external keyboard device type;
  • the third determining sub-module 1702 is configured to determine that the external keyboard device type of the external device is a numeric keyboard type when the external keyboard device type found by the searching sub-module is a numeric keyboard type;
  • the fourth determining sub-module 1703 is configured to determine that the external keyboard device type of the external device is a full keyboard type when the external keyboard device type found by the first searching sub-module is a full keyboard class.
  • the obtaining module 1301 includes:
  • the third obtaining sub-module 1801 is configured to acquire a switch state of an external keyboard device type identifier of the external device, where the external keyboard device type identifier is used to identify the external keyboard device type by using a switch state;
  • the determining module 1302 includes:
  • the second search sub-module 1901 is configured to search for an external keyboard device type identifier of the external device acquired by the third acquiring sub-module in a correspondence between a switch state of the preset external keyboard device type identifier and an external keyboard device type.
  • the switch mode corresponds to the type of external keyboard device;
  • the fifth determining sub-module 1902 is configured to determine that the external keyboard device type of the external device is a numeric keyboard type when the external keyboard device type found by the second search sub-module 1901 is a numeric keyboard type;
  • the sixth determining sub-module 1903 determines that the external keyboard device type of the external device is a full keyboard type when the external keyboard device type found by the second search sub-module 1901 is a full keyboard type.
  • connection module 1303 includes:
  • connection sub-module 2001 is configured to complete a device declaration for the external device according to the external keyboard device type, and complete a wireless connection with the external device.
  • the apparatus further includes:
  • the type judging module 2101 is configured to determine an external keyboard device type of the external device when an input operation is required;
  • the first processing module 2102 is configured to: when the type determining module 2101 determines that the external keyboard device type of the external device is a numeric keyboard type, pop up a soft keyboard of the input method, and perform an input operation using the soft keyboard of the input method;
  • the second processing module 2103 is configured to perform an input operation using the keyboard of the external device when the type determining module 2101 determines that the external keyboard device type of the external device is a full keyboard type.
  • FIG. 22 is a block diagram of a connection device of an external device, which may be implemented as part or all of an external device by software, hardware, or a combination of both, according to an exemplary embodiment.
  • the connection device of the external device includes:
  • the reporting module 2201 is configured to report the description information when detecting the connection with the smart terminal;
  • the connection module 2202 is configured to complete the connection with the smart terminal according to the description information reported by the reporting module.
  • the apparatus further includes:
  • the setting module 2301 is configured to set the description information according to the keyboard usage mode of the external device before the connection module connects with the smart terminal.
  • the setting module 2301 includes:
  • the first setting submodule 2401 is configured to set a keyboard service discovery protocol record information according to a keyboard usage manner of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • the keyboard service discovery protocol record information states that the external device supports a preset letter button; when the external device device type of the external device is a number In the keyboard type, the keyboard service discovery protocol record information states that the external device does not support the preset letter button.
  • the setting module 2301 includes:
  • the creating submodule 2501 is configured to create a correspondence between vendor identification information of the external device and an external keyboard device type of the external device according to a keyboard usage manner of the external device;
  • the external keyboard device type of the external device when the external keyboard device type of the external device is a full keyboard type, a correspondence between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type And establishing a correspondence between the vendor identification information and the numeric keyboard type.
  • the setting module 2301 includes:
  • the second setting submodule 2601 is configured to set a switch state of the external keyboard device type identifier of the external device according to a keyboard usage manner of the external device;
  • the switch state of the external keyboard device type identifier of the external device is set to a first switch state; when the external keyboard device type of the external device is In the case of the numeric keypad type, the switch state of the external keyboard device type identifier of the external device is set to the second switch state.
  • the apparatus further includes:
  • the startup module 2701 is configured to activate a keyboard for the smart terminal to perform an input operation when receiving a keyboard usage indication of the smart terminal.
  • a connection device for an external device includes:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • the above processor can also be configured to:
  • the description information of the external device is set according to the keyboard usage mode of the external device.
  • the above processor can also be configured to:
  • the obtaining the description information of the external device includes:
  • the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • an external keyboard device type of the external device including:
  • the external keyboard device type of the external device is a numeric keyboard type; the numeric keyboard type is a soft keyboard that allows the smart terminal to pop up an input method when inputting.
  • the above processor can also be configured to:
  • the obtaining the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the above processor can also be configured to:
  • the obtaining the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the above processor can also be configured to:
  • the device declaration and connection of the external device is completed according to the type of the external keyboard device, including:
  • the above processor can also be configured to:
  • the external keyboard device type of the external device is a numeric keyboard type
  • a soft keyboard of the input method is popped up, and an input operation is performed using the soft keyboard of the input method
  • the keyboard of the external device is used for input operation.
  • connection device for an external device including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • Descriptive information is reported when a connection with the smart terminal is detected
  • connection with the smart terminal is completed according to the description information.
  • the above processor can also be configured to:
  • the description information is set according to the keyboard usage mode of the external device.
  • the above processor can also be configured to:
  • keyboard service discovery protocol record information Setting keyboard service discovery protocol record information according to a keyboard usage mode of the external device, where the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • the keyboard service discovery protocol record information states that the external device supports a preset letter button; when the external device device type of the external device is a number In the keyboard type, the keyboard service discovery protocol record information states that the external device does not support the preset letter button.
  • the above processor can also be configured to:
  • the external keyboard device type of the external device when the external keyboard device type of the external device is a full keyboard type, a correspondence between the manufacturer identification information and the full keyboard type is created; when the external keyboard device type of the external device is a numeric keyboard type And establishing a correspondence between the vendor identification information and the numeric keyboard type.
  • the above processor can also be configured to:
  • the switch state of the external keyboard device type identifier of the external device is set to a first switch state; when the external keyboard device type of the external device is In the case of the numeric keypad type, the switch state of the external keyboard device type identifier of the external device is set to the second switch state.
  • the above processor can also be configured to:
  • the home keyboard is activated for the smart terminal to perform an input operation.
  • FIG. 28 is a block diagram of a connection device for an external device, which is applicable to a terminal device, according to an exemplary embodiment.
  • device 2800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • Apparatus 2800 can include one or more of the following components: processing component 2802, memory 2804, power component 2806, multimedia component 2808, audio component 2810, input/output (I/O) interface 2812, sensor component 2814, and communication component 2816 .
  • Processing component 2802 typically controls the overall operation of device 2800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 2802 can include one or more processors 2820 to execute instructions to perform all or part of the steps described above.
  • processing component 2802 can include one or more modules to facilitate interaction between component 2802 and other components.
  • processing component 2802 can include a multimedia module to facilitate interaction between multimedia component 2808 and processing component 2802.
  • Memory 2804 is configured to store various types of data to support operation at device 2800. Examples of such data include instructions for any application or method operating on device 2800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 2804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 2806 provides power to various components of device 2800.
  • Power component 2806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 2800.
  • the multimedia component 2808 includes a screen between the device 2800 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only touch or slip The boundary of the motion, and also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 2808 includes a front camera and/or a rear camera. When the device 2800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 2810 is configured to output and/or input an audio signal.
  • audio component 2810 includes a microphone (MIC) that is configured to receive an external audio signal when device 2800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 2804 or transmitted via communication component 2816.
  • audio component 2810 also includes a speaker for outputting an audio signal.
  • the I/O interface 2812 provides an interface between the processing component 2802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 2814 includes one or more sensors for providing device 2800 with a status assessment of various aspects.
  • sensor component 2814 can detect an open/closed state of device 2800, the relative positioning of the components, such as the display and keypad of device 2800, and sensor component 2814 can also detect a change in position of one component of device 2800 or device 2800. The presence or absence of user contact with device 2800, device 2800 orientation or acceleration/deceleration and temperature change of device 2800.
  • Sensor assembly 2814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 2814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 2814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 2816 is configured to facilitate wired or wireless communication between device 2800 and other devices.
  • the device 2800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 2816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 2816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 2800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 2804 comprising instructions executable by processor 2820 of apparatus 2800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • the device declaration and connection of the external device are completed according to the type of the external keyboard device.
  • the description information of the external device is set according to the keyboard usage mode of the external device.
  • the acquiring the description information of the external device includes:
  • the keyboard service discovery protocol record information is used to declare a button supported by the external device;
  • an external keyboard device type of the external device including:
  • the external keyboard device type of the external device is a numeric keyboard type; the numeric keyboard type is a soft keyboard that allows the smart terminal to pop up an input method when inputting.
  • the acquiring the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the acquiring the description information of the external device includes:
  • an external keyboard device type of the external device including:
  • the type of the external keyboard device is found to be a numeric keyboard type, determine that the external keyboard device type of the external device is a numeric keyboard type;
  • the type of the external keyboard device found is a full keyboard class, it is determined that the external keyboard device type of the external device is a full keyboard type.
  • the device declaration and connection of the external device is completed according to the type of the external keyboard device, including:
  • the method further includes:
  • the external keyboard device type of the external device is a numeric keyboard type
  • a soft keyboard of the input method is popped up, and an input operation is performed using the soft keyboard of the input method
  • the keyboard of the external device is used for input operation.

Abstract

一种外接设备的连接方法及装置,其中,方法包括:当检测到有外接设备进行连接时,获取外接设备的描述信息(S101);根据外接设备的描述信息确定外接设备的外接键盘设备类型(S102);根据外接键盘设备类型完成对外接设备的设备声明及连接(S103)。当智能终端等设备与外接设备连接时,如果用户需要进行输入操作,可以根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入操作,提升用户的使用体验。

Description

外接设备的连接方法及装置
本申请基于申请号为201510544228.1、申请日为2015年08月28日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及设备连接技术领域,尤其涉及一种外接设备的连接方法及装置。
背景技术
在终端照相功能越来越完善的情况下,全球几乎每人都会用终端拍照。自拍的情况也越来越多,那么为了方便自拍,蓝牙自拍杆也就应运而生。
终端通过蓝牙与蓝牙自拍杆连接后,用户通过触控蓝牙自拍杆上的电子快门,就可以进行拍照。
发明内容
本公开实施例提供一种外接设备的连接方法及装置,包括如下技术方案:
根据本公开实施例的第一方面,提供一种外接设备的连接方法,包括:
当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
在一个实施例中,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
根据所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
当所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
当所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的厂商标识信息;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述外接设备的厂商 标识信息对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述根据所述外接键盘设备类型完成对外接设备的设备声明及连接,包括:
根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
在一个实施例中,所述方法还包括:
当需输入操作时,判断所述外接设备的外接键盘设备类型;
当所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
在所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
根据本公开实施例的第二方面,提供一种外接设备的连接方法,包括:
当检测到与智能终端进行连接时,上报描述信息;
根据所述描述信息完成与所述智能终端的连接。
在一个实施例中,所述方法还包括:
与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
在一个实施例中,所述根据所述外接设备的键盘使用方式设置描述信息,包括:
根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为 数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
在一个实施例中,根据所述外接设备的键盘使用方式设置所述描述信息,包括:
根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
在一个实施例中,根据所述外接设备的键盘使用方式设置所述描述信息,包括:
根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
在一个实施例中,所述方法还包括:
当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
根据本公开实施例的第三方面,提供一种外接设备的连接装置,包括:
获取模块,用于当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
确定模块,用于根据所述获取模块获取的所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
连接模块,用于根据所述确定模块确定的所述外接键盘设备类型完成对外接设备的设备声明及连接。
在一个实施例中,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
在一个实施例中,所述获取模块包括:
第一获取子模块,用于获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
所述确定模块包括:
判断子模块,用于根据所述第一获取子模块获取的所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
第一确定子模块,用于当所述判断子模块判断所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
第二确定子模块,用于当所述判断子模块判断所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
在一个实施例中,所述获取模块包括:
第二获取子模块,用于获取所述外接设备的厂商标识信息;
所述确定模块包括:
第一查找子模块,用于在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述第二获取子模块获取的所述外接设备的厂商标识信息对应的外接键盘设备类型;
第三确定子模块,用于当所述第一查找子模块查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
第四确定子模块,用于当所述第一查找子模块查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述获取模块包括:
第三获取子模块,用于获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
所述确定模块包括:
第二查找子模块,用于在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述第三获取子模块获取的所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
第五确定子模块,用于当所述第二查找子模块查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
第六确定子模块,用于当所述第二查找子模块查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述连接模块包括:
连接子模块,用于根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
在一个实施例中,所述装置还包括:
类型判断模块,用于当需输入操作时,判断所述外接设备的外接键盘设备类型;
第一处理模块,用于当所述类型判断模块判断所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
第二处理模块,用于当所述类型判断模块判断所述所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
根据本公开实施例的第四方面,提供一种外接设备的连接装置,包括:
上报模块,用于当检测到与智能终端进行连接时,上报描述信息;
连接模块,用于根据所述上报模块上报的所述描述信息完成与所述智能终端的连接。
在一个实施例中,所述装置还包括:
设置模块,用于在所述连接模块与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
在一个实施例中,所述设置模块包括:
第一设置子模块,用于根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
在一个实施例中,所述设置模块包括:
创建子模块,用于根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
在一个实施例中,所述设置模块包括:
第二设置子模块,用于根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
在一个实施例中,所述装置还包括:
启动模块,用于当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
根据本公开实施例的第五方面,提供一种外接设备的连接装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
根据本公开实施例的第六方面,提供一种外接设备的连接装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当检测到与智能终端进行连接时,上报描述信息;
根据所述描述信息完成与所述智能终端的连接。
本公开的实施例提供的技术方案可以包括以下有益效果:
上述技术方案,当终端等设备和外接设备进行连接时,获取外接设备的描述信息,根据外接设备的描述信息确定外接设备的外接键盘设备类型,即确定外接设备是全键盘类型还是数字键盘类型,进而根据外接键盘设备类型完成对外接设备的设备声明和连接,这样,当智能终端等设备与外接设备连接时,如果用户需要进行输入操作,可以根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入操作,提升用户的使用体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种外接设备的连接方法的流程图。
图2是根据一示例性实施例示出的另一种外接设备的连接方法的流程图。
图3是根据一示例性实施例示出的又一种外接设备的连接方法的流程图。
图4是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图5是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图6是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图7是根据一示例性实施例示出的一种外接设备的连接方法的流程图。
图8是根据一示例性实施例示出的另一种外接设备的连接方法的流程图。
图9是根据一示例性实施例示出的又一种外接设备的连接方法的流程图。
图10是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图11是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图12是根据一示例性实施例示出的再一种外接设备的连接方法的流程图。
图13是根据一示例性实施例示出的一种外接设备的连接装置的框图。
图14是根据一示例性实施例示出的一种外接设备的连接装置中获取模块的框图。
图15是根据一示例性实施例示出的一种外接设备的连接装置中确定模块的框图。
图16是根据一示例性实施例示出的另一种外接设备的连接装置中获取模块的框图。
图17是根据一示例性实施例示出的另一种外接设备的连接装置中确定模块的框图。
图18是根据一示例性实施例示出的再一种外接设备的连接装置中获取模块的框图。
图19是根据一示例性实施例示出的再一种外接设备的连接装置中确定模块的框图。
图20是根据一示例性实施例示出的一种外接设备的连接装置中连接模块的框图。
图21是根据一示例性实施例示出的另一种外接设备的连接装置的框图。
图22是根据一示例性实施例示出的一种外接设备的连接装置的框图。
图23是根据一示例性实施例示出的另一种外接设备的连接装置的框图。
图24是根据一示例性实施例示出的一种外接设备的连接装置中设置模块的框图。
图25是根据一示例性实施例示出的另一种外接设备的连接装置中设置模块的框图。
图26是根据一示例性实施例示出的再一种外接设备的连接装置中设置模块的框图。
图27是根据一示例性实施例示出的再一种外接设备的连接装置的框图。
图28是根据一示例性实施例示出的适用于外接设备的连接装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本公开实施例提供了一种外接设备的连接方法,该方法可用于需要与外接设备连接的终端设备中,如图1所示,该方法包括步骤S101-S103:
在步骤S101中,当检测到有外接设备进行连接时,获取外接设备的描述信息;在一个实施例中,外接设备的描述信息根据外接设备的键盘使用方式设置。
在步骤S102中,根据外接设备的描述信息确定外接设备的外接键盘设备类型;
在步骤S103中,根据外接键盘设备类型完成对外接设备的设备声明及连接。
在该实施例中,当智能终端等设备和外接设备进行连接时,获取外接设备的描述信息,根据外接设备的描述信息确定外接设备的外接键盘设备类型,即确定外接设备是全键盘类型还是数字键盘类型,进而根据外接键盘设备类型完成对外接设备的设备声明和连接,这样,当智能终端等设备与外接设备连接时,如果用户需要在智能终端上进行输入操作,可以根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入操作,提升用户的使用体验。
如图2所示,在一个实施例中,上述步骤S101中的获取外接设备的描述信息,包括步骤S201:
在步骤S201中,获取外接设备的键盘服务发现协议记录信息,键盘服务发现协议记录信息用于声明外接设备所支持的按键;
上述步骤S102包括步骤S202-S204:
在步骤S202中,根据键盘服务发现协议记录信息判断外接设备是否支持预设字母按键;其中,预设字母按键可以是键盘上的某个字母按键,如Q键。
在步骤S203中,当外接设备支持预设字母按键时,确定外接设备的外接键盘设备类型为全键盘类型;其中,全键盘类型为不允许智能终端在输入时弹出输入法的软键盘。
在步骤S204中,当外接设备不支持预设字母按键时,确定外接设备的外接键盘设备 类型为数字键盘类型;数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
在该实施例中,通过判断外接设备是否支持预设字母按键来判断外接键盘设备类型,根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入,提升用户的使用体验。
例如,外接设备为蓝牙自拍杆,根据其服务发现协议记录信息判断出其不支持预设字母按键,预设字母按键包括但不限于Q键,如不支持Q键,则此时可以确定蓝牙自拍杆的外接键盘设备类型为数字键盘类型,则当需要进行输入时,允许弹出输入法的软键盘,从而保证用户在使用蓝牙自拍杆时可以正常进行输入。
如图3所示,在一个实施例中,上述步骤S101中获取外接设备的描述信息,包括步骤S301:
在步骤S301中,获取外接设备的厂商标识信息;
上述步骤S102包括步骤S302-S304:
在步骤S302中,在预置的厂商标识信息与外接键盘设备类型的对应关系中查找外接设备的厂商标识信息对应的外接键盘设备类型;
在步骤S303中,当查找到的外接键盘设备类型为数字键盘类时,确定外接设备的外接键盘设备类型为数字键盘类型;数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
在步骤S304中,当查找到的外接键盘设备类型为全键盘类时,确定外接设备的外接键盘设备类型为全键盘类型。其中,全键盘类型为不允许智能终端在输入时弹出输入法的软键盘。
其中,对于不同的外接设备,其厂商标识信息会不同,例如,蓝牙自拍杆和外接键盘的厂商标识信息会不同,因此,可以预置不同的厂商标识信息和与其对应的外接键盘设备类型,如,蓝牙自拍杆的厂商标识信息对应数字键盘类型,外接键盘的厂商标识信息对应全键盘类型,进而在有外接设备需要接入时,获取其厂商标识信息,根据厂商标识信息确定其属于的外接键盘设备类型。
在该实施例中,根据外接设备的预置的厂商标识信息来判断外接键盘设备类型,根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入操作,提升用户的使用体验。
如图4所示,在一个实施例中,上述步骤S101中的获取外接设备的描述信息,包括步骤S401:
在步骤S401中,获取外接设备的外接键盘设备类型标识的开关状态,外接键盘设备类型标识用于利用开关状态标识外接键盘设备类型;
上述步骤S102包括步骤S402-S404:
在步骤S402中,在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
在步骤S403中,当查找到的外接键盘设备类型为数字键盘类时,确定外接设备的外接键盘设备类型为数字键盘类型;
在步骤S404中,当查找到的外接键盘设备类型为全键盘类时,确定外接设备的外接键盘设备类型为全键盘类型。
在该实施例中,还可以根据外接设备的外接键盘设备类型标识的开关状态来确定外接键盘设备类型,其中,外接键盘设备类型标识的开关状态可以包括打开状态和关闭状态,可以预置当外接键盘设备类型标识的开关状态为打开状态时,对应的外接键盘设备类型为全键盘类型,当外接键盘设备类型标识的开关状态为关闭状态时,对应的外接键盘设备类型为数字键盘类型。
这样,根据外接设备的外接键盘设备类型标识的开关状态来确定外接键盘设备类型,根据外接键盘设备类型确定是使用输入法的软键盘进行输入操作还是通过外接设备进行输入操作,从而保证用户可以正常进行输入操作,提升用户的使用体验。
如图5所示,在一个实施例中,上述步骤S103包括步骤S501:
在步骤S501中,根据外接键盘设备类型完成对外接设备的设备声明,以及完成与外接设备之间的无线连接。
在该实施例中,外接设备可以为无线外接设备,因此,终端等设备可以根据外接设备的外接键盘设备类型完成与外接设备之间的无线连接,以及对外接设备的声明,从而保证外接设备的正常使用,同时保证输入法的软键盘的正常使用。
如图6所示,在一个实施例中,上述方法还包括步骤S601-S603:
在步骤S601中,当需输入操作时,判断外接设备的外接键盘设备类型;
在步骤S602中,当外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用输入法的软键盘进行输入操作;
在步骤S603中,在所外接设备的外接键盘设备类型为全键盘类型时,使用外接设备的键盘进行输入操作。
在该实施例中,当需要输入操作时,可以根据外接设备的外接键盘设备类型确定如何进行输入操作,当外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用输入法的软键盘进行输入操作,当外接设备的外接键盘设备类型为全键盘类型时,使用外接设备的键盘进行输入操作。这样,可以保证无论外接设备为哪种类型,都能正常进行输入操作。
本公开实施例还提供了一种外接设备的连接方法,该方法可用于外接设备(如外接键盘、无线自拍杆等)中,如图7所示,该方法包括步骤S701-S702:
在步骤S701中,当检测到与智能终端进行连接时,上报描述信息;
在步骤S702中,根据描述信息完成与智能终端的连接。
在该实施例中,外接设备可以向智能终端上报描述信息进而根据描述信息完成与智能终端的连接。
如图8所示,在一个实施例中,上述方法还包括步骤S801:
在步骤S801中,与智能终端进行连接前,根据外接设备的键盘使用方式设置描述信息。
在该实施例中,根据外接设备的键盘使用方式设置描述信息,这样,可以避免默认将所有外接设备的描述信息都设置成全键盘类型对应的描述信息,从而导致当使用外接设备时,无法使用输入法的软键盘的问题发生。这样,可以保证无论外接设备为哪种类型,用户都能正常进行输入操作。
如图9所示,在一个实施例中,上述步骤S801中根据外接设备的键盘使用方式设置描述信息,包括步骤S901:
在步骤S901中,根据外接设备的键盘使用方式设置键盘服务发现协议记录信息,键盘服务发现协议记录信息用于声明外接设备所支持的按键;
其中,当外接设备的外接键盘设备类型为全键盘类型时,键盘服务发现协议记录信息中声明外接设备支持预设字母按键;当外接设备的外接键盘设备类型为数字键盘类型时,键盘服务发现协议记录信息中声明外接设备不支持预设字母按键。
在该实施例中,可以根据外接设备的键盘使用方式设置键盘服务发现协议记录信息,其中,键盘服务发现协议记录信息用于声明外接设备所支持的按键,这样,外接设备需要哪些按键,就可以声明其支持哪些按键,例如,当外接设备为蓝牙自拍杆时,则其不需要全键盘输入,则可以确定其类型为数字键盘类型,此时,可以在其键盘服务发现协议记录信息中声明其不支持哪些按键,如不支持字母Q键,这样,当其与其他终端等设备连接时,根据键盘服务发现协议记录信息确定外接设备的外接键盘设备类型,如果用户需要输入操作,可以根据外接键盘设备类型判断是否允许使用输入法的软键盘进行输入操作,从而保证输入法的正常使用,提升用户的使用体验。
如图10所示,在一个实施例中,上述步骤S801中根据外接设备的键盘使用方式设置描述信息,包括步骤S1001:
在步骤S1001中,根据外接设备的键盘使用方式创建外接设备的厂商标识信息与外接设备的外接键盘设备类型之间的对应关系;
其中,当外接设备的外接键盘设备类型为全键盘类型时,创建厂商标识信息与全键盘类型之间的对应关系;当外接设备的外接键盘设备类型为数字键盘类型时,创建厂商标识信息与数字键盘类型之间的对应关系。
在该实施例中,对于不同的外接设备,其厂商标识信息会不同,例如,蓝牙自拍杆和外接键盘的厂商标识信息会不同,因此,可以预置不同的厂商标识信息和与其对应的外接键盘设备类型,如,蓝牙自拍杆的厂商标识信息对应数字键盘类型,外接键盘的厂商标识信息对应全键盘类型,进而在有外接设备需要接入时,获取其厂商标识信息,根据厂商标识信息确定其属于的外接键盘设备类型。
如图11所示,在一个实施例中,上述步骤S801中根据外接设备的键盘使用方式设置 描述信息,包括步骤S1101:
在步骤S1101中,根据外接设备的键盘使用方式设置外接设备的外接键盘设备类型标识的开关状态;
其中,当外接设备的外接键盘设备类型为全键盘类型时,将外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当外接设备的外接键盘设备类型为数字键盘类型时,将外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
在该实施例中,外接设备的外接键盘设备类型标识的开关状态可以包括第一开关状态和第二开关状态(如打开状态和关闭状态),可以预置当外接键盘设备类型标识的开关状态为第一开关状态时,对应的外接键盘设备类型为全键盘类型,当外接键盘设备类型标识的开关状态为第二开关状态时,对应的外接键盘设备类型为数字键盘类型。
如图12所示,在一个实施例中,上述方法还包括步骤S1201:
在步骤S1201中,当接收到智能终端的键盘使用指示时,启动自身键盘供智能终端进行输入操作。
在该实施例中,外接设备在接收到智能终端的键盘使用指示时,启动自身键盘供智能终端进行输入操作,而在其未接收到键盘使用指示时,智能终端可以使用输入法的软键盘进行输入操作,这样,可以保证无论外接设备为哪种类型,都能正常进行输入操作。
下述为本公开装置实施例,可以用于执行本公开方法实施例。
图13是根据一示例性实施例示出的一种外接设备的连接装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为终端设备的部分或者全部。如图13所示,该外接设备的连接装置包括:
获取模块1301被配置为当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
确定模块1302被配置为根据所述获取模块1302获取的所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
连接模块1303被配置为根据所述确定模块1302确定的所述外接键盘设备类型完成对外接设备的设备声明及连接。
在一个实施例中,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
如图14所示,在一个实施例中,所述获取模块1301包括:
第一获取子模块1401被配置为获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键。
如图15所示,所述确定模块1302包括:
判断子模块1501被配置为根据所述第一获取子模块1401获取的所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
第一确定子模块1502被配置为当所述判断子模块1501判断所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
第二确定子模块1503被配置为当所述判断子模块1501判断所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
如图16所示,在一个实施例中,所述获取模块1301包括:
第二获取子模块1601被配置为获取所述外接设备的厂商标识信息;
如图17所示,在一个实施例中,所述确定模块1302包括:
第一查找子模块1701被配置为在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述第二获取子模块获取的所述外接设备的厂商标识信息对应的外接键盘设备类型;
第三确定子模块1702被配置为当所述查找子模块查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
第四确定子模块1703被配置为当所述第一查找子模块查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
如图18所示,在一个实施例中,所述获取模块1301包括:
第三获取子模块1801被配置为获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
如图19所示,在一个实施例中,所述确定模块1302包括:
第二查找子模块1901被配置为在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述第三获取子模块获取的所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
第五确定子模块1902被配置为当所述第二查找子模块1901查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
第六确定子模块1903当所述第二查找子模块1901查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
如图20所示,在一个实施例中,所述连接模块1303包括:
连接子模块2001被配置为根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
如图21所示,在一个实施例中,所述装置还包括:
类型判断模块2101被配置为当需输入操作时,判断所述外接设备的外接键盘设备类型;
第一处理模块2102被配置为当所述类型判断模块2101判断所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
第二处理模块2103被配置为当所述类型判断模块2101判断所述所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
图22是根据一示例性实施例示出的一种外接设备的连接装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为外接设备的部分或者全部。如图22所示,该外接设备的连接装置包括:
上报模块2201被配置为当检测到与智能终端进行连接时,上报描述信息;
连接模块2202被配置为根据所述上报模块上报的所述描述信息完成与所述智能终端的连接。
如图23所示,在一个实施例中,所述装置还包括:
设置模块2301被配置为在所述连接模块与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
如图24所示,在一个实施例中,所述设置模块2301包括:
第一设置子模块2401被配置为根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
如图25所示,在一个实施例中,所述设置模块2301包括:
创建子模块2501被配置为根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
如图26所示,在一个实施例中,所述设置模块2301包括:
第二设置子模块2601被配置为根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
如图27所示,在一个实施例中,所述装置还包括:
启动模块2701被配置为当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
根据本公开实施例的第五方面,提供一种外接设备的连接装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
上述处理器还可被配置为:
所述外接设备的描述信息根据外接设备的键盘使用方式设置。
上述处理器还可被配置为:
所述获取所述外接设备的描述信息,包括:
获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
根据所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
当所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
当所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
上述处理器还可被配置为:
所述获取所述外接设备的描述信息,包括:
获取所述外接设备的厂商标识信息;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述外接设备的厂商标识信息对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
上述处理器还可被配置为:
所述获取所述外接设备的描述信息,包括:
获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
上述处理器还可被配置为:
所述根据所述外接键盘设备类型完成对外接设备的设备声明及连接,包括:
根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
上述处理器还可被配置为:
当需输入操作时,判断所述外接设备的外接键盘设备类型;
当所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
在所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
根据本公开实施例的第六方面,提供一种外接设备的连接装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
当检测到与智能终端进行连接时,上报描述信息;
根据所述描述信息完成与所述智能终端的连接。
上述处理器还可被配置为:
与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
上述处理器还可被配置为:
所述根据所述外接设备的键盘使用方式设置描述信息,包括:
根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
上述处理器还可被配置为:
根据所述外接设备的键盘使用方式设置所述描述信息,包括:
根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
上述处理器还可被配置为:
根据所述外接设备的键盘使用方式设置所述描述信息,包括:
根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
上述处理器还可被配置为:
当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图28是根据一示例性实施例示出的一种用于外接设备的连接装置的框图,该装置适用于终端设备。例如,装置2800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
装置2800可以包括以下一个或多个组件:处理组件2802,存储器2804,电源组件2806,多媒体组件2808,音频组件2810,输入/输出(I/O)的接口2812,传感器组件2814,以及通信组件2816。
处理组件2802通常控制装置2800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件2802可以包括一个或多个处理器2820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件2802可以包括一个或多个模块,便于处理组件2802和其他组件之间的交互。例如,处理部件2802可以包括多媒体模块,以方便多媒体组件2808和处理组件2802之间的交互。
存储器2804被配置为存储各种类型的数据以支持在设备2800的操作。这些数据的示例包括用于在装置2800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器2804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件2806为装置2800的各种组件提供电力。电力组件2806可以包括电源管理系统,一个或多个电源,及其他与为装置2800生成、管理和分配电力相关联的组件。
多媒体组件2808包括在所述装置2800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑 动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件2808包括一个前置摄像头和/或后置摄像头。当设备2800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件2810被配置为输出和/或输入音频信号。例如,音频组件2810包括一个麦克风(MIC),当装置2800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器2804或经由通信组件2816发送。在一些实施例中,音频组件2810还包括一个扬声器,用于输出音频信号。
I/O接口2812为处理组件2802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件2814包括一个或多个传感器,用于为装置2800提供各个方面的状态评估。例如,传感器组件2814可以检测到设备2800的打开/关闭状态,组件的相对定位,例如所述组件为装置2800的显示器和小键盘,传感器组件2814还可以检测装置2800或装置2800一个组件的位置改变,用户与装置2800接触的存在或不存在,装置2800方位或加速/减速和装置2800的温度变化。传感器组件2814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件2814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件2814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件2816被配置为便于装置2800和其他设备之间有线或无线方式的通信。装置2800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件2816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件2816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置2800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器2804,上述指令可由装置2800的处理器2820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置2800的处理器 执行时,使得装置2800能够执行上述外接设备的连接方法,所述方法包括:
当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
在一个实施例中,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
根据所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
当所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
当所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的厂商标识信息;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述外接设备的厂商标识信息对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述获取所述外接设备的描述信息,包括:
获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
在一个实施例中,所述根据所述外接键盘设备类型完成对外接设备的设备声明及连接,包括:
根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
在一个实施例中,所述方法还包括:
当需输入操作时,判断所述外接设备的外接键盘设备类型;
当所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
在所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (28)

  1. 一种外接设备的连接方法,其特征在于,包括:
    当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
    根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
    根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
  2. 根据权利要求1所述的方法,其特征在于,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
  3. 根据权利要求1所述的方法,其特征在于,所述获取所述外接设备的描述信息,包括:
    获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
    所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
    根据所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
    当所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
    当所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
  4. 根据权利要求1所述的方法,其特征在于,所述获取所述外接设备的描述信息,包括:
    获取所述外接设备的厂商标识信息;
    所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
    在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述外接设备的厂商标识信息对应的外接键盘设备类型;
    当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
    当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
  5. 根据权利要求1所述的方法,其特征在于,所述获取所述外接设备的描述信息,包括:
    获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
    所述根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型,包括:
    在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
    当查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类 型为数字键盘类型;
    当查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述外接键盘设备类型完成对外接设备的设备声明及连接,包括:
    根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当需输入操作时,判断所述外接设备的外接键盘设备类型;
    当所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
    在所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
  8. 一种外接设备的连接方法,其特征在于,包括:
    当检测到与智能终端进行连接时,上报描述信息;
    根据所述描述信息完成与所述智能终端的连接。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述外接设备的键盘使用方式设置描述信息,包括:
    根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
  11. 根据权利要求9所述的方法,其特征在于,根据所述外接设备的键盘使用方式设置所述描述信息,包括:
    根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
  12. 根据权利要求9所述的方法,其特征在于,根据所述外接设备的键盘使用方式设置所述描述信息,包括:
    根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
  13. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
  14. 一种外接设备的连接装置,其特征在于,包括:
    获取模块,用于当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
    确定模块,用于根据所述获取模块获取的所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
    连接模块,用于根据所述确定模块确定的所述外接键盘设备类型完成对外接设备的设备声明及连接。
  15. 根据权利要求14所述的装置,其特征在于,所述外接设备的描述信息根据外接设备的键盘使用方式设置。
  16. 根据权利要求14所述的装置,其特征在于,所述获取模块包括:
    第一获取子模块,用于获取所述外接设备的键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
    所述确定模块包括:
    判断子模块,用于根据所述第一获取子模块获取的所述键盘服务发现协议记录信息判断所述外接设备是否支持预设字母按键;
    第一确定子模块,用于当所述判断子模块判断所述外接设备支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为全键盘类型;
    第二确定子模块,用于当所述判断子模块判断所述外接设备不支持所述预设字母按键时,确定所述外接设备的外接键盘设备类型为数字键盘类型;所述数字键盘类型为允许智能终端在输入时弹出输入法的软键盘。
  17. 根据权利要求14所述的装置,其特征在于,所述获取模块包括:
    第二获取子模块,用于获取所述外接设备的厂商标识信息;
    所述确定模块包括:
    第一查找子模块,用于在预置的厂商标识信息与外接键盘设备类型的对应关系中查找所述第二获取子模块获取的所述外接设备的厂商标识信息对应的外接键盘设备类型;
    第三确定子模块,用于当所述查找子模块查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
    第四确定子模块,用于当所述查找子模块查找到的外接键盘设备类型为全键盘类时, 确定所述外接设备的外接键盘设备类型为全键盘类型。
  18. 根据权利要求14所述的装置,其特征在于,所述获取模块包括:
    第三获取子模块,用于获取所述外接设备的外接键盘设备类型标识的开关状态,所述外接键盘设备类型标识用于利用开关状态标识所述外接键盘设备类型;
    所述确定模块包括:
    第二查找子模块,用于在预置的外接键盘设备类型标识的开关状态与外接键盘设备类型的对应关系中查找所述第三获取子模块获取的所述外接设备的外接键盘设备类型标识的开关状态对应的外接键盘设备类型;
    第五确定子模块,用于当所述第二查找子模块查找到的外接键盘设备类型为数字键盘类时,确定所述外接设备的外接键盘设备类型为数字键盘类型;
    第六确定子模块,用于当所述第二查找子模块查找到的外接键盘设备类型为全键盘类时,确定所述外接设备的外接键盘设备类型为全键盘类型。
  19. 根据权利要求14所述的装置,其特征在于,所述连接模块包括:
    连接子模块,用于根据所述外接键盘设备类型完成对所述外接设备的设备声明,以及完成与所述外接设备之间的无线连接。
  20. 根据权利要求14所述的装置,其特征在于,所述装置还包括:
    类型判断模块,用于当需输入操作时,判断所述外接设备的外接键盘设备类型;
    第一处理模块,用于当所述类型判断模块判断所述外接设备的外接键盘设备类型为数字键盘类型时,弹出输入法的软键盘,使用所述输入法的软键盘进行输入操作;
    第二处理模块,用于当所述类型判断模块判断所述所外接设备的外接键盘设备类型为全键盘类型时,使用所述外接设备的键盘进行输入操作。
  21. 一种外接设备的连接装置,其特征在于,包括:
    上报模块,用于当检测到与智能终端进行连接时,上报描述信息;
    连接模块,用于根据所述上报模块上报的所述描述信息完成与所述智能终端的连接。
  22. 根据权利要求21所述的装置,其特征在于,所述装置还包括:
    设置模块,用于在所述连接模块与所述智能终端进行连接前,根据所述外接设备的键盘使用方式设置描述信息。
  23. 根据权利要求22所述的装置,其特征在于,所述设置模块包括:
    第一设置子模块,用于根据所述外接设备的键盘使用方式设置键盘服务发现协议记录信息,所述键盘服务发现协议记录信息用于声明所述外接设备所支持的按键;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备支持预设字母按键;当所述外接设备的外接键盘设备类型为数字键盘类型时,所述键盘服务发现协议记录信息中声明所述外接设备不支持预设字母按键。
  24. 根据权利要求22所述的装置,其特征在于,所述设置模块包括:
    创建子模块,用于根据所述外接设备的键盘使用方式创建所述外接设备的厂商标识信息与所述外接设备的外接键盘设备类型之间的对应关系;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,创建所述厂商标识信息与所述全键盘类型之间的对应关系;当所述外接设备的外接键盘设备类型为数字键盘类型时,创建所述厂商标识信息与所述数字键盘类型之间的对应关系。
  25. 根据权利要求22所述的装置,其特征在于,所述设置模块包括:
    第二设置子模块,用于根据所述外接设备的键盘使用方式设置所述外接设备的外接键盘设备类型标识的开关状态;
    其中,当所述外接设备的外接键盘设备类型为全键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第一开关状态;当所述外接设备的外接键盘设备类型为数字键盘类型时,将所述外接设备的外接键盘设备类型标识的开关状态设置为第二开关状态。
  26. 根据权利要求21所述的装置,其特征在于,所述装置还包括:
    启动模块,用于当接收到智能终端的键盘使用指示时,启动自身键盘供所述智能终端进行输入操作。
  27. 一种外接设备的连接装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    当检测到有外接设备进行连接时,获取所述外接设备的描述信息;
    根据所述外接设备的描述信息确定所述外接设备的外接键盘设备类型;
    根据所述外接键盘设备类型完成对外接设备的设备声明及连接。
  28. 一种外接设备的连接装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    当检测到与智能终端进行连接时,上报描述信息;
    根据所述描述信息完成与所述智能终端的连接。
PCT/CN2015/097796 2015-08-28 2015-12-18 外接设备的连接方法及装置 WO2017035994A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
MX2016003768A MX359490B (es) 2015-08-28 2015-12-18 Metodo y dispositivo para conectar equipo externo.
KR1020167004077A KR101813413B1 (ko) 2015-08-28 2015-12-18 외부 설비 연결 방법, 장치, 프로그램 및 기록매체
RU2016113844A RU2649936C2 (ru) 2015-08-28 2015-12-18 Способ и устройство для присоединения внешнего оборудования
JP2017537001A JP2017530493A (ja) 2015-08-28 2015-12-18 外付け機器の接続方法および装置、プログラム及び記録媒体

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510544228.1 2015-08-28
CN201510544228.1A CN105117033B (zh) 2015-08-28 2015-08-28 外接设备的连接方法及装置

Publications (1)

Publication Number Publication Date
WO2017035994A1 true WO2017035994A1 (zh) 2017-03-09

Family

ID=54665048

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/097796 WO2017035994A1 (zh) 2015-08-28 2015-12-18 外接设备的连接方法及装置

Country Status (8)

Country Link
US (1) US20170060260A1 (zh)
EP (1) EP3136699A1 (zh)
JP (1) JP2017530493A (zh)
KR (1) KR101813413B1 (zh)
CN (1) CN105117033B (zh)
MX (1) MX359490B (zh)
RU (1) RU2649936C2 (zh)
WO (1) WO2017035994A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117033B (zh) * 2015-08-28 2018-03-23 小米科技有限责任公司 外接设备的连接方法及装置
CN105741862B (zh) * 2016-01-29 2018-05-08 广东欧珀移动通信有限公司 一种移动终端音频录入的方法和装置及移动终端
CN105681569B (zh) * 2016-01-29 2018-03-06 广东欧珀移动通信有限公司 自拍模式开启方法、装置及移动终端和系统
CN105957331A (zh) * 2016-04-26 2016-09-21 乐视控股(北京)有限公司 自拍杆的连接方法及装置
CN107769927B (zh) * 2017-09-30 2021-11-26 飞天诚信科技股份有限公司 一种在MacOSX系统中操作智能密钥设备的方法及装置
CN108415585A (zh) * 2018-05-28 2018-08-17 深圳市志海和科技有限公司 一种键盘外接设备
CN110012527B (zh) * 2019-03-05 2022-04-26 青岛海信传媒网络技术有限公司 唤醒方法及电子设备
CN110784846B (zh) * 2019-10-10 2023-06-27 RealMe重庆移动通信有限公司 车载蓝牙设备识别方法、装置、电子设备及存储介质
CN111367453A (zh) * 2020-03-06 2020-07-03 广东小天才科技有限公司 一种自动触发引导程序的方法及电子设备
CN113660636A (zh) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 设备类型的确定方法、装置、设备及存储介质
CN113992540B (zh) * 2021-11-01 2023-06-16 创盛视联数码科技(北京)有限公司 设备检测方法及电子设备
WO2023224143A1 (ko) * 2022-05-17 2023-11-23 엘지전자 주식회사 디스플레이 장치
JP2023179074A (ja) 2022-06-07 2023-12-19 レノボ・シンガポール・プライベート・リミテッド 情報処理装置、及び制御方法

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474287A (zh) * 2002-08-07 2004-02-11 英业达集团(南京)电子技术有限公司 将外部设备模拟为硬盘的数据存取方法
JP2005025410A (ja) * 2003-06-30 2005-01-27 Toshiba Corp 入力装置、電子機器、システムおよび切替制御方法
US20130088442A1 (en) * 2011-10-06 2013-04-11 Taehoon Lee Mobile terminal and method for providing user interface thereof
CN103298529A (zh) * 2010-11-17 2013-09-11 斯蒂尔塞瑞斯有限责任公司 用于管理视频游戏中的用户输入的装置和方法
CN103716710A (zh) * 2013-12-30 2014-04-09 深圳市同洲电子股份有限公司 一种智能电视终端的输入方法和智能电视终端
CN103853443A (zh) * 2012-12-03 2014-06-11 联想(北京)有限公司 一种输入界面切换方法及装置、电子设备
CN104035565A (zh) * 2013-03-04 2014-09-10 腾讯科技(深圳)有限公司 输入方法、输入装置、辅助输入方法及辅助输入系统
CN104111905A (zh) * 2013-04-18 2014-10-22 威盛电子股份有限公司 外接式电子装置与外接式电子装置控制方法
CN105117033A (zh) * 2015-08-28 2015-12-02 小米科技有限责任公司 外接设备的连接方法及装置

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999053621A1 (en) * 1998-04-14 1999-10-21 Qualcomm Incorporated Method and system for interfacing a wireless communication device with an accessory
JP2002041223A (ja) * 2000-07-17 2002-02-08 Internatl Business Mach Corp <Ibm> コンピュータシステム、オンスクリーン・キーボード生成方法、パワー・オン・パスワード照合方法及びメモリ
US20080048986A1 (en) * 2002-06-10 2008-02-28 Khoo Soon H Compound Computing Device with Dual Portion Keyboards Controlled by a Single Processing Element
CA2732007C (en) * 2004-05-10 2016-06-28 Espeed, Inc. Fully configurable trading keyboard
US20070099593A1 (en) * 2005-11-02 2007-05-03 Timothy Thome Method for managing interchangeable accessory modules connected to a portable communication device
CN2847362Y (zh) * 2005-11-10 2006-12-13 昆达电脑科技(昆山)有限公司 便携式电子装置的外接键盘结构
WO2007083210A2 (en) * 2006-01-23 2007-07-26 Nokia Corporation Method and system for configuring a user interface
CN101661313B (zh) * 2009-09-10 2013-06-05 孙倩倩 便携式智能工具输入输出扩展设备及其配套设备
TW201142657A (en) * 2010-05-25 2011-12-01 At Box Technology Inc Method for setting and controlling hot key area of keyboard via KVM switch
JP5791236B2 (ja) * 2010-05-10 2015-10-07 キヤノン株式会社 情報処理装置、情報処理装置の制御方法、及びプログラム
JP2012205251A (ja) * 2011-03-28 2012-10-22 Panasonic Corp 無線通信端末及び無線通信端末の制御方法
JP2014110479A (ja) * 2012-11-30 2014-06-12 Toshiba Corp 情報処理装置、情報処理装置の制御方法及びプログラム
JP2014110519A (ja) * 2012-11-30 2014-06-12 Toshiba Corp 電子機器、キーボード制御システム、表示制御方法、及び表示制御プログラム
CN103945046A (zh) * 2013-01-21 2014-07-23 目酷实验室有限公司 拍照控制方法及控制装置
CN109062438B (zh) * 2013-04-18 2022-04-12 Oppo广东移动通信有限公司 实现输入模式自动切换的方法及其终端
CN104794074B (zh) * 2015-03-27 2018-04-06 小米科技有限责任公司 外接设备识别方法及装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474287A (zh) * 2002-08-07 2004-02-11 英业达集团(南京)电子技术有限公司 将外部设备模拟为硬盘的数据存取方法
JP2005025410A (ja) * 2003-06-30 2005-01-27 Toshiba Corp 入力装置、電子機器、システムおよび切替制御方法
CN103298529A (zh) * 2010-11-17 2013-09-11 斯蒂尔塞瑞斯有限责任公司 用于管理视频游戏中的用户输入的装置和方法
US20130088442A1 (en) * 2011-10-06 2013-04-11 Taehoon Lee Mobile terminal and method for providing user interface thereof
CN103853443A (zh) * 2012-12-03 2014-06-11 联想(北京)有限公司 一种输入界面切换方法及装置、电子设备
CN104035565A (zh) * 2013-03-04 2014-09-10 腾讯科技(深圳)有限公司 输入方法、输入装置、辅助输入方法及辅助输入系统
CN104111905A (zh) * 2013-04-18 2014-10-22 威盛电子股份有限公司 外接式电子装置与外接式电子装置控制方法
CN103716710A (zh) * 2013-12-30 2014-04-09 深圳市同洲电子股份有限公司 一种智能电视终端的输入方法和智能电视终端
CN105117033A (zh) * 2015-08-28 2015-12-02 小米科技有限责任公司 外接设备的连接方法及装置

Also Published As

Publication number Publication date
MX2016003768A (es) 2017-04-27
RU2016113844A (ru) 2017-10-17
CN105117033A (zh) 2015-12-02
CN105117033B (zh) 2018-03-23
KR101813413B1 (ko) 2017-12-28
MX359490B (es) 2018-09-07
KR20170036651A (ko) 2017-04-03
EP3136699A1 (en) 2017-03-01
RU2649936C2 (ru) 2018-04-05
JP2017530493A (ja) 2017-10-12
US20170060260A1 (en) 2017-03-02

Similar Documents

Publication Publication Date Title
WO2017035994A1 (zh) 外接设备的连接方法及装置
WO2016112699A1 (zh) 切换显示模式的方法及装置
WO2016192323A1 (zh) 视频通信方法及装置
WO2017031888A1 (zh) 指纹识别方法及装置
WO2017113842A1 (zh) 控制智能设备的方法及装置
WO2016023340A1 (zh) 一种切换摄像头的方法和装置
WO2016134600A1 (zh) 智能设备检测方法和装置
WO2017113662A1 (zh) 虚拟sim卡的启用方法和装置
WO2017096782A1 (zh) 防止拍照遮挡的方法及装置
WO2018098865A1 (zh) 消息阅读方法及装置
WO2017128718A1 (zh) 获取终端信息的方法及装置
WO2019095140A1 (zh) 剩余关键系统信息的公共控制资源集合的周期信息指示方法
WO2016029685A1 (zh) 一种路由器管理应用与路由器固件的兼容方法和装置
WO2017071088A1 (zh) 图像获取方法及装置
RU2644511C2 (ru) Способ и устройство для отображения интерфейса настройки маршрутизатора
WO2016023339A1 (zh) 延时拍照的方法和装置
WO2016155231A1 (zh) 网络接入方法及装置
WO2017193526A1 (zh) 应用界面显示方法及装置
WO2016155304A1 (zh) 无线访问接入点的控制方法及装置
WO2017036018A1 (zh) 指纹识别方法、装置及移动终端
RU2663709C2 (ru) Способ и устройство для обработки информации
WO2018000710A1 (zh) WiFi信号图标的展示方法、装置和移动终端
WO2017008400A1 (zh) 控制智能设备的方法及装置
WO2016110146A1 (zh) 移动终端及虚拟按键的处理方法
WO2015143817A1 (zh) 用户指令执行方法及装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20167004077

Country of ref document: KR

Kind code of ref document: A

Ref document number: 2017537001

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2016/003768

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2016113844

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 15902800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15902800

Country of ref document: EP

Kind code of ref document: A1