# Assistance required with operation of  PTB-3 USB to Serial interface with Linux

**URL:** <https://psychtoolbox.discourse.group/t/assistance-required-with-operation-of-ptb-3-usb-to-serial-interface-with-linux/859>\
**Category:** Uncategorized\
**Created:** [February 20, 2012, 12:27pm UTC](https://psychtoolbox.discourse.group/t/assistance-required-with-operation-of-ptb-3-usb-to-serial-interface-with-linux/859 "2012-02-20T12:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [February 20, 2012, 12:27pm UTC](https://psychtoolbox.discourse.group/t/assistance-required-with-operation-of-ptb-3-usb-to-serial-interface-with-linux/859/1 "2012-02-20T12:27:58Z")

</div>

Hello,  
  
My name is Alistair Perry and I am a research assistant under Dr Mark Schira at The University of NSW, Australia. I found your profile over the psychtoolbox forums and it looked like you have a similar setup to myself when running PTB. I have difficulties with the initial basic test of USB to serial interface, and any help would be great!  
  
I have just recently installed Psychtoolbox in MATLAB (2011b), operating in Ubuntu 11.10. Ptb in general seems to work fine.  
  
I have issues trying to get PTB to initialize Lumina Box conneted to an USB serial port, which connects to a lumina response box (LSC-400). When I call CederusResponseBox('dev/ttylUSB0',['9600'])  
  
The script hangs in an endless loop around line 1100 trying to send some bytes to the box and waiting for a response (which does not arrive).  
  
I don't know why this is failing, i.e. it may be the USB to serial port interface is not correctly installed - and I don't know how one could test this.  
  
In terms of a driver, so far I have only enabled a serial (RS232) port drive (dev/ttylUSB0) on Ubuntu linux. Here is the following link for that process: [http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html](http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html)  
  
Have you successfully used a USB to serial port interface with matlab and Linux?  
  
Thanks,  
  
Alistair Perry

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [February 21, 2012, 10:44pm UTC](https://psychtoolbox.discourse.group/t/assistance-required-with-operation-of-ptb-3-usb-to-serial-interface-with-linux/859/2 "2012-02-21T22:44:59Z")

</div>

--- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "alistairperry123" \<ap332@...\> wrote:  

> \>  
> \> Hello,  
> \>   
> \> My name is Alistair Perry and I am a research assistant under Dr Mark Schira at The University of NSW, Australia. I found your profile over the psychtoolbox forums and it looked like you have a similar setup to myself when running PTB. I have difficulties with the initial basic test of USB to serial interface, and any help would be great!  
> \>   
> \> I have just recently installed Psychtoolbox in MATLAB (2011b), operating in Ubuntu 11.10. Ptb in general seems to work fine.  
> \>   
> \> I have issues trying to get PTB to initialize Lumina Box conneted to an USB serial port, which connects to a lumina response box (LSC-400). When I call CederusResponseBox('dev/ttylUSB0',['9600'])  
> \>   
> \> The script hangs in an endless loop around line 1100 trying to send some bytes to the box and waiting for a response (which does not arrive).  
> \>

That command would be syntactically wrong even if it worked for your Lumina. But the CedrusResponseBox() function only supports the RB-Series of Cedrus Response boxes. "RB" by the way is a misnomer on Cedrus side: It was actually meant to be named BR, as an acronym for "Buyers Remorse".  
  
The Lumina box is probably supported by the CMUBox() function. Search the forum, there was a message about that a few days ago.  
  
In general usb-serial or serial response boxes are well supported on Linux ptb, but i don't have any faith in Cedrus products on any operating system.  
  
Good luck,  
-mario  
  
  

> \> I don't know why this is failing, i.e. it may be the USB to serial port interface is not correctly installed - and I don't know how one could test this.  
> \>   
> \> In terms of a driver, so far I have only enabled a serial (RS232) port drive (dev/ttylUSB0) on Ubuntu linux. Here is the following link for that process: [http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html](http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html)  
> \>   
> \> Have you successfully used a USB to serial port interface with matlab and Linux?  
> \>   
> \> Thanks,  
> \>   
> \> Alistair Perry  
> \>
