background image

When  using  the  Extended  ASCII  mode,  characters  sent  to  the  USB 
Com Port are in the range of 0x00 to 0xFF (0 to 255 decimal). The 
corresponding keystrokes from the page 5 table will be generated.   

Extended ASCII Mode allows for the 

ANSI/ISO Latin-1

 character group 

in the range of 0x80 to 0xFF (128 to 255 decimal) to be produced as 
well as the standard 0x00 through 0x7F ASCII codes.  Additionally in 
this mode, the F1-F10 keys are supported for the character range of 
codes 0x11 to 0x1A values respectively. F11 and F12 keys are sent for 
Com Port characters of 0x0E and 0x0F in the Extended  ASCII mode.

Example  1:  If  the  value  0x41  (decimal  65)  is  received  by  the  USB 
Com Port in this mode, a capital “A” character will be produced on the 
target computer’s USB port as a keystroke.

Example 2: If the value 0xA9 (decimal 169) is received by the USB 
Com Port in this mode, a “©” character will be produced on the target 
computer’s USB port as a keystroke. 

Key Number Mode

The Key Number Mode provides complete control of the generation of 
the make (activation) and break (deactivation) of any standard keyboard 
key on the target computer. In this mode, a single byte sent to the USB 
Com  Port  will  command  the  make  or  break  of  a  specific  keyboard 
key at the target computer.  This mode allows for generation of any 
keystroke or combination of keystrokes on the target computer.

In general, to make a key (generate a press of a specific key), a one 
byte  value  between  0x00  and  0x7F  is  sent  to  the  Com  Port  of  the 
USBtoUSB.   The key specified will be seen as held down on the target 
computer just as if someone was physically holding down that key on 
a keyboard.

Each 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 
code releases the key that was activated earlier by a make code.  See 
the following table for Key Number Mode make and break codes.

6

13

In  the  next  example,  four  Com  Port  mouse  packets  are  sent  to 
emulate a double left mouse click on the target computer.

Packet  1  -  0x00,  0x00,  0x00,  0x00,  0x00,  0x09    (left  mouse 
button on). Delay around 150 msec after sending this packet for 
the system to see the button.

Packet  2  -  0x00,  0x00,  0x00  0x00,  0x00,  0x08    (left  mouse 
button off). Delay 150 msec again for the system to see the button 
release and create time between the release and activation of the 
left mouse button in step 3 below.

Packet  3  -  0x00,  0x00,  0x00,  0x00,  0x00,  0x09    (left  mouse 
button  on).  Delay  around  150  msec  for  the  system  to  see  the 
button.

Packet  4  -  0x00,  0x00,  0x00,  0x00,  0x00,  0x08    (left  mouse 
button off). No delay required after this release.

Cursor position, scroll wheel movement and button actions may 
all be implemented within the same packet.  The examples above 
focus only on a particular action at a time for clarity.  For instance, 
a command that sends both X and Y cusor movement can also 
send button information and/or scroll wheel movement.

Note that X and Y coordinates require the proper X and Y screen 
resolution set by the USBtoUSB.exe to obtain a 1:1 ratio beween 
the commanded values and the resulting cursor position.

Sending Serial Control Commands

The CD included with the unit contains source code examples in 
various programming languages to help the user get started on 
their own Com Port control software.  Use these examples as a 
reference point for writing programs on the computer attached to 
the USBtoUSB Com Port connection. 

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: