CN103455456B - The method and apparatus that a kind of keyboard macroefficiency is uploaded - Google Patents
The method and apparatus that a kind of keyboard macroefficiency is uploaded Download PDFInfo
- Publication number
- CN103455456B CN103455456B CN201310404900.8A CN201310404900A CN103455456B CN 103455456 B CN103455456 B CN 103455456B CN 201310404900 A CN201310404900 A CN 201310404900A CN 103455456 B CN103455456 B CN 103455456B
- Authority
- CN
- China
- Prior art keywords
- keyboard
- macroefficiency
- main frame
- macro
- instruction
- 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.)
- Expired - Fee Related
Links
Abstract
The present invention relates to computer keyboard key functional realiey technical field, particularly relate to the method and apparatus that a kind of keyboard macroefficiency is uploaded, the USB data transmission passage between keyboard and main frame is enumerated as the key command interface with transmission keyboard-coding function and the macro-instruction interface with transmission macro operation functional nucleotide sequence;Extract pending keyboard-coding after obtaining and resolve key command, be uploaded to main frame by key command interface;Receive and parse through macroefficiency instruction and extract pending macro operation sequence, be uploaded to main frame by macro-instruction interface.The USB device of keyboard enumerates the key command interface for uploading key command and respectively for uploading the macro-instruction interface of macroefficiency instruction, when user carries out key command input and macroefficiency instruction is uploaded simultaneously, key command interface and macro-instruction interface USB data transmission passage between keyboard and main frame respectively transmits information, two actions do not interfere with each other, perform simultaneously, improve keyboard transmission data efficiency.
Description
Technical field
The present invention relates to computer keyboard key functional realiey technical field, particularly relate to a kind of keyboard macroefficiency
The method and apparatus uploaded.
Background technology
Grand is one of indispensable function of current gamepad, refer to by by actuation of keys according to oneself demand
Edit, and recording and storing is in keyboard, can disposably carry out the function of this batch of action, namely being permitted
MIMD is combined into an instruction.Grand player can be allowed to make the continual command oneself liked, allow game time make
Shortcut tail off, reduce by the trouble of a pile button, it is also possible to add some special-effects, increase trip
Play enjoyment.
The macroefficiency implementation of gamepad mainly has two kinds in the market, and the first is to use to drive in fact
Existing, by driving the actuation of keys of record button, it is saved in PC system, when grand being triggered, drives again
Recall record, action is passed to PC system.The second is to use to drive the actuation of keys recording keyboard, so
After be saved in keyboard, when grand being triggered, keyboard itself carry out grand instruction and resolve and be uploaded to PC
System.In the second implementation, when grand be stored in keyboard after, even if keyboard moves to not be correlated with
The PC system driven, it is also possible to use the most stored good macroefficiency.So the second implementation relative to
For the first the most convenient, apply more extensive.But in the second implementation, due to grand storage with
And to upload be all to be performed by keyboard itself, it is achieved mode increasingly complex, particularly use button as user
Carry out input and when uploading generation conflict of macro-instruction, it is necessary to abandon an action, only carry out an action.
Summary of the invention
It is an object of the invention to propose the method and apparatus that a kind of keyboard macroefficiency is uploaded, it is possible to realize keyboard
Key command input is uploaded with macroefficiency instruction and is carried out simultaneously, and both do not interfere with each other.
For reaching this purpose, the present invention by the following technical solutions:
First aspect, it is provided that a kind of method that keyboard macroefficiency is uploaded, including:
Be enumerated as the USB data transmission passage between keyboard and main frame having transmission keyboard-coding function by
Key instruction interface and the macro-instruction interface with transmission macro operation functional nucleotide sequence;
Obtain key command by keyboard, resolve described key command and extract from programmable button code set
Corresponding pending keyboard-coding, uploads described pending keyboard-coding to main frame by key command interface;
Reception macroefficiency instructs, and resolves the instruction of described macroefficiency and extracts corresponding from default macro-instruction set
Pending macro operation sequence, uploads described pending macro operation sequence to main frame by macro-instruction interface.
Wherein, the instruction of described macroefficiency is triggered by key command or is triggered by drive command.
Wherein, also include before the instruction of described reception macroefficiency: open macroefficiency by key command or pass through
Drive command opens macroefficiency.
Wherein, the method that described keyboard macroefficiency is uploaded, also include: set up and store macro operation sequence with
The pressing keys, the pressing keys duration that are obtained by keyboard are corresponding with the operation information unclamping button
Preset macro-instruction set.
Wherein, the method that described keyboard macroefficiency is uploaded, also include: set up and store key command and press
The programmable button code set that key coding information is corresponding.
Wherein, the macro operation sequence in described default macro-instruction set includes obtaining keyboard LED state to main frame
Macro operation sequence or not to main frame obtain keyboard LED state macro operation sequence.
Second aspect, it is provided that the device that a kind of keyboard macroefficiency is uploaded, including by between keyboard and main frame
USB data transmission passage is enumerated the key command interface with transmission keyboard-coding function obtained and has biography
The macro-instruction interface of defeated macro operation functional nucleotide sequence;
Described key command interface is used for uploading described pending keyboard-coding to main frame;Described macro-instruction interface
For uploading described pending macro operation sequence to main frame;
Also include:
Receive key command unit: for obtaining key command by keyboard,
Resolve key command unit: be used for resolving described key command and extracting from programmable button code set
Corresponding pending keyboard-coding,
Receive macroefficiency command unit: be used for receiving macroefficiency instruction,
Resolve macroefficiency command unit: be used for resolving the instruction of described macroefficiency and carrying from default macro-instruction set
Take corresponding pending macro operation sequence,
Wherein, the device that described keyboard macroefficiency is uploaded, also include driver element: be used for sending driving life
Order triggers macroefficiency instruction.
Wherein, the device that described keyboard macroefficiency is uploaded, also include preset macroinstruction set close signal generating unit:
For set up and store macro operation sequence and the pressing keys obtained by keyboard, the pressing keys duration and
Unclamp the default macro-instruction set that the operation information of button is corresponding.
Wherein, the device that described keyboard macroefficiency is uploaded, also include that programmable button code set generates single
Unit: for setting up and store the programmable button code set that key command is corresponding with keyboard-coding information.
The beneficial effects of the present invention is: the method and apparatus that a kind of keyboard macroefficiency is uploaded, by keyboard and master
USB data transmission passage between machine is enumerated as key command interface and the tool with transmission keyboard-coding function
There is the macro-instruction interface of transmission macro operation functional nucleotide sequence;Pending button is extracted after obtaining and resolve key command
Coding, is uploaded to main frame by key command interface;Receive and parse through macroefficiency instruction and extract pending grand behaviour
Make sequence, be uploaded to main frame by macro-instruction interface.The USB device of keyboard is enumerated respectively for uploading button
Instruction key command interface and for upload macroefficiency instruction macro-instruction interface, when user carry out simultaneously by
When key instruction input and macroefficiency instruction are uploaded, key command interface and macro-instruction interface are respectively keyboard and master
Transmitting information in USB data transmission passage between machine, two actions do not interfere with each other, and perform simultaneously, improve
Keyboard transmission data efficiency.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, the embodiment of the present invention will be retouched below
In stating, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only
Some embodiments of the present invention, for those of ordinary skill in the art, are not paying creative work
Under premise, it is also possible to content according to embodiments of the present invention and these accompanying drawings obtain other accompanying drawing.
Fig. 1 is the schematic flow sheet of the method that the keyboard macroefficiency that the embodiment of the present invention 1 provides is uploaded;
Fig. 2 is the schematic flow sheet of the method that the keyboard macroefficiency that the embodiment of the present invention 2 provides is uploaded;
Fig. 3 is the structural representation of the device that the keyboard macroefficiency that the embodiment of the present invention 3 provides is uploaded;
Fig. 4 is the structural representation of the device that the keyboard macroefficiency that the embodiment of the present invention 4 provides is uploaded.
Detailed description of the invention
Technical scheme and the technique effect reached for making to present invention solves the technical problem that, using are more clear
Chu, is described in further detail the technical scheme of the embodiment of the present invention below in conjunction with accompanying drawing, it is clear that
Described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on this
Embodiment in bright, those skilled in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, the flow process signal of the method uploaded of keyboard macroefficiency provided for the embodiment of the present invention 1
Figure;
A kind of method providing keyboard macroefficiency to upload, comprises the steps:
S101, the USB data transmission passage between keyboard and main frame is enumerated as having transmission keyboard-coding merit
The key command interface of energy and the macro-instruction interface with transmission macro operation functional nucleotide sequence;
According to USB keyboard application process in USB, the USB data transmission between keyboard and main frame is led to
Road be abstracted into one there is the transmission key command interface of keyboard-coding function and one there is transmission macro operation sequence
The macro-instruction interface of row function.Described USB data transmission passage refers to: keyboard side USB drives, the USB of keyboard
The data including USB data line between end points, the USB end points of main frame and two USB end points
Transmission channel.
Particularly as follows: first, the keyboard USB end points of transmission data is defined as one to described enumeration process by keyboard side
Individual keyboard USB interface, and keyboard USB end points is connected to by USB data line the USB end points of main frame,
Afterwards, main frame sends request to keyboard, and request obtains the keypad information of the keyboard USB interface connected;Key
Dish after receiving the request, sends the keypad information asked to main frame, and then, main frame is obtaining these information
And the keyboard USB driving provided is provided according to this information, load the keyboard USB meeting USB accordingly
Drive;Finally, main frame is after obtaining including the keypad information of HID report descriptor, it is believed that connected
The information of keyboard USB interface is the most complete, is just driven by keyboard USB and configures keyboard, configuration successful
The data transmission between keyboard and main frame can be realized.So far, enumeration process terminates.Similar through 2 times
Enumeration process achieves that and the USB data transmission passage between keyboard and main frame is enumerated as have transmission button
The key command interface of encoding function and the macro-instruction interface with transmission macro operation functional nucleotide sequence.
Keypad information includes that the HID report descriptor of keyboard, described HID report descriptor are general
Keyboard report descriptor.HID report descriptor be when equipment is defined as a HID device just need retouch
Stating symbol, this descriptor shows that this equipment supports the version number of usb protocol, if having proprietary descriptor,
The feature of descriptor is limited, and the organizational form of data when the main frame of definition and communication between devices.Press
Key instruction interface and macro-instruction interface HID report descriptor first few items are exemplified below:
These several the fields describing an input, are total up to 8 bits above, and each bit represents one
Individual button respectively from left ctrl key to right GUI key.These 8 bits just constitute a byte, and it is positioned at
The first character joint of report.Its lowest order, i.e. bit-0 correspond to left ctrl key, if the data returned
This position is 1, then it represents that left ctrl key is pressed, and otherwise, left ctrl key is not pressed.Its highest order,
What i.e. bit-7 represented right GUI key presses situation.Middle several positions, need to specify according in HID protocol
Purposes page table (HID Usage Tables) determine.It is conventionally used to indicate special keys, such as ctrl,
Shift, del key etc.
S102, by keyboard obtain key command, resolve described key command and from programmable button code set
The corresponding pending keyboard-coding of middle extraction, uploads described pending keyboard-coding extremely by key command interface
Main frame;
Keyboard has the key scanning circuit of corresponding key position, produces the coding circuit of the key code that is pressed,
To produce the interface circuit of code feeding computer, these circuit are referred to as keyboard control circuit.
The function of keyboard control circuit fully relies on hardware and is automatically performed, and this keyboard is referred to as encoded keyboard, it
Automatically the coding information pressing key can be sent into computer.Encoded keyboard fast response time, but it is with complexity
Hardware configuration is cost, and its complexity increases along with the increase of keypress function.
Keyboard control circuit function hardware and software to be relied on completes jointly, and this keyboard is referred to as non-coding key
Dish.This keyboard response speed is fast not as encoded keyboard, but it can be by some button weight that software is keyboard
New definition, provides great convenience for expanding keypad function, therefore, is widely used.
S103, reception macroefficiency instruction, resolve the instruction of described macroefficiency and extract from default macro-instruction set
Corresponding pending macro operation sequence, uploads described pending macro operation sequence to main by macro-instruction interface
Machine.
The grand set being made up of one or more operations, the most each operation realizes specific function, grand
Refer to a series of operation that can reset, contribute to perform repeat task, it is also possible to use grand reset superfluous
Grow or be difficult to the sequence run.Such as, play game time, grand can realize such as moment switching weapon, company
Continue a certain object release magic arts, follow particular player attack in troop, and select to attack technical ability etc..Grand can
Grand to be divided into, grand group and conditional operation grand.Grand is the set of the sequence of operation, and grand group is grand set, condition
Operating grand is to carry the sequence of operation with good conditionsi, and the sequence of operation included in these are grand is only when condition is set up
Just can perform.
A kind of method that keyboard macroefficiency is uploaded, the USB device of keyboard is enumerated respectively for uploading key command
Key command interface and for upload macroefficiency instruction macro-instruction interface, refer to when user carries out button simultaneously
Order input and macroefficiency instruction be when uploading, key command interface and macro-instruction interface respectively keyboard and main frame it
Between USB data transmission passage in transmit information, two actions do not interfere with each other, and perform simultaneously, improve keyboard
Transmission data efficiency.
As in figure 2 it is shown, the flow process signal of the method uploaded of keyboard macroefficiency provided for the embodiment of the present invention 2
Figure;Embodiment adds startup macroefficiency step.
A kind of method providing keyboard macroefficiency to upload, comprises the steps:
S201, open macroefficiency by key command;
Macroefficiency is opened, flexibly and easily by default key command.Macroefficiency can also pass through drive command
Open;In Games Software start-up course, start service routine, realized in service routine by driver
Write registration table continuous item, automatic run macro function program.Utilize drive command open macroefficiency without by
Key, can automatically turn in the time set.
S202, by key command trigger macroefficiency instruct;
Trigger macroefficiency by key command to instruct, flexibly and easily.Macroefficiency instruction can also be ordered by driving
Order triggers;Utilize drive command to trigger macroefficiency and instruct without button, automatically can trigger in the time set,
Or circulation triggers.
S203, the USB data transmission passage between keyboard and main frame is enumerated as having transmission keyboard-coding merit
The key command interface of energy and the macro-instruction interface with transmission macro operation functional nucleotide sequence;
Wherein, key command interface and macro-instruction interface are USB HID dummy keyboard communication interface, are to pass through
Report comes to transmitting data, and report has input report and output report.Input report is dummy keyboard communication
Interface is sent to main frame, and button data is returned to main frame by such as dummy keyboard communication interface;Output report
It is that the numeric keypad that main frame is sent on dummy keyboard communication interface, such as keyboard locks lamp and capitalization
Locking lamp etc..Report is a packet, and what the inside comprised is data to be transmitted.
The descriptor of USB HID dummy keyboard communication interface is except standard descriptor (the equipment description of 5 USB
Symbol, configuration descriptor, interface descriptor, endpoint descriptor, character string descriptor) outward, also include 3
HID device class particular descriptor: HID descriptor, report descriptor, entity description accord with.USB reports description
Symbol (Report Descriptor) is a descriptor in HID device, and it is that more complicated one describes
Symbol.
S204, by keyboard obtain key command, resolve described key command and from programmable button coded set
Conjunction is extracted corresponding pending keyboard-coding, uploads described pending keyboard-coding by key command interface
To main frame;
S205, reception macroefficiency instruction, resolve the instruction of described macroefficiency and extract from default macro-instruction set
Corresponding pending macro operation sequence, uploads described pending macro operation sequence to main by macro-instruction interface
Machine.
Wherein, the method that described keyboard macroefficiency is uploaded also includes: set up and store macro operation sequence with logical
Cross pressing keys, pressing keys duration pre-corresponding with the operation information unclamping button that keyboard obtains
If macro-instruction set.
The action presetting macro-instruction is pressing of button, unclamps action, and presses the time interval unclamped,
Macro-instruction can be single action, it is also possible to be the set of set.Keyboard presets grand finger by reading
Order set is successively according to the origination interval time of record, and macroefficiency is instructed by frequency by macro-instruction interface
It is uploaded to PC system.
Wherein, the method that described keyboard macroefficiency is uploaded also includes: set up and store key command and button
The programmable button code set that coding information is corresponding.
Encoded keyboard relies primarily on one piece of special large scale integrated circuit and completes to scan, encodes, transmits merit
Energy.One complete keyboard control circuit is made up of key mapping matrix, clock generator and main IC.Key mapping matrix
Making on circuit boards, clock generator is used for producing a series of regular pulse, and it determines main IC scanning
The frequency of key mapping matrix, the rhythm and pace of moving things that all job steps of keyboard control circuit will be sent here by clock generator
Carry out.The continual pulse frequency that main IC sends here according to clock generator, to the row or column of key mapping matrix,
Scanning signal is sent by row or column;After certain key is pressed, corresponding scanning signal will be handed over therewith
The testing circuit in row or column direction of fork found and produced commissure signal, this key of this commissure signal deciding
Coordinate position;Commissure signal sends into main IC, just produces the coding letter of this key after its in-line coding circuit
Breath, such as ASCII character.
Nonencoded keyboard the most directly provides the coding information of button, but uses relatively simple hardware and a set of
Dedicated program comes the position of key range.Nonencoded keyboard utilizes the hardware under software-driven to complete such as and sweeps
Retouch, encode, transmitting function, this program is referred to as Data inputing program.Whole Data inputing program by
Polling routine, transmission program, translator three part composition.First main program calls polling routine, passes through
Query interface progressive scan key mapping matrix, detects the output of ranks simultaneously, the commissure signal of row and column determines
The coordinate of certain Guan Bi key, i.e. obtains by scan code corresponding to button;Main program calls transmission program and will obtain
Scan code sends the keyboard interface circuit being positioned at main frame to;Main program calls translator by keyboard interface
Scan code be translated as the coding information of corresponding key.
Wherein, the macro operation sequence in described default macro-instruction set includes obtaining keyboard LED state to main frame
Macro operation sequence or not to main frame obtain keyboard LED state macro operation sequence.
Obtaining keyboard LED state to main frame, the numeric keypad locking lamp being on main frame acquisition keyboard is with big
The mother that writes locks the state of lamp.
The embodiment of the present invention utilizes two keyboard interfaces of USB device enumeration of keyboard, be respectively used for uploading by
Key instruction key command interface and for upload macroefficiency instruction macro-instruction interface, it is not necessary to increase USB interface
Entity, so that it may realize key command input simultaneously and macroefficiency instruction is uploaded, it is achieved mode is simple, it is not necessary to
Complicated mechanism carries out the differentiation of keyboard input and macro-instruction, simple to operate, it is simple to user uses.
The embodiment of the device that the keyboard macroefficiency provided for the embodiment of the present invention below is uploaded.Keyboard macroefficiency
The embodiment of the method that the embodiment of the device uploaded and above-mentioned keyboard macroefficiency are uploaded belongs to same design, key
The detail content of the most detailed description in the embodiment of the device that dish macroefficiency is uploaded, is referred to above-mentioned keyboard grand
The embodiment of the method that function is uploaded.
As it is shown on figure 3, the structural representation of device that the keyboard macroefficiency provided for the embodiment of the present invention 3 is uploaded
Figure;
The device that a kind of keyboard macroefficiency is uploaded, including by the USB data transmission passage between keyboard and main frame
Enumerate the key command interface 301 with transmission keyboard-coding function obtained and there is transmission macro operation sequence
The macro-instruction interface 302 of function;
Described key command interface 301 is used for uploading described pending keyboard-coding to main frame;Described macro-instruction
Interface 302 is used for uploading described pending macro operation sequence to main frame;
Also include:
Receive key command unit 303: for obtaining key command by keyboard,
Resolve key command unit 304: be used for resolving described key command and from programmable button code set
Extract corresponding pending keyboard-coding,
Receive macroefficiency command unit 305: be used for receiving macroefficiency instruction,
Resolve macroefficiency command unit 306: be used for resolving the instruction of described macroefficiency and from default macro-instruction set
The corresponding pending macro operation sequence of middle extraction,
The device that a kind of keyboard macroefficiency is uploaded, the USB device of keyboard is enumerated respectively for uploading key command
Key command interface and for upload macroefficiency instruction macro-instruction interface, refer to when user carries out button simultaneously
Order input and macroefficiency instruction be when uploading, key command interface and macro-instruction interface respectively keyboard and main frame it
Between USB data transmission passage in transmit information, two actions do not interfere with each other, and perform simultaneously, improve keyboard
Transmission data efficiency.
As shown in Figure 4, the structural representation of the device that the keyboard macroefficiency provided for the embodiment of the present invention 4 is uploaded
Figure.Embodiment adds driver element, preset macroinstruction set conjunction signal generating unit and programmable button code set
Signal generating unit.
The device that a kind of keyboard macroefficiency is uploaded, including by the USB data transmission passage between keyboard and main frame
Enumerate the key command interface 301 with transmission keyboard-coding function obtained and there is transmission macro operation sequence
The macro-instruction interface 302 of function;
Described key command interface 301 is used for uploading described pending keyboard-coding to main frame;Described macro-instruction
Interface 302 is used for uploading described pending macro operation sequence to main frame;
Also include:
Receive key command unit 303: for obtaining key command by keyboard,
Resolve key command unit 304: be used for resolving described key command and from programmable button code set
Extract corresponding pending keyboard-coding,
Receive macroefficiency command unit 305: be used for receiving macroefficiency instruction,
Resolve macroefficiency command unit 306: be used for resolving the instruction of described macroefficiency and from default macro-instruction set
The corresponding pending macro operation sequence of middle extraction,
Wherein, the device that described keyboard macroefficiency is uploaded, also include driver element 401: be used for sending and drive
Dynamic command triggers macroefficiency instruction.
Wherein, the device that described keyboard macroefficiency is uploaded, also include that presetting macroinstruction set closes signal generating unit
402: lasting with pressing keys, the pressing keys obtained by keyboard for setting up and store macro operation sequence
The default macro-instruction set that time is corresponding with the operation information unclamping button.
Wherein, the device that described keyboard macroefficiency is uploaded, also include programmable button code set signal generating unit
403: for setting up and store the programmable button code set that key command is corresponding with keyboard-coding information.
The embodiment of the present invention utilizes two keyboard interfaces of USB device enumeration of keyboard, be respectively used for uploading by
Key instruction key command interface and for upload macroefficiency instruction macro-instruction interface, it is not necessary to increase USB interface
Entity, so that it may realize key command input simultaneously and macroefficiency instruction is uploaded, it is achieved mode is simple, it is not necessary to
Complicated mechanism carries out the differentiation of keyboard input and macro-instruction, simple to operate, it is simple to user uses.
Obviously, it will be understood by those skilled in the art that each modular device and each step of the above-mentioned present invention can
To realize with general calculating device, they can concentrate on single calculating device, or is distributed in many
On the network that individual calculating device is formed, alternatively, they can use computer installation executable program generation
Code realizes, and performs such that it is able to be stored in storing in device by calculating device, or by them
It is fabricated to each integrated circuit modules respectively, or the multiple modules in them or step are fabricated to single collection
Circuit module is become to realize.So, the present invention is not restricted to the combination of any specific hardware and software.
Above content is only presently preferred embodiments of the present invention, for those of ordinary skill in the art, according to this
The thought of invention, the most all will change, and this specification content is not
It is interpreted as limitation of the present invention.
Claims (10)
1. the method that a keyboard macroefficiency is uploaded, it is characterised in that including:
Be enumerated as the USB data transmission passage between keyboard and main frame having transmission keyboard-coding function by
Key instruction interface and the macro-instruction interface with transmission macro operation functional nucleotide sequence;
Obtain key command by keyboard, resolve described key command and extract from programmable button code set
Corresponding pending keyboard-coding, uploads described pending keyboard-coding to main frame by key command interface;
Reception macroefficiency instructs, and resolves the instruction of described macroefficiency and extracts corresponding from default macro-instruction set
Pending macro operation sequence, uploads described pending macro operation sequence to main frame by macro-instruction interface;
Wherein, particularly as follows: first, keyboard side is by fixed for the keyboard USB end points of transmission data for described enumeration process
Justice is a keyboard USB interface, and keyboard USB end points is connected to the USB of main frame by USB data line
End points, afterwards, main frame sends request to keyboard, and request obtains the keyboard letter of the keyboard USB interface connected
Breath;Keyboard after receiving the request, sends the keypad information asked to main frame, and then, main frame is obtaining this
A little information the keyboard USB being determined to provide according to this information drive, and load and meet USB accordingly
Keyboard USB drives;Finally, main frame is after obtaining including the keypad information of HID report descriptor, it is believed that
The information of the keyboard USB interface connected is the most complete, is just driven by keyboard USB and configures keyboard,
Configuration successful can realize the data transmission between keyboard and main frame;So far, enumeration process terminates.
The method that keyboard macroefficiency the most according to claim 1 is uploaded, it is characterised in that described grand
Function command is triggered by key command or is triggered by drive command.
The method that keyboard macroefficiency the most according to claim 1 is uploaded, it is characterised in that described in connect
Also include before receiving macroefficiency instruction: open macroefficiency by key command or open grand merit by drive command
Energy.
The method that keyboard macroefficiency the most according to claim 1 is uploaded, it is characterised in that also wrap
Include: set up and store macro operation sequence and the pressing keys obtained by keyboard, the pressing keys duration and
Unclamp the default macro-instruction set that the operation information of button is corresponding.
The method that keyboard macroefficiency the most according to claim 1 is uploaded, it is characterised in that also wrap
Include: set up and store the programmable button code set that key command is corresponding with keyboard-coding information.
The method that keyboard macroefficiency the most according to claim 1 is uploaded, it is characterised in that described pre-
If the macro operation sequence in macro-instruction set include to main frame obtain keyboard LED state macro operation sequence or not to
Main frame obtains keyboard LED state macro operation sequence.
7. the device that a keyboard macroefficiency is uploaded, it is characterised in that include between keyboard and main frame
USB data transmission passage is enumerated the key command interface with transmission keyboard-coding function obtained and has biography
The macro-instruction interface of defeated macro operation functional nucleotide sequence;
Described key command interface is used for uploading pending keyboard-coding to main frame;Described macro-instruction interface is used for
Upload described pending macro operation sequence to main frame;
Also include:
Receive key command unit: for obtaining key command by keyboard,
Resolve key command unit: be used for resolving described key command and extracting from programmable button code set
Corresponding pending keyboard-coding,
Receive macroefficiency command unit: be used for receiving macroefficiency instruction,
Resolve macroefficiency command unit: be used for resolving the instruction of described macroefficiency and carrying from default macro-instruction set
Take corresponding pending macro operation sequence;
Wherein, particularly as follows: first, keyboard side is by fixed for the keyboard USB end points of transmission data for described enumeration process
Justice is a keyboard USB interface, and keyboard USB end points is connected to the USB of main frame by USB data line
End points, afterwards, main frame sends request to keyboard, and request obtains the keyboard letter of the keyboard USB interface connected
Breath;Keyboard after receiving the request, sends the keypad information asked to main frame, and then, main frame is obtaining this
A little information the keyboard USB being determined to provide according to this information drive, and load and meet USB accordingly
Keyboard USB drives;Finally, main frame is after obtaining including the keypad information of HID report descriptor, it is believed that
The information of the keyboard USB interface connected is the most complete, is just driven by keyboard USB and configures keyboard,
Configuration successful can realize the data transmission between keyboard and main frame;So far, enumeration process terminates.
The device that keyboard macroefficiency the most according to claim 7 is uploaded, it is characterised in that also wrap
Include:
Driver element: be used for sending drive command and trigger macroefficiency instruction.
The device that keyboard macroefficiency the most according to claim 7 is uploaded, it is characterised in that also wrap
Include:
Preset macroinstruction set and close signal generating unit: for setting up and store macro operation sequence and being obtained by keyboard
Pressing keys, pressing keys duration and the corresponding default macroinstruction set of the operation information unclamping button
Close.
The device that keyboard macroefficiency the most according to claim 7 is uploaded, it is characterised in that also wrap
Include:
Programmable button code set signal generating unit: be used for setting up and store key command and keyboard-coding information phase
Corresponding programmable button code set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310404900.8A CN103455456B (en) | 2013-09-06 | 2013-09-06 | The method and apparatus that a kind of keyboard macroefficiency is uploaded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310404900.8A CN103455456B (en) | 2013-09-06 | 2013-09-06 | The method and apparatus that a kind of keyboard macroefficiency is uploaded |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103455456A CN103455456A (en) | 2013-12-18 |
CN103455456B true CN103455456B (en) | 2016-08-17 |
Family
ID=49737846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310404900.8A Expired - Fee Related CN103455456B (en) | 2013-09-06 | 2013-09-06 | The method and apparatus that a kind of keyboard macroefficiency is uploaded |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103455456B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104049767A (en) * | 2014-05-19 | 2014-09-17 | 技嘉科技股份有限公司 | Input system for triggering and starting macros |
CN108829446A (en) * | 2018-06-04 | 2018-11-16 | 张剑飞 | The method for realizing peripheral hardware macroefficiency based on bluetooth HID |
CN111408127B (en) * | 2019-01-04 | 2021-08-27 | 深圳市慧嘉智科技有限公司 | Method and system for setting game control macro |
CN111930184B (en) * | 2020-10-13 | 2021-01-01 | 飞天诚信科技股份有限公司 | Method, device and system for realizing external equipment simulation keyboard |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5420943A (en) * | 1992-04-13 | 1995-05-30 | Mak; Stephen M. | Universal computer input device |
CN101364152A (en) * | 2008-09-11 | 2009-02-11 | 白金颖 | Method, system and mouse capable of implementing custom mouse button function |
CN101414221A (en) * | 2008-10-31 | 2009-04-22 | 深圳市神舟电脑股份有限公司 | Method for implementing user-defined function of keyboard shortcut key |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI435239B (en) * | 2010-07-20 | 2014-04-21 | Giga Byte Tech Co Ltd | Keyboards providing macro functions and macro function setting method using the same, and computer program products thereof |
-
2013
- 2013-09-06 CN CN201310404900.8A patent/CN103455456B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5420943A (en) * | 1992-04-13 | 1995-05-30 | Mak; Stephen M. | Universal computer input device |
CN101364152A (en) * | 2008-09-11 | 2009-02-11 | 白金颖 | Method, system and mouse capable of implementing custom mouse button function |
CN101414221A (en) * | 2008-10-31 | 2009-04-22 | 深圳市神舟电脑股份有限公司 | Method for implementing user-defined function of keyboard shortcut key |
Also Published As
Publication number | Publication date |
---|---|
CN103455456A (en) | 2013-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455456B (en) | The method and apparatus that a kind of keyboard macroefficiency is uploaded | |
CN105072008B (en) | Based on bus topology formula modularization satellite platform electronics synthesis information processing system | |
CN103839404A (en) | Automatic test apparatus of infrared remote control equipment, and method thereof | |
CN1945648A (en) | Universal studying programmable remote controller and its control method | |
CN101499944A (en) | Computer management system and combined console module | |
CN201549063U (en) | Long-range control system of LED signboard | |
CN101384034A (en) | Mobile phone with remote control function and remote control function processing method | |
CN101374360A (en) | Multiport multiplexing method, apparatus and system | |
CN103699511A (en) | Interface device for serially writing programs in multiple MCUs (micro control units) | |
CN102693196A (en) | Memory controller address and data pin multiplexing | |
WO2009044700A1 (en) | Solid state image picking-up device and image picking-up signal output circuit | |
CN201237769Y (en) | Multifunctional computer wireless remote controller | |
EP2177874B1 (en) | Universal remote control device | |
CN204305007U (en) | A kind of handheld device infrared communication system | |
CN201556296U (en) | Remote controller for intelligent home | |
CN105388795A (en) | Miniaturized man-machine interaction system | |
CN105144038B (en) | The method and apparatus that a kind of keyboard coding uploads simultaneously | |
CN101192333A (en) | Wireless remote control system, device and method | |
CN202772864U (en) | Key and indicator light control circuit, and television | |
CN101673097A (en) | Comprehensive control device of digitizer | |
CN100468289C (en) | Mobile storage method, system and equipment with wireless communication control function | |
CN100587752C (en) | Method and apparatus for controlling communication between double-system electronic equipments | |
CN105892975B (en) | A kind of management board of KVM | |
CN202153331U (en) | Keyboard capable of switching ports | |
CN201311709Y (en) | Universal remote controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160817 Termination date: 20180906 |
|
CF01 | Termination of patent right due to non-payment of annual fee |