Author Topic: Programming serial/usb devices  (Read 11205 times)


  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Programming serial/usb devices
« on: February 19, 2007, 03:10:12 PM »
I write library for for contactless card readers. They use USB or RS232.
Now I use SlickEdit as my IDE under Linux. But right now I have strange problem which is may be not a SlickEdit related.
Here it goes.
I must enumerate all RS232 devices (ttyS*). So I use Open and if the function manage to open the port I write it down.
To open the port there is no need to have connected device to it. It must be active (for example cat /dev/ttyS0) will start read.
Since I don't have RS232 on my laptop and none of my ttyS* are active, I linked ttyS0 to another device (so I can do my tests).
I linked it to /dev/tty (which is of course opened ).
BUT !!!
When I try (cat /dev/tty) in the SlickEdit console I get cat: /dev/tty: No such device or address.
This is only when I try it in the integrated console. In any other way it works OK. So now I can't debug my test since there are virtualy no active ttyS*
according to the SlickEdit environment.

I someone has simmilar problem please write. I can't find any information related to my problem. I guess is somehow more specific or strange.

Best Regards !!!


  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: Programming serial/usb devices
« Reply #1 on: February 19, 2007, 03:11:20 PM »
I forgot to say that I use Slackware 10.1.

Best regards !


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6909
  • Hero Points: 531
Re: Programming serial/usb devices
« Reply #2 on: February 20, 2007, 05:01:13 PM »
SlickEdit version 12 is the first version that has Pseudo TTY support for the process buffer.  By default it is off because there were too many problems.  On some systems it's just WAY too slow.  Ctrl+Break doesn't always work.  I can't remember the other problems I ran into.  On Linux, it's more likely to be usable but I make no guarantees.

Invoke SlickEdit with the "+supty" option.