CN116234062A - One-to-many input device connection method and device and computer device - Google Patents

One-to-many input device connection method and device and computer device Download PDF

Info

Publication number
CN116234062A
CN116234062A CN202211685701.4A CN202211685701A CN116234062A CN 116234062 A CN116234062 A CN 116234062A CN 202211685701 A CN202211685701 A CN 202211685701A CN 116234062 A CN116234062 A CN 116234062A
Authority
CN
China
Prior art keywords
input device
host
operating system
addresses
connection
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202211685701.4A
Other languages
Chinese (zh)
Other versions
CN116234062B (en
Inventor
杨永元
李佳雄
陈志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fine Triumph Technology Corp ltd
Original Assignee
Shenzhen Kaihui Electronic Technology Co ltd
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 Shenzhen Kaihui Electronic Technology Co ltd filed Critical Shenzhen Kaihui Electronic Technology Co ltd
Priority to CN202211685701.4A priority Critical patent/CN116234062B/en
Publication of CN116234062A publication Critical patent/CN116234062A/en
Application granted granted Critical
Publication of CN116234062B publication Critical patent/CN116234062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a one-to-many input device connection method, a device and a computer device, wherein the one-to-many input device connection method comprises the following steps: s101, respectively virtualizing a plurality of virtual input devices according to a plurality of addresses; s102, selecting one of the virtual input devices corresponding to the addresses to be connected with a host in a wireless communication mode. In this way, if the user switches the connection of the input device between multiple devices frequently, only the control key is needed to select different MAC addresses for broadcasting, because the broadcast MAC addresses are different, the originally connected host device will be automatically disconnected from the input device, and the host device corresponding to another MAC address can be automatically paired with the input device broadcast by the new MAC address, that is, when the new host device is connected with the input device, the user does not need to frequently perform the disconnection operation on multiple host devices such as device 1, device 2 and the like in a manual mode in a crossing manner, so that the use is more convenient for the user.

Description

One-to-many input device connection method and device and computer device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for connecting a one-to-many input device, and a computer device.
In use of a daily bluetooth input device (e.g. keyboard, mouse etc.) the input device must first be disconnected from the input device if it is already connected to the device 1, and after the disconnection the input device must be disconnected from the device 1, the device 2 must be disconnected from the device, and if the user frequently switches between the device 1 and the device 2, the device 1 and the device 2 must be frequently cross-disconnected, which is relatively inconvenient for the user and thus less experienced.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, an object of the present invention is to provide a one-to-many input device connection method, apparatus and computer device.
In order to achieve the above object, according to an embodiment of the present invention, a one-to-many input device connection method includes the steps of:
virtual multiple virtual input devices are respectively formed according to multiple addresses;
one of the virtual input devices corresponding to the address is selected to be connected with a host in wireless communication.
Further, according to an embodiment of the present invention, the selecting a virtual input device corresponding to one of the addresses for wireless communication with a host includes:
receiving a key control signal;
and selecting one of the virtual input devices corresponding to the address according to the received key control signal to be in wireless communication connection with a host.
Further in accordance with an embodiment of the present invention, the address is a MAC address and the wireless communication connection is a bluetooth connection.
Further, according to an embodiment of the present invention, before the selecting the virtual input device corresponding to one of the addresses is connected to a host in wireless communication, the method further includes:
respectively associating different broadcast names according to different MAC addresses;
in bluetooth broadcasting, a broadcast name associated with the MAC address is bluetooth broadcast.
Further, according to an embodiment of the present invention, further comprising:
acquiring identification information of an input device;
judging whether the identification information is matched with the set identification information or not;
if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information;
otherwise, generating a default broadcast name;
and broadcasting the generated broadcast name outwards in a Bluetooth mode.
Further, according to an embodiment of the present invention, after bluetooth broadcasting the broadcast name associated with the MAC address at the time of bluetooth broadcasting, the method further includes:
acquiring an operating system indicator of a host;
judging whether a host operating system can be determined according to the operating system indicator;
if not, the pairing of the host and the input device is terminated.
Further, according to an embodiment of the present invention, after the determining whether the host operating system can be determined according to the operating system indicator, the method further includes:
if the host operating system can be determined, judging that the host operating system is the same as the operating system selected for connection;
if yes, the pairing of the host and the input equipment is completed;
otherwise, the pairing of the host and the input device is terminated.
In another aspect, the present invention also provides a one-to-many input device connection apparatus, including:
the input device virtual modules are used for respectively virtualizing a plurality of virtual input devices according to a plurality of addresses;
and the input device connection module is used for selecting one of the virtual input devices corresponding to the addresses to be in wireless communication connection with a host.
Further, according to an embodiment of the present invention, the input device connection module includes:
the key signal receiving module is used for receiving a key control signal;
and the key signal connection module is used for selecting one of the virtual input devices corresponding to the address to be in wireless communication connection with a host according to the received key control signal.
Further in accordance with an embodiment of the present invention, the address is a MAC address and the wireless communication connection is a bluetooth connection.
Further, according to an embodiment of the present invention, the one-to-many input device connecting apparatus further includes:
the MAC broadcast name association module is used for respectively associating different broadcast names according to different MAC addresses;
and the broadcast name broadcasting module is used for carrying out Bluetooth broadcasting on the broadcast name associated with the MAC address during Bluetooth broadcasting.
Further, according to an embodiment of the present invention, the one-to-many input device connecting apparatus further includes:
the indicator acquisition module is used for acquiring an operating system indicator of the host;
the operating system determining module is used for judging whether the host operating system can be determined according to the operating system indicator;
and the first pairing termination module is used for terminating pairing of the host and the input device if the host operating system cannot be determined.
Further, according to an embodiment of the present invention, the one-to-many input device connecting apparatus further includes:
the operating system judging module is used for judging that the host operating system is the same as the operating system selected for connection if the host operating system can be determined;
the pairing completion module is used for completing pairing of the host and the input equipment if the host operating system is the same as the operating system selected for connection;
and the second pairing termination module is used for terminating the pairing between the host and the input device if the host operating system is different from the operating system which is selectively connected.
In still another aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a first memory, a first processor, and a computer program stored in the first memory and capable of running on the first processor, where the first processor implements the one-to-many input device connection method described above when executing the computer program.
The embodiment of the invention provides a one-to-many input device connection method, a device and a computer device, wherein a plurality of virtual input devices are respectively virtual according to a plurality of addresses through a step S101; s102, selecting one of the virtual input devices corresponding to the addresses to be connected with a host in a wireless communication mode. In this way, if the user switches the connection of the input device between multiple devices frequently, only the control key is needed to select different MAC addresses for broadcasting, because the broadcast MAC addresses are different, the originally connected host device can be automatically disconnected from the input device, and the host device corresponding to another MAC address can be automatically paired with the input device broadcast by the new MAC address, that is, when the new host device is connected with the input device, the user does not need to frequently perform the disconnection operation on multiple host devices such as the device 1, the device 2 and the like in a manual mode, so that the use is more convenient for the user, and the use experience is better when the input device is required to be connected in a cross manner by multiple devices.
Drawings
FIG. 1 is a flowchart of a method for connecting a one-to-many input device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for connecting a virtual input device corresponding to one address to a host in wireless communication according to an embodiment of the present invention;
FIG. 3 is a flowchart of another one-to-many input device connection method according to an embodiment of the present invention;
FIG. 3A is a flowchart of another one-to-many input device connection method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a further one-to-many input device connection method provided by an embodiment of the present invention;
FIG. 5 is a flowchart of a further one-to-many input device connection method provided by an embodiment of the present invention;
FIG. 6 is a flowchart of a further one-to-many input device connection method provided by an embodiment of the present invention;
FIG. 7 is a block diagram of a connection apparatus for a one-to-many input device according to an embodiment of the present invention;
FIG. 8 is a block diagram of an input device connection module according to an embodiment of the present invention;
FIG. 9 is a block diagram of another one-to-many input device connection apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of a computer device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order to enable those skilled in the art to better understand the present invention, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present invention with reference to the accompanying drawings. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In use of a daily bluetooth input device, if the input device is already connected to the device 1, then the device 1 must first be operated to disconnect the input device from the device in order to disconnect the input device from the device 2, after which the input device can only be disconnected from the device 2, and if the user often switches between the device 1 and the device 2, frequent cross-disconnects of the device 1 and the device 2 are required, which is relatively inconvenient for the user and thus less experienced.
In order to solve the above problems, referring to fig. 1, in one aspect, an embodiment of the present invention provides a one-to-many input device connection method, which can switch connection between a plurality of devices, including the steps of:
s101, respectively virtualizing a plurality of virtual input devices according to a plurality of addresses;
s102, selecting one of the virtual input devices corresponding to the addresses to be connected with a host in a wireless communication mode.
Specifically, in the embodiment of the present invention, in step S101, a plurality of virtual input devices are virtual according to a plurality of addresses, respectively. The address is a MAC address, and the wireless communication connection is Bluetooth connection. Multiple MAC addresses may be written in the input device. Because the input device is provided with a plurality of different MAC addresses, when the Bluetooth connection is performed, the different MAC addresses can be selected to be connected with different host devices in a Bluetooth communication mode. That is, the input device may perform bluetooth broadcasting by selecting a different address when it is connected to the host. It appears to the host that there are multiple connectable input devices, i.e. one input device can virtually come out of multiple virtual input devices according to different broadcast addresses. In step S102, a virtual input device corresponding to one of the addresses is selected to be connected to a host in wireless communication. Since in a connection an input device typically establishes a communication connection with only one host device, a connection may be made by selecting a virtual input device corresponding to one of the addresses to be connected in wireless communication with a host. Wherein, the selection can adopt a manual selection mode, and a selection instruction is sent to the input device controller through the control key.
For example, referring to fig. 2, the selecting a virtual input device corresponding to one of the addresses for wireless communication with a host includes:
s1021, receiving a key control signal;
s1022, selecting one of the virtual input devices corresponding to the address according to the received key control signal to be in wireless communication connection with a host.
Specifically, a control key may be provided at the input device end, through which a selection command may be sent to the input device controller, and after the user sends the selection control command to the input device controller through the control key, in step S1021, a key control signal is received through a program running in the input device controller; and in step S1022, a virtual input device corresponding to one of the addresses is selected to be connected to a host in wireless communication according to the received key control signal. The user can input instructions to the software program by operating a combination key or a special key of the input device to determine which mac address to use for bluetooth communication, when the user switches the mac address, the input device is disconnected from the device being connected, bluetooth broadcasting is performed by using the mac address switched by the user, so that the old device is not connected to the input device, and a new device can be connected to the input device. For example: pressing the "FN" + "1" key, broadcasting using the 1 st mac, pairing device 1 with the input device, if the input device is to be connected to device 2, pressing the "FN" + "2" key, disconnecting the input device from device 1, broadcasting using the 2 nd mac, at this time, device 2 may be paired with the input device, if the "FN" + "1" key is pressed when device 1 is to be connected, disconnecting the input device from device 1, and since device 1 has a pairing record, device 1 will actively connect back to the input device. The host device may be an electronic device such as a tablet computer, a notebook computer, or a desktop personal computer. The input device may be a keyboard, a mouse, etc.
In this way, if the user switches the connection of the input device between multiple devices frequently, only the control key is needed to select different MAC addresses for broadcasting, because the broadcast MAC addresses are different, the originally connected host device can be automatically disconnected from the input device, and the host device corresponding to another MAC address can be automatically paired with the input device broadcast by the new MAC address, that is, when the new host device is connected with the input device, the user does not need to frequently perform the disconnection operation on multiple host devices such as the device 1, the device 2 and the like in a manual mode, so that the use is more convenient for the user, and the use experience is better when the input device is required to be connected in a cross manner by multiple devices.
Referring to fig. 5, fig. 5 is a flowchart of a one-to-many input device connection method according to an embodiment of the present invention, as shown in fig. 5, when a program including the method is run, a last-used MAC address record is read first, if an input device is connected to a host device, a last-used MAC address is maintained, and broadcasting is performed by reading the last-used MAC address and using the last-used excessive MAC address. In the process, whether a control instruction is input by a user through a control key or other modes is also detected, if not, the user broadcasts by the MAC address which is used last time and establishes connection with the host equipment, if a new control instruction is input, whether connection with one host equipment is established is judged, and if not, the user switches to the MAC address selected by the user to broadcast. Disconnecting wireless communication with the host if a connection has been established with the host device
And connecting and switching to the MAC address selected by the user for broadcasting. And saves the MAC address 5 selected by the user. For example, it may be held in a flash memory. At this time, it is determined whether or not a connection is established with the host through the new MAC address. If a connection has been established, pairing ends and the input device and host device can actually communicate. If the connection relation is not established, returning to the step of detecting the input instruction of the user. It is continued to detect whether the user inputs a signal instruction to select a new MAC address to establish a connection with other host devices.
0 referring to fig. 3, in one embodiment of the present invention, the one-to-many input device connection method includes the steps of:
s201, virtual input equipment with a plurality of different communication connection addresses is respectively and virtually obtained according to a plurality of MAC addresses.
S202, respectively associating different broadcast names according to different MAC addresses.
And 5S203, in the Bluetooth broadcasting, the broadcasting name associated with the MAC address is subjected to Bluetooth broadcasting.
S204, selecting one of the virtual input devices corresponding to the MAC address to be connected with a host in a wireless communication manner.
Specifically, the above step S201 is basically the same as the previous embodiment, and a plurality of different virtual input devices can be virtualized by different MAC addresses. Different host devices may cross-connect with the input device by establishing a 0 connection. When a host device is connected, a MAC address is corresponding. After broadcasting through the new MAC address, the host device connected with the old MAC address is automatically disconnected. The input device may then establish a wireless communication connection with the new host device by broadcasting the new MAC address. In step S202, different broadcast names are associated with each other according to different MAC addresses. Different mac addresses may
Different broadcast names are used, such as: the first mac address uses "Keyboard 1" and the second mac5 address uses "Keyboard 2". S203, in the Bluetooth broadcasting process, the broadcasting name associated with the MAC address is subjected to Bluetooth broadcasting. The digitalized MAC address is related through a simple broadcast name, so that a user can better confirm the currently used MAC address in the using process. S204, selecting one of the virtual input devices corresponding to the MAC address to be connected with a host in a wireless communication manner. During the use process
In the step S204, the virtual input device corresponding to one MAC address is selected to be in wireless communication connection with a host computer by the step S204, the step S0, and thus, the wireless connection switching between the input device and different host computer devices can be facilitated.
Referring to fig. 3A, in one embodiment of the present invention, the one-to-many input device connection method includes the steps of:
s301, virtual input equipment 5 is virtually connected with a plurality of different communication addresses according to a plurality of MAC addresses.
S302, respectively associating different broadcast names according to different MAC addresses.
S303, in the Bluetooth broadcasting process, the broadcasting name associated with the MAC address is subjected to Bluetooth broadcasting.
S304, acquiring identification information of the input device.
And 0S305, judging whether the identification information is matched with the set identification information.
And S306, if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information.
S307, if not, generating a default broadcast name.
S308, broadcasting the generated broadcast name outwards in a Bluetooth mode.
5S309, selecting one of the virtual input devices corresponding to the MAC address to be connected with a host in wireless communication.
Specifically, in this embodiment, steps S301, S302, S303 and S309 are the same as those in the previous embodiment, and the detailed description is not repeated here. In step S304, the electronic device obtains its own unique identifier
And (5) identifying information. The electronic equipment is Bluetooth equipment. For example, a bluetooth keyboard may be used. In one embodiment of the invention, the unique identification information is a MAC address or serial number. Since the MAC address or serial number has uniqueness, the electronic device can be uniquely identified. In this way, in the subsequent steps, the MAC address or the serial number is associated with the Bluetooth broadcast name, so that the differentiated setting of the broadcast names of different electronic devices is realized.
After the unique identification information of the electronic device is acquired, in step S305, by judging whether the 5 unique identification information matches the set identification information; the range of unique identification information for an electronic device can be quite large. Only when the unique identification information of the electronic device falls within the set range and matches with the set identification information, the bluetooth broadcast name generation process is performed through step S306, thereby reducing the complex and time-consuming operation process. The unique identification information is, for example, a MAC address or a serial number.
The range of the MAC address is very large, if the unique identification information of the acquired electronic equipment is compared with all the MAC0 addresses, the calculated amount is very large, and the purpose of quickly generating the broadcast name cannot be achieved. In addition, in the production or application of bluetooth devices by an enterprise, the number of production, testing or applications of bluetooth devices is often limited. For example, when an enterprise produces a lot of bluetooth keyboards, typically thousands or tens of thousands, the number of bluetooth keyboards is limited when a lot of bluetooth keyboards is tested, so that only a limited number of bluetooth keyboards need to be distinguished for broadcast names.
In step S306, if the identification information matches with the set identification information, a broadcast name corresponding to the set identification information is generated; that is, when the acquired unique identification information of the electronic device matches or is the same as one of the set identification information, a broadcast name corresponding to the set identification information is generated; thus, the broadcast name is not only unique but also easily identified. When the generated broadcast name is broadcasted, other Bluetooth devices are more convenient to connect, and errors are avoided.
In step S307, if the bluetooth device Mac address is not within the set range, a software default broadcast name is used. Therefore, error generation caused by the fact that no broadcast name is generated is avoided, and normal use of Bluetooth equipment is guaranteed. And the generated broadcast name is broadcast outwards in a bluetooth mode through step S308. Therefore, each keyboard can generate different serial numbers and Bluetooth broadcast names by burning Mac addresses of the devices through the burning tool, each keyboard has corresponding serial numbers and broadcast names, and when a plurality of Bluetooth devices broadcast simultaneously, other Bluetooth devices can accurately find the devices to be connected through the different Bluetooth broadcast names.
Referring to fig. 4, in one embodiment of the present invention, the one-to-many input device connection method includes the steps of:
s401, respectively virtually generating a plurality of virtual input devices with different communication connection addresses according to a plurality of MAC addresses.
S402, respectively associating different broadcast names according to different MAC addresses.
S403, in the Bluetooth broadcasting, the broadcasting name associated with the MAC address is subjected to Bluetooth broadcasting.
S404, acquiring an operating system indicator of the host.
S405, judging whether the host operating system can be determined according to the operating system indicator.
S406, if the host operating system cannot be confirmed, the pairing of the host and the input device is terminated.
S407, if the host operating system can be confirmed, judging that the host operating system is the same as the operating system selected for connection, and if so, completing pairing of the host and the input device; otherwise, the pairing of the host and the input device is terminated.
S408, selecting one of the virtual input devices corresponding to the MAC address to be connected with a host in wireless communication.
Specifically, in this embodiment, steps S401, S402, S403 and S408 are the same as those in the previous embodiment, and the detailed description is not repeated here. In this embodiment, in order to more correctly pair the input device with the new host device wirelessly, the operating system indicator of the host is obtained in step S404. Since the operating system indicator includes operating system information, the operating system information can be acquired through the operating system indicator. Referring to fig. 6, after the input device broadcasts via bluetooth, an instruction to select a host system is received. At this point, the host initiates the pairing process. The input device obtains an operating system indicator from the host. And in step S405, it is determined whether the host operating system can be determined according to the operating system indicator. In this step, the operating system is validated by analyzing the operating system indicator and determining whether the host operating system can be determined. In step S406, if the host operating system cannot be confirmed, pairing of the host and the input device is terminated. If the host's operating system cannot be confirmed, the connected host is not the host operating system that the user has selected to be connected to, and thus pairing with the host device is terminated here. If the host operating system can be determined, a pairing connection with the host can be made. In another embodiment of the present invention, the validation of the operating system of the host is also implemented through step S407. In step S407, if the host operating system can be confirmed, it is determined that the host operating system is the same as the operating system selected for connection. If yes, the pairing of the host and the input equipment is completed; otherwise, the pairing of the host and the input device is terminated.
In the embodiment of the invention, the input device software can select and complete pairing with hosts of different operating systems according to different mac addresses. And when the host initiates pairing, acquiring an operating system indicator of the host, if the operating system of the host is the same as the operating system selected by the user, completing pairing of the host and the input device, and otherwise, terminating pairing of the host and the input device.
In another aspect, referring to fig. 7, the present invention further provides a one-to-many input device connection apparatus, including: the system comprises a plurality of input device virtual modules and an input device connection module, wherein the plurality of input device virtual modules are used for respectively virtualizing a plurality of virtual input devices according to a plurality of addresses;
the input device connection module is used for selecting one of the virtual input devices corresponding to one of the addresses to be connected with a host in a wireless communication manner.
Referring to fig. 8, the input device connection module includes: the device comprises a key signal receiving module and a key signal connecting module, wherein the key signal receiving module is used for receiving a key control signal;
the key signal connection module is used for selecting one of the virtual input devices corresponding to the address to be connected with a host in a wireless communication mode according to the received key control signal.
Further, in an embodiment of the present invention, the address is a MAC address and the wireless communication connection is a bluetooth connection.
Referring to fig. 9, the one-to-many input device connection apparatus further includes: the system comprises an MAC broadcast name association module and a broadcast name broadcast module, wherein the MAC broadcast name association module is used for respectively associating different broadcast names according to different MAC addresses;
the broadcast name broadcasting module is used for carrying out Bluetooth broadcasting on the broadcast name associated with the MAC address during Bluetooth broadcasting.
Referring to fig. 9, the one-to-many input device connection apparatus further includes: the system comprises an indicator acquisition module, an operating system determination module and a first pairing termination module, wherein the indicator acquisition module is used for acquiring an operating system indicator of a host;
the operating system driving module is used for judging whether the host operating system can be determined according to the operating system indicator;
the first pairing termination module is used for terminating pairing of the host and the input device if the host operating system cannot be determined.
Referring to fig. 9, the one-to-many input device connection apparatus further includes: the system comprises an operating system judging module, a second pairing termination module and a pairing completion module, wherein the operating system judging module is used for judging that the host operating system is the same as the operating system which is selectively connected if the host operating system can be determined;
the second pairing termination module is used for terminating pairing between the host and the input device if the host operating system is different from the operating system selected for connection;
and the pairing completion module is used for completing pairing of the host and the input equipment if the host operating system is the same as the operating system selected for connection.
Referring to fig. 10, in yet another aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a first memory, a first processor, and a computer program stored on the first memory and capable of running on the first processor, where the first processor implements the one-to-many input device connection method in the above steps when executing the computer program. Alternatively, the computer program, when executed by a processor, implements the functions of the modules/units in the apparatus described in the above embodiments, for example, the functions of the modules shown in fig. 10.
Referring to fig. 10, the computer device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that the illustrations are merely examples of computer devices and are not limiting of computer devices, and may include more or fewer components than illustrated, or combine certain components, or different components, e.g., the computer devices may also include input and output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete preset hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device. Further, the memory may also include both internal storage units and external storage devices of the computer device. The memory is used for storing the computer program and other programs and data required by the computer device. The memory may also be used to temporarily store data that has been output or is to be output.
The computer program may be stored in a computer readable storage medium, which computer program, when being executed by a processor, may carry out the steps of the various method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that the present invention may be modified or equivalents substituted for some of the features thereof. All equivalent structures made by the content of the specification and the drawings of the invention are directly or indirectly applied to other related technical fields, and are also within the scope of the invention.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives, and variations may be made in the above embodiments by those skilled in the art without departing from the spirit and principles of the invention.

Claims (10)

1. A one-to-many input device connection method, comprising the steps of:
virtual multiple virtual input devices are respectively formed according to multiple addresses;
one of the virtual input devices corresponding to the address is selected to be connected with a host in wireless communication.
2. The one-to-many input device connection method of claim 1, wherein selecting a virtual input device corresponding to one of the addresses for wireless communication with a host comprises:
receiving a key control signal;
and selecting one of the virtual input devices corresponding to the address according to the received key control signal to be in wireless communication connection with a host.
3. The one-to-many input device connection method of claim 1, wherein the address is a MAC address and the wireless communication connection is a bluetooth connection.
4. A one-to-many input device connection method as in claim 3, further comprising, prior to said selecting a virtual input device corresponding to one of the addresses for wireless communication with a host:
respectively associating different broadcast names according to different MAC addresses;
in bluetooth broadcasting, a broadcast name associated with the MAC address is bluetooth broadcast.
5. A one-to-many input device connecting method as claimed in any one of claims 1 to 4, further comprising:
acquiring identification information of an input device;
judging whether the identification information is matched with the set identification information or not;
if the identification information is matched with the set identification information, generating a broadcast name corresponding to the set identification information;
otherwise, generating a default broadcast name;
and broadcasting the generated broadcast name outwards in a Bluetooth mode.
6. The one-to-many input device connection method according to claim 4, further comprising, after bluetooth broadcasting the broadcast name associated with the MAC address at the time of bluetooth broadcasting:
acquiring an operating system indicator of a host;
judging whether a host operating system can be determined according to the operating system indicator;
if not, the pairing of the host and the input device is terminated;
if the host operating system can be determined, judging that the host operating system is the same as the operating system selected for connection;
if yes, the pairing of the host and the input equipment is completed;
otherwise, the pairing of the host and the input device is terminated.
7. A one-to-many input device connection apparatus, comprising:
the input device virtual modules are used for respectively virtualizing a plurality of virtual input devices according to a plurality of addresses;
and the input device connection module is used for selecting one of the virtual input devices corresponding to the addresses to be in wireless communication connection with a host.
8. A one-to-many input device connection apparatus as defined in claim 7, wherein the input device connection module comprises:
the key signal receiving module is used for receiving a key control signal;
and the key signal connection module is used for selecting one of the virtual input devices corresponding to the address to be in wireless communication connection with a host according to the received key control signal.
9. A one-to-many input device connecting apparatus as defined in claim 7, further comprising:
the indicator acquisition module is used for acquiring an operating system indicator of the host;
the operating system determining module is used for judging whether the host operating system can be determined according to the operating system indicator;
and the first pairing termination module is used for terminating pairing of the host and the input device if the host operating system cannot be determined.
10. A computer device comprising a first memory, a first processor and a computer program stored on the first memory and executable on the first processor, wherein the first processor implements the one-to-many input device connection method of any one of claims 1 to 6 when executing the computer program.
CN202211685701.4A 2022-12-27 2022-12-27 One-to-many input device connection method and device and computer device Active CN116234062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211685701.4A CN116234062B (en) 2022-12-27 2022-12-27 One-to-many input device connection method and device and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211685701.4A CN116234062B (en) 2022-12-27 2022-12-27 One-to-many input device connection method and device and computer device

Publications (2)

Publication Number Publication Date
CN116234062A true CN116234062A (en) 2023-06-06
CN116234062B CN116234062B (en) 2024-03-01

Family

ID=86568751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211685701.4A Active CN116234062B (en) 2022-12-27 2022-12-27 One-to-many input device connection method and device and computer device

Country Status (1)

Country Link
CN (1) CN116234062B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160062923A1 (en) * 2014-09-02 2016-03-03 Logitech Europe S.A. Universal input device
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
CN110087222A (en) * 2019-04-30 2019-08-02 努比亚技术有限公司 Role switching control method, communication equipment and storage medium
CN110730441A (en) * 2019-10-18 2020-01-24 飞天诚信科技股份有限公司 Bluetooth device and working method thereof
CN113692067A (en) * 2021-08-10 2021-11-23 北京小米移动软件有限公司 Device connection method, device and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160062923A1 (en) * 2014-09-02 2016-03-03 Logitech Europe S.A. Universal input device
CN105389020A (en) * 2014-09-02 2016-03-09 罗技欧洲公司 Universal input device
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
CN110087222A (en) * 2019-04-30 2019-08-02 努比亚技术有限公司 Role switching control method, communication equipment and storage medium
CN110730441A (en) * 2019-10-18 2020-01-24 飞天诚信科技股份有限公司 Bluetooth device and working method thereof
CN113692067A (en) * 2021-08-10 2021-11-23 北京小米移动软件有限公司 Device connection method, device and readable storage medium

Also Published As

Publication number Publication date
CN116234062B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US6529119B1 (en) Establishment of communications with a selected device in a multi-device environment
MX2014009070A (en) Characteristic information acquisition method, device and network equipment.
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
EP3993338A1 (en) Device binding method and apparatus, and electronic device
CN106851758B (en) Communication network switching method and terminal equipment
CN113490192A (en) Bluetooth connection method, device, terminal equipment and readable storage medium
CN104780206A (en) Data sharing method and device
CN107548055B (en) Multi-region SIM card selection method, system and device and industrial personal computer
CN108924325B (en) Data processing method and related device
CN116234062B (en) One-to-many input device connection method and device and computer device
CN113132522A (en) Test method, device, server and medium
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN111049717A (en) Variable acquisition method and equipment
CN113766406B (en) Earphone testing method, system and device
CN113886302A (en) Serial port number obtaining method and device of application equipment, terminal equipment and storage medium
CN114422236A (en) Intelligent device access method and device and electronic device
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
CN113360411A (en) Code coverage rate detection method and device based on parallel variation test
CN114238194A (en) USB combined device and enumeration method
CN112020019B (en) Data transmission method, device, terminal equipment and storage medium
CN112613081B (en) Memory chip sequence code generation method and device, electronic equipment and storage medium
CN105988804B (en) Software transfer method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240301

Address after: 226000 in Dongchen town industrial community, Rugao City, Nantong City, Jiangsu Province (Group 13, xueanju)

Patentee after: FINE TRIUMPH TECHNOLOGY Corp.,Ltd.

Country or region after: China

Address before: 518000 1008, Biwan building, No. 1, Biwan Road East, Haibin new village, Gushu community, Xixiang street, Bao'an District, Shenzhen, Guangdong Province

Patentee before: SHENZHEN KAIHUI ELECTRONIC TECHNOLOGY Co.,Ltd.

Country or region before: China