Disclosure of Invention
In view of the above technical problems, the present invention provides a multi-coordination bluetooth input system.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
A multiple collaboration bluetooth input system comprising a master input device and a plurality of slave input devices, wherein:
the main input device comprises a first Bluetooth SOC module and a first antenna module which have master-slave integration and multi-connection Bluetooth stack functions, and an RF output pin of the first Bluetooth SOC module is connected with the first antenna module;
the slave input device comprises a second Bluetooth SOC module, an input module and a second antenna module, wherein the second Bluetooth SOC module is connected with the input module through a GPIO port or an AD conversion port, and is connected with the second antenna module through an RF output pin;
the plurality of second bluetooth SOC module with first bluetooth SOC module wireless connection, first bluetooth SOC module is connected with the host computer is paird, after each second bluetooth SOC module with first bluetooth SOC module is connected, equipment descriptor and HID report of second bluetooth SOC module are established to first bluetooth SOC module developments, second bluetooth SOC module will the input data of input module passes through first bluetooth SOC module transmission to the host computer.
Furthermore, the first Bluetooth SOC module and the second Bluetooth SOC module are both composed of a Bluetooth SOC chip and a crystal oscillator, a capacitor and a resistor which are connected with the periphery of the Bluetooth SOC chip.
Further, the input module comprises one or more of a keyboard module, a numeric keypad module, a special symbol keyboard module, a gamepad module, a mouse module, a control panel module, an instrument panel module, a stylus module, a digital microphone module, a digital sensor module and a virtual reality interaction module.
Further, the main input device further comprises a matrix keyboard module, and the first bluetooth SOC module is connected with the matrix keyboard module through a GPIO port.
Further, a main control firmware is preset in each of the first bluetooth SOC module and the second bluetooth SOC module, the main control firmware is an executable binary file with master-slave integration and multi-connection functions, after the first bluetooth SOC module is connected with the host, the main control firmware of the first bluetooth SOC module sends the HID report to the host and searches for the second bluetooth SOC module to be connected in each preset period, after the first bluetooth SOC module and the second bluetooth SOC module to be connected are connected in a pairing manner, the second bluetooth SOC module sends the input data of the input module to the first bluetooth SOC module in the preset period, and after the first bluetooth SOC module receives the input data, the HID report is sent to the host.
Further, when the first bluetooth SOC module and the second bluetooth SOC module are connected in a pairing manner, the main control firmware of the second bluetooth SOC module is in a SLAVE mode, and the main control firmware of the first bluetooth SOC module is in a MASTER mode.
Further, the first antenna module and the second antenna module are both PCB antennas with 50 ohm impedance.
The technical scheme of the disclosure has the following beneficial effects:
the multi-cooperation Bluetooth input system can be simultaneously connected with a plurality of slave input devices, dependence on a host physical interface can be greatly reduced, and input functions are enriched; by adopting the Bluetooth SOC, the peripheral devices are few, the circuit structure is simple, and the manufacturing cost is low; the multi-cooperation Bluetooth input system effectively improves the input efficiency in the fields of industrial control, large-scale control panels, group input, electronic contests and the like, and plays a great role.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are only schematic illustrations of the present disclosure. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
As shown in fig. 1, an embodiment of the present specification provides a multiple-cooperation bluetooth input system, including:
a multiple collaborative bluetooth input system comprising amaster input device 1 and a number ofslave input devices 2, wherein:
themain input device 1 comprises a first BluetoothSOC module 11 with master-slave integration and multi-connection Bluetooth stack functions, amatrix input module 22 and afirst antenna module 12, wherein an RF output pin of the first BluetoothSOC module 11 is connected with thefirst antenna module 12;
theslave input device 2 comprises a second BluetoothSOC module 21, aninput module 22 and asecond antenna module 23, wherein the second BluetoothSOC module 21 is connected with theinput module 22 through a GPIO port or an AD conversion port, and the second BluetoothSOC module 21 is connected with thesecond antenna module 23 through an RF output pin;
the plurality of secondbluetooth SOC modules 21 are in wireless connection with the firstbluetooth SOC module 11, the firstbluetooth SOC module 11 is in pairing connection with thehost 3, after each secondbluetooth SOC module 21 is connected with the firstbluetooth SOC module 11, the firstbluetooth SOC module 11 dynamically establishes the device descriptor and the HID report of the secondbluetooth SOC module 21, and the second bluetooth SOC module transmits the input data of theinput module 22 to thehost 3 through the firstbluetooth SOC module 11.
As shown in fig. 2, the plurality ofslave input devices 2 are all connected with themaster input device 1 through bluetooth, when the connection is completed, themaster input device 1 generates the HID descriptor of theslave input device 2, the master input device transparently transmits the input and output data of theslave input device 2 to thehost 3, and thehost 3 regards the data as the data of the master input device, so that the effect of cooperative work of theslave input device 2 and themaster input device 1 is achieved.
Thehost 3 may be a computer or a server.
In one embodiment, the firstbluetooth SOC module 11 and the secondbluetooth SOC module 21 are each composed of a bluetooth SOC chip and a crystal oscillator, a capacitor, and a resistor connected to the periphery of the bluetooth SOC chip. The peripheral devices are few, the circuit structure is simple, the cost is low, and the popularization and the use are facilitated.
In one embodiment, theinput module 22 includes one or more of a keyboard module, a numeric keypad module, a special symbol keyboard module, a joystick module, a mouse module, a control panel module, an instrument panel module, a stylus module, a digital microphone module, a digital sensor module, a virtual reality interaction module. Theinput module 22 may be an input device in various forms, and any input device that can generate input data under human-computer interaction is included in theinput module 22 of the present embodiment.
In one embodiment, as shown in fig. 3, themain input device 1 further includes amatrix keyboard module 13, and the firstbluetooth SOC module 11 is connected to thematrix keyboard module 13 through a GPIO port. In case that multi-collaborative input is not required, themain input module 1 can be used with a single input keyboard.
In an embodiment, the firstbluetooth SOC module 11 and the secondbluetooth SOC module 21 are both preset with a main control firmware, the main control firmware is an executable binary file with master-slave integration and multi-connection functions, after the firstbluetooth SOC module 11 is connected to thehost 3, the main control firmware of the firstbluetooth SOC module 11 sends the HID report to thehost 3 and searches for the secondbluetooth SOC module 21 to be connected in each preset period, after the firstbluetooth SOC module 11 and the secondbluetooth SOC module 21 to be connected are connected in a pairing manner, the second bluetooth SOC module sends the input data of theinput module 22 to the firstbluetooth SOC module 11 in the preset period, and after the firstbluetooth SOC module 11 receives the input data, the HID report is sent to thehost 3.
In an embodiment, when the firstbluetooth SOC module 11 and the secondbluetooth SOC module 21 are connected in a pairing manner, the MASTER firmware of the secondbluetooth SOC module 21 is in SLAVE mode, and the MASTER firmware of the firstbluetooth SOC module 11 is in MASTER mode. I.e. the firstbluetooth SOC module 11 is in "master" mode and the secondbluetooth SOC module 21 is in "slave" mode.
In one embodiment, thefirst antenna module 12 and thesecond antenna module 23 are both 50 ohm impedance PCB antennas.
In one embodiment, the bluetooth stack of the firstbluetooth SOC module 11 has a master-slave integrated multiple connection bluetooth stack protocol.
The operation principle is as follows: referring to fig. 4 to 5, in operation of the present invention, after themain input device 1 is started, the firstbluetooth SOC module 11 initializes the main control firmware, initializes the bluetooth stack and initializes the HID, and then the firstbluetooth SOC module 11 is successfully connected to thehost 3 and sends a report to thehost 3, meanwhile, the firstbluetooth SOC module 11 scans and identifies the secondbluetooth SOC module 21 and then connects to the secondbluetooth SOC module 21, and dynamically establishes the device descriptor and the HID report of the secondbluetooth SOC module 21, when the secondbluetooth SOC module 21 detects that theinput module 22 has input data, the NOTIFY is sent to the firstbluetooth SOC module 11, and the firstbluetooth SOC module 11 sends the received input data to thehost 3.
The multi-cooperation Bluetooth input system can be simultaneously connected with a plurality ofslave input devices 2, dependence on a physical interface of ahost 3 can be greatly reduced, and input functions are enriched; the Bluetooth SOC chip is adopted, so that the number of peripheral devices is small, the circuit structure is simple, and the manufacturing cost is low; the multi-cooperation Bluetooth input system effectively improves the input efficiency in the fields of industrial control, large-scale control panels, group input, electronic contests and the like, and plays a great role.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.