Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 14 of 14

Thread: Port number for a Cedrus device?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2005
    Posts
    3,328

    Port number for a Cedrus device?

    [edited from support email]

    How do we find the port number for a response pad ("Cedrus" company) device? We tried to do as it says in the manual but there wasn't a "Resources" tag at the "Device Manager" of the keypad device. Can you give us another way to find it?

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    What is the exact model of the Cedrus device? If you can send that to us along with a link to the product on the web, that may help John our engineer to offer a suggestion on finding the port.

  3. #3
    Join Date
    May 2006
    Posts
    11
    Quote Originally Posted by jarvis24
    What is the exact model of the Cedrus device? If you can send that to us along with a link to the product on the web, that may help John our engineer to offer a suggestion on finding the port.

    Response Pad Model RB-834. In the ports tab of the Device Manager, it shows as 'RB-x30 Response Pad (COM3)

  4. #4
    Join Date
    Nov 2005
    Posts
    294
    Okay. We've spoken with Cedrus in the past, and they're very reluctant to share the communications protocol that their button boxes use. And unforunately, we don't have any of their equipment here in the shop to test for ourselves.

    So here are a few suggestions.

    1. Check your operating manual and see what baud rate the box is probably communicating at. I'd expect that you'd see either '9,600 or 19,200' as choices.

    2. If the box has a setting for 'simple' communications, rather than a continuous stream of data, pick the simple mode.

    3. Then, open a program called 'hyperterminal' on your computer, and plug in the box and power it up. Create a new connection in hyperterm which matches the settings your box needs to communicate.

    4. Press some buttons on the box and watch to see if you see any characters appear on the terminal screen. If you do, great.

    4.5 Disconnect the button box from your computer, but keep hyperterm running.

    5. Then, open a tool called 'IOTest.' It comes free with every copy of MediaLab or DirectRT. It's buried in the tools folder.

    6. In the 'port name' field, enter the decimal value of the com port you're using. COM1 is generally found at 1016 (3F8 hex). COM2 is 2F8, COM3 is 3E8. 2F8 converts to decimal 760. 3E8 is 1000.

    *** Note that if you're using an external USB - Serial converter dongle, all bets are off. The addresses listed above refer to physical circuitry inside your computer. Since the USB device emulates a serial port, you won't be able to find an address this way. ***

    7. Take a look at the port value box of IOTest. It will list a value, perhaps zero, for when the port is at rest.

    8. Plug in the button box, press some buttons, and see if the port value changes. If it does, you're in luck. All you need to do is write your MediaLab script to accept *that particular value* as a valid answer. Check your manual for more details on how to do this.

    * * * What we've been trying to do thus far is coax the button box to emit a single byte of data when a button is pressed. If we can get a single byte of data, we can work with it in DirectRT or MediaLab.

    If you have access to an oscilloscope, this entire process can be vastly simplified, just by monitoring the box's serial transmissions to your computer. Serial port pins 2 and 3 would be especially interesting to probe, with reference to ground.

    If, on the other hand, the box is emitting a constant stream of data which changes in a complex way for each button press, MediaLab and DirectRT likely won't be able to understand it.

    Hope this helps.

    John
    Last edited by JEC; 06-19-2006 at 10:45 AM.

  5. #5
    Join Date
    May 2006
    Posts
    11
    Hi,

    I got a connection with the 'hyperterminal' (com port 3), but I have a problem to get the address (section 6). I tried to set in the I/O Test program the value = 1000(dec) , but it didn't work.

    Some firend told me that for USB device there isn't a port value, is that true ?

    Can you please help with this,
    Regards,
    Tali

  6. #6
    Join Date
    Nov 2005
    Posts
    294
    You're probably correct. The port address refers to a physical location on the computer's motherboard. Since the USB port is *emulating* a serial port, there isn't a physical address.

    I didn't realize that Cedrus's USB implementation was just serial-over-USB.

    Anyway, were you able to see characters on the screen in Hyperterm?

    If so, you can just edit the comport.txt file to include the proper COM number (1,2,3 etc) and baudrate. Then, just set MediaLab to accept the proper character for each keypress.

    Do post back and let us know if you were sucessful.

    John
    Last edited by JEC; 06-19-2006 at 10:46 AM.

  7. #7
    Join Date
    Nov 2005
    Posts
    294
    Quote Originally Posted by barilan
    Hi,

    I got a connection with the 'hyperterminal' (com port 3), but I have a problem to get the address (section 6). I tried to set in the I/O Test program the value = 1000(dec) , but it didn't work.

    Some firend told me that for USB device there isn't a port value, is that true ?

    Can you please help with this,
    Regards,
    Tali
    Which characters appeared on the HyperTerminal screen when you pressed the buttons?

Similar Threads

  1. Authorization code does not work--and the number changes
    By jarvis24 in forum MediaLab Older Versions: Troubleshooting
    Replies: 8
    Last Post: 10-19-2009, 11:20 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
  •