background image

When using the Extended ASCII mode, characters are received which 
are in the range of value from 0x00 to 0xFF (0 to 255 decimal). The 
corresponding USB keystroke from the 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 
received characters of 0x0E and 0x0F in the Extended  ASCII mode.

Example 1: If the value 0x41 (decimal 65) is received in this mode, a 
capital “A” character will be produced on the target computer at the 
USB end of the cable. 

Example 2: If the value 0xA9 (decimal 169) is received in this mode, 
a “©” character will be produced on the target computer at the USB 
end of the cable. 

Key Number Mode

The Key Number Mode provides users with complete control of the 
generation of the make (activation) and break (deactivation) of any 
standard  keyboard  key.  In  this  mode,  a  single  byte  will  command 
the make or break of a specific keyboard key at the target computer.  
Using 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 USB-ASC232.  Once 
received, the key specified will be seen as held down on the computer 
just as if someone was physically holding that key on a keyboard.

Each time a make is sent 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 (128 decimal).  
The break code releases the key that was activated earlier by a make 
code.  See the following table for make and break codes.

6

13

How far the scroll moves on the computer screen depends on the 
scroll system settings of the target computer.

 

 

0x00, 0x00, 0x00, 0x18

The next example four RS-232 mouse packets are sent to emulate 
a double left mouse click on the target computer.

Packet 1 - 0x00, 0x00, 0x00, 0x09  (left mouse button on)
Now delay around 150 msec for the system to see the button

Packet 2 - 0x00, 0x00, 0x00, 0x08  (left mouse button off)
Delay 150 msec again for the system to see the button release

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

Packet 4 - 0x00, 0x00, 0x00, 0x08  (left mouse button off)

Note that cursor movement, 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.

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 
starting point for programs which run the communication to the 
USB-ASC232  from  the  computer  attached  to  the  USB-ASC232 
Com Port DB9 connector. 

Содержание USB-ASC232

Страница 1: ...l Toll 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 2265...

Страница 2: ...the assembly testing and burn in of your USB ASC232 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...

Страница 3: ...onics com 17 2 CONTENTS Operating Voltage 5 Volts DC 5 Powered from USB port Operating Current Less than 100 ma Operating Temp 0 to 70 Degrees C PC Interface USB Target Computer RS 232 Serial Source C...

Страница 4: ...decimal 65 is received in this mode a capital A character will be produced as a keystroke on the computer at the USB end of the cable RS 232 characters received which are out of the 0x00 to 0x7f range...

Страница 5: ...to an extended ASCII character set character values 0x80 to 0xFF When an RS 232 byte is received in this mode it produces a USB keystroke on the PC which corresponds to the following table Parity may...

Страница 6: ...one none none none 160 161 162 163 164 165 166 167 168 169 170 171 172 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...

Страница 7: ...if someone was physically holding that key on a keyboard Each time a make is sent 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...

Страница 8: ...es shown above to produce the make and break actions for the corresponding key 12 When sending a mouse control packet for cursor movement only be sure to send all 0 values for the scroll wheel and mou...

Страница 9: ...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 b...

Страница 10: ...L Alt make 112 Make F1 240 Break F1 188 Break L Alt 186 Break L Ctrl The example above assumes that the handshaking USB ASC232 is seen as not busy before sending the next command byte to the unit Prod...

Страница 11: ...L Alt make 112 Make F1 240 Break F1 188 Break L Alt 186 Break L Ctrl The example above assumes that the handshaking USB ASC232 is seen as not busy before sending the next command byte to the unit Prod...

Страница 12: ...onse 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 scrol...

Страница 13: ...es shown above to produce the make and break actions for the corresponding key 12 When sending a mouse control packet for cursor movement only be sure to send all 0 values for the scroll wheel and mou...

Страница 14: ...if someone was physically holding that key on a keyboard Each time a make is sent 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...

Страница 15: ...E 9F none none none none none 160 161 162 163 164 165 166 167 168 169 170 171 172 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...

Страница 16: ...to an extended ASCII character set character values 0x80 to 0xFF When an RS 232 byte is received in this mode it produces a USB keystroke on the PC which corresponds to the following table Parity may...

Страница 17: ...decimal 65 is received in this mode a capital A character will be produced as a keystroke on the computer at the USB end of the cable RS 232 characters received which are out of the 0x00 to 0x7f range...

Страница 18: ...onics com 17 2 CONTENTS Operating Voltage 5 Volts DC 5 Powered from USB port Operating Current Less than 100 ma Operating Temp 0 to 70 Degrees C PC Interface USB Target Computer RS 232 Serial Source C...

Страница 19: ...the assembly testing and burn in of your USB ASC232 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...

Страница 20: ...l Toll 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 2265...

Отзывы: