background image

8

By using the make and break commands in Key Number Mode, any 
sequence that can by manually entered on a keyboard can be produced 
with  the  USBtoUSB.    Use  this  Key  Number  Mode  to  emulate  single 
keystrokes or combinations such as Ctrl+F1, or Shift+Alt+F5, etc. 

Additional Key Number Mode Control Commands

The USBtoUSB features two additional commands for keyboard action.  
The first command provides a way to clear the keyboard buffer and is 
useful for ensuring that no keys are left in the “ON” state.  The second 
command allows for the polling of the keyboard status LED states.  This 
polling command is useful for checking the Shift Lock state, or for making 
sure of the Num Lock state before using Num Lock affected keys.

0x38

  -  USB  Buffer  Clear  Command.    Sending  the  byte  0x38  to  the 

USBtoUSB Com Port port results in the device’s internal USB keyboard 
buffer being cleared.  Use of this command ensures that all made keys 
currently in the keyboard buffer are released.

0x7F

 - Status LED Read Command. Sending a code 0x7F to the USBtoUSB 

Com  Port  results  in  the  return  of  a  character  in  the  range  of  ASCII 
“0”  -  “7”.    The  USBtoUSB  Com  Port  response  character  reflects  the 
current state of the Scroll Lock, Caps Lock, and Num Lock LEDs on the 
target computer system as listed in the chart below.

ASCII Response

Scroll Lock Status Caps Lock Status

Num Lock Status

“0”

Off

Off

Off

“1”

Off

Off

On

“2”

Off

On

Off

“3’

Off

On

On

“4”

On

Off

Off

“5”

On

Off

On

“6”

On

On

Off

“7”

On

On

On

11

[W2]  -  The  most  significant  bit  of  the  scroll  wheel  movement 
magnitude.

[W1] - Bit 1 of the three bit value for scroll wheel movement.

[W0] - Least significant bit of the scroll wheel movement value.

[1] - Bit 3 of the #6 byte is  always “1”. Sending “0” for this bit will 
cause the entire mouse control packet to be ignored.

[MM] - State of the middle mouse button.  Set to 1 for middle 
mouse button on, 0 for the button to be off.

[MR] - State of the right mouse button.  Set to 1 for right mouse 
button on, 0 for the button to be off.

[ML]  -  State  of  the  left  mouse  button.    Set  to  1  for  left  mouse 
button on, 0 for the button to be off.

NOTES - When sending this six byte mouse command packet to 
the  USBtoUSB  Com  Port,  the  five  bytes  following  the  first  0x00 
byte  should  be  sent  with  no  more  than  50msec  between  each 
byte.    The  starting  value  0x00  must  always  be  followed  by  five 
additional bytes to complete the mouse control packet and avoid 
any confusion between mouse control and keystroke commands.

The  scroll  wheel  magnitude  command  is  a  4  bit  signed  value 
located in bits Ws through W0, and in the range of 0x00 to 0x07 
for up movement, 0x0F to 0x08 for down movement.

The three mouse button bits [MM], [MR], and [ML] command the 
states of the mouse buttons as seen by the target computer.  A “1” 
in the respective bit indicates the mouse button is on, while a “0” 
indicates the button is off.  Be sure to command the release of any 
mouse buttons that were in the on state at a later time once the 
mouse button task has completed.

Summary of Contents for USBtoUSB

Page 1: ...oll Free 888 690 9080 Phone 540 465 4677 Fax 540 465 4678 Monday through Friday 8 00 am to 5 00 pm EST sales hagstromelectronics com www hagstromelectronics com 1986 Junction Road Strasburg VA 22657 C...

Page 2: ...rn in of your USBtoUSB to ensure its performance If you have any questions please send us an email or give us a call Support is available Monday through Friday 8 00 am to 5 00 pm EST customer service...

Page 3: ...SB Com Port Protocol 19200 8 N 1 USBtoUSB Specifications USBtoUSB Connections Using the included USB cables attach the Com Port USB connector to the computer that will be sending commands to the USBto...

Page 4: ...s sent to the USB Com Port in this mode a capital A character will be produced as a keystroke on the target computer s USB port ASCII characters sent to the Com Port which are out of the 0x00 to 0x7F...

Page 5: ...he target computer when processed by the USBtoUSB unit Extended ASCII Mode The USBtoUSB Extended ASCII Mode of operation allows for the standard ASCII character set values 0x00 to 0x7F and an extended...

Page 6: ...173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF nb Space none 192 193 194 1...

Page 7: ...time a make is done for a key a corresponding break release of that key must be done at a later time to deactivate it The break code for a key is the same value as the make code plus 0x80 The break c...

Page 8: ...o the Com Port on the USBtoUSB to generate keystrokes at the target computer in Key Number Mode use the values shown above to produce the desired make and break actions for the corresponding key 12 Wh...

Page 9: ...On 2 Off On Off 3 Off On On 4 On Off Off 5 On Off On 6 On On Off 7 On On On 11 W2 The most significant bit of the scroll wheel movement magnitude W1 Bit 1 of the three bit value for scroll wheel move...

Page 10: ...Note that the values shown in the example are the decimal values of a single byte to be sent for each of the key actions for make and break Producing Mouse Action on the Target PC The USBtoUSB is cap...

Page 11: ...Note that the values shown in the example are the decimal values of a single byte to be sent for each of the key actions for make and break Producing Mouse Action on the Target PC The USBtoUSB is cap...

Page 12: ...On 2 Off On Off 3 Off On On 4 On Off Off 5 On Off On 6 On On Off 7 On On On 11 W2 The most significant bit of the scroll wheel movement magnitude W1 Bit 1 of the three bit value for scroll wheel move...

Page 13: ...o the Com Port on the USBtoUSB to generate keystrokes at the target computer in Key Number Mode use the values shown above to produce the desired make and break actions for the corresponding key 12 Wh...

Page 14: ...time a make is done for a key a corresponding break release of that key must be done at a later time to deactivate it The break code for a key is the same value as the make code plus 0x80 The break c...

Page 15: ...173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF nb Space none 192 193 194 1...

Page 16: ...he target computer when processed by the USBtoUSB unit Extended ASCII Mode The USBtoUSB Extended ASCII Mode of operation allows for the standard ASCII character set values 0x00 to 0x7F and an extended...

Page 17: ...s sent to the USB Com Port in this mode a capital A character will be produced as a keystroke on the target computer s USB port ASCII characters sent to the Com Port which are out of the 0x00 to 0x7F...

Page 18: ...SB Com Port Protocol 19200 8 N 1 USBtoUSB Specifications USBtoUSB Connections Using the included USB cables attach the Com Port USB connector to the computer that will be sending commands to the USBto...

Page 19: ...rn in of your USBtoUSB to ensure its performance If you have any questions please send us an email or give us a call Support is available Monday through Friday 8 00 am to 5 00 pm EST customer service...

Page 20: ...oll Free 888 690 9080 Phone 540 465 4677 Fax 540 465 4678 Monday through Friday 8 00 am to 5 00 pm EST sales hagstromelectronics com www hagstromelectronics com 1986 Junction Road Strasburg VA 22657 C...

Reviews: