Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 5 of 5

Thread: Comport File Question: Serial port, Input code (1-255) Meaning

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Comport File Question: Serial port, Input code (1-255) Meaning

    Hello,

    I understand that decimal 49 maps to an ASCII "1"; but that the manual implies that we should be able to send any integer value 1-255 through the serial port. And is that true, because we need to send a decimal 18. (Decimal 18 is binary 10010) And if MediaLab should be able to accept a Decimal 18, how do we designate that in the file as 18 is the code for a non-printing character.

    We need MediaLab to respond to a middle mouse click, which is a non printing or a control character. In the ASCII conversion chart you sent, a decimal 18 is the middle mouse click (the scroll thing), characterized by "dc2." We CAN send a decimal 18 to MediaLab via serial port, what we are not able to do thus far is have MediaLab subsequently respond. In the MediaLab comport file, the following parameters are necessary:

    input code (1-255), response value (1-12)

    So, what would be the input code for decimal/ASCII 18? I understand the response value can be any number 1-12.

    Thanks!

    M

  2. #2
    Join Date
    Nov 2005
    Posts
    294
    Quote Originally Posted by rothers27 View Post
    Hello,

    I understand that decimal 49 maps to an ASCII "1"; but that the manual implies that we should be able to send any integer value 1-255 through the serial port. And is that true, because we need to send a decimal 18. (Decimal 18 is binary 10010) And if MediaLab should be able to accept a Decimal 18, how do we designate that in the file as 18 is the code for a non-printing character.

    We need MediaLab to respond to a middle mouse click, which is a non printing or a control character. In the ASCII conversion chart you sent, a decimal 18 is the middle mouse click (the scroll thing), characterized by "dc2." We CAN send a decimal 18 to MediaLab via serial port, what we are not able to do thus far is have MediaLab subsequently respond. In the MediaLab comport file, the following parameters are necessary:

    input code (1-255), response value (1-12)

    So, what would be the input code for decimal/ASCII 18? I understand the response value can be any number 1-12.

    Thanks!

    M
    You should be able to put the ASCII 18 as the input code and your response value (anything from 1-12) in the file and continue without any issue.

    Thus 18 would be mapped to 1, 2, 3, etc.

    -----------------

    It occurs to me, though, that this may not work as intended. If the serial mouse is connected and is registered by Windows as an actual mouse, you won't be able to simultaneously access the serial data. Windows will grab the mouse clicks before you can do anything with them.

    The workaround would be to 'uninstall' the serial mouse in the windows control panel, but leave it connected to your computer.

    The serial data can then be received and manipulated - I think - by MediaLab.

    You can test this with a terminal program such as RealTerm or Hyperterm.
    Last edited by JEC; 04-21-2009 at 05:10 PM.

Similar Threads

  1. Path/File Access Error - Comport.txt
    By lhoggard in forum MediaLab Older Versions: Troubleshooting
    Replies: 9
    Last Post: 04-01-2009, 08:58 AM
  2. input file crashes DirectRT on 1 computer
    By sjlee0623 in forum DirectRT Older Versions: Troubleshooting
    Replies: 3
    Last Post: 12-11-2007, 07:20 AM
  3. Input file won't run
    By baruche in forum DirectRT Older Versions: Troubleshooting
    Replies: 17
    Last Post: 11-06-2007, 07:42 AM
  4. Select and run input file
    By Carlea in forum DirectRT Older Versions: Troubleshooting
    Replies: 1
    Last Post: 09-17-2007, 02:09 PM
  5. How do I recreate the input file from a resulting data file?
    By teddenney in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 03-19-2007, 07:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •