ASCII from COM port to be used as 'keyboard' inputs

  • Thread starter Eidos
  • Start date
  • Tags
    Keyboard
In summary, the conversation is about finding a way to take ASCII values from the com port and interpret them as keyboard input in another program. The speaker mentions using MATLAB to read in ASCII values from a microprocessor, but they are looking for a way to interpret those values as keyboard input in Adobe Flash. A suggestion is made to use the CTTY command under DOS, but it may be trickier to do under Windows. Another person suggests using a software called keyinjector, which ultimately solves the problem.
  • #1
Eidos
108
1
Hi guys an gals

Do any of you know an elegant way to take ascii values from the com port and interpret them as keyboard input in another program?

If I may be more clear, we've gotten it right to read in ascii from a microprocessor into MATLAB but we would like to read in values which are to interpreted as keyboard input in adobe flash.

Any thoughts and suggestions are much appreciated :smile:
 
Technology news on Phys.org
  • #2
Under dos you could do this with the CTTY command.
Under windows it might be a bit trickier, there is some software called keyinjector butI haven't used it.
 
  • #3
Hey thanks alot!

:smile:

Keyinjector did the trick, we've got it working now.
 

1. What is ASCII?

ASCII stands for American Standard Code for Information Interchange. It is a character encoding standard used to represent text in computers. Each character is represented by a unique 7-bit binary number, allowing for a total of 128 characters.

2. How is ASCII used in COM ports?

In COM ports, ASCII is used to represent data being transmitted between devices. When a device sends data through a COM port, it is converted into ASCII code and transmitted as a series of 0s and 1s. When the data is received by another device, it is converted back into its original form.

3. Can ASCII be used as keyboard inputs from a COM port?

Yes, ASCII can be used as keyboard inputs from a COM port. By sending the appropriate ASCII code for a specific key, the computer will interpret it as if the key was pressed on a physical keyboard. This allows for data to be entered into a computer from an external device, such as a barcode scanner or microcontroller.

4. How do I convert ASCII codes into keyboard inputs?

To convert ASCII codes into keyboard inputs, you will need to use a programming language or software that allows for serial communication. This will allow you to read the data coming from the COM port and translate it into keyboard inputs. There are also pre-made modules or libraries that can handle this conversion for you.

5. Are there any limitations to using ASCII as keyboard inputs from a COM port?

One limitation is that ASCII only supports a limited number of characters, so it may not be able to handle certain special characters or non-English characters. Additionally, the speed at which data can be transmitted through a COM port may be slower than a physical keyboard, so there may be delays in registering the keyboard inputs.

Similar threads

  • Programming and Computer Science
Replies
4
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Programming and Computer Science
Replies
5
Views
3K
  • Programming and Computer Science
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
Replies
1
Views
658
  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
9
Views
2K
  • Programming and Computer Science
Replies
4
Views
3K
  • Programming and Computer Science
Replies
5
Views
1K
Back
Top