From: SourceForge.net <no...@so...> - 2008-01-29 03:45:45
|
Bugs item #1881568, was opened at 2008-01-28 22:45 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=118378&aid=1881568&group_id=18378 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Shawn D'Alimonte (sdalimon) Assigned to: Nobody/Anonymous (nobody) Summary: Can't use ports other than ttyS0-3 with black cable Initial Comment: I am trying to use a non-ttyS0 serial port with a black link cable under Linux. It seems that tilp only supports ttyS0-3. I want to use /dev/ttyUSB0 since I don't have a real serial port on this machine. I have verified that the handshake lines can be controlled using ioctls on this adapter and my quick look at libticables makes me think it can use them. Trying to specify the port using dev_port makes it switch to parallel cable #2 even when a serial cable is specified. Specifying anything in dev_port seems to cause it to go parallel. I am not much of a programmer, but did spend some time going over libticables and really couldn't figure out the cable configuration stuff. Using: - tilp2 1.10 - libticables2 1.2.0 - libticalcs2 1.1.0 - libticonv2 1.1.0 - libtifiles2 1.1.0 Built from source on Ubuntu 7.10 Calculator is a TI85 Cable is Black TI GRAPH LINK 'Normal' port: ============== sdalimon@pitr:~$ tilp -calc=ti85 -link=ser tilp : TiLP - Version 6.80, (C) 1999-2005 Romain Lievin tilp : THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY tilp : PLEASE READ THE DOCUMENTATION FOR DETAILS tilp : built on Sep 3 2007 17:06:10 tilp : initialized in command line mode. tilp : Configuration file not found, use default values. You can create one by the 'File|Save config' command menu. tilp : err: msg_box: Information, Configuration file not found, use default values. You can create one by the 'File|Save config' command menu. tilp : setlocale: <en_CA.UTF-8> tilp : bindtextdomain: </usr/share/locale/> tilp : textdomain: <tilp> ticables: ticables library version 3.9.6 ticables: setlocale: <en_CA.UTF-8> ticables: bindtextdomain: </usr/share/locale> ticables: textdomain: <libticables> ticables: built for __LINUX__ target. ticables: checking resources: ticables: IO_API: found at compile time (HAVE_TERMIOS_H) ticables: IO_ASM: not found at compile time (HAVE_ASM_IO_H). ticables: IO_TIPAR: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_TISER: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_TIUSB: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_LIBUSB: found at compile time (HAVE_LIBUSB) ticables: quick search for parallel/serial ports: ticables: parallel port found at 0x378 ticables: serial port found at 0x3f8 ticables: parallel port found at 0x778 ticables: search for all ports: ticables: /dev/parport0 at 0x378 ticables: /dev/ttyS0 at 0x3f8 ticables: /dev/ttyS1 at 0x2f8 ticables: /dev/ttyS2 at 0x3e8 ticables: /dev/ttyS3 at 0x2e8 ticables: getting method from resources (automatic): ticables: check for tiser usability: ticables: using devfs: no ticables: node /dev/tiser0: exists ticables: permissions/user/group: -rw-rw---- root dialout ticables: is user can r/w on device: no ticables: are others can r/w on device: no ticables: is the user 'sdalimon' in the group 'dialout': yes ticables: module: not loaded ticables: => check the module exists (compiled as module) ticables: => add an entry into your modutils file to automatically load it. ticables: warning: can't use IO_TISER ticables: check for tty usability: ticables: node /dev/ttyS0: exists ticables: permissions/user/group: -rw-rw---- root dialout ticables: is user can r/w on device: no ticables: are others can r/w on device: no ticables: is the user 'sdalimon' in the group 'dialout': yes ticables: mapping I/O... ticables: registering cable... ticables: list of settings: ticables: cable: BlackLink ticables: port: serial port #2 ticables: method: user mode (ioctl) ticables: address: 0x2f8 ticables: device name: /dev/ttyS1 ticables: timeout value: 15 ticables: delay value: 10 tifiles : tifiles library version 0.6.6 tifiles : setlocale: <en_CA.UTF-8> tifiles : bindtextdomain: </usr/share/locale> tifiles : textdomain: <libtifiles> tifiles : settings: tifiles : calc type: TI85 ticalcs : ticalcs library version 4.6.1 ticalcs : setlocale: <en_CA.UTF-8> ticalcs : bindtextdomain: </usr/share/locale> ticalcs : textdomain: <libticalcs> tifiles : settings: tifiles : calc type: TI85 ticalcs : settings: ticalcs : calc type: TI85 tilp : initialized in GTK+ mode. (tilp:21847): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17 (tilp:21847): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17 tilp : scanning plug-ins... Done ! tilp : scanning registry... Done ! sdalimon@pitr:~$ Using dev_port to try /dev/ttyUSB0: =================================== sdalimon@pitr:~$ tilp -calc=ti85 -link=ser --dev_port=/dev/ttyUSB0 tilp : TiLP - Version 6.80, (C) 1999-2005 Romain Lievin tilp : THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY tilp : PLEASE READ THE DOCUMENTATION FOR DETAILS tilp : built on Sep 3 2007 17:06:10 tilp : initialized in command line mode. tilp : Configuration file not found, use default values. You can create one by the 'File|Save config' command menu. tilp : err: msg_box: Information, Configuration file not found, use default values. You can create one by the 'File|Save config' command menu. tilp : setlocale: <en_CA.UTF-8> tilp : bindtextdomain: </usr/share/locale/> tilp : textdomain: <tilp> ticables: ticables library version 3.9.6 ticables: setlocale: <en_CA.UTF-8> ticables: bindtextdomain: </usr/share/locale> ticables: textdomain: <libticables> ticables: built for __LINUX__ target. ticables: checking resources: ticables: IO_API: found at compile time (HAVE_TERMIOS_H) ticables: IO_ASM: not found at compile time (HAVE_ASM_IO_H). ticables: IO_TIPAR: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_TISER: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_TIUSB: found at compile time (HAVE_LINUX_TICABLE_H) ticables: IO_LIBUSB: found at compile time (HAVE_LIBUSB) ticables: quick search for parallel/serial ports: ticables: parallel port found at 0x378 ticables: serial port found at 0x3f8 ticables: parallel port found at 0x778 ticables: search for all ports: ticables: /dev/parport0 at 0x378 ticables: /dev/ttyS0 at 0x3f8 ticables: /dev/ttyS1 at 0x2f8 ticables: /dev/ttyS2 at 0x3e8 ticables: /dev/ttyS3 at 0x2e8 ticables: getting method from resources (automatic): ticables: check for tiser usability: ticables: using devfs: no ticables: node /dev/tiser0: exists ticables: permissions/user/group: -rw-rw---- root dialout ticables: is user can r/w on device: no ticables: are others can r/w on device: no ticables: is the user 'sdalimon' in the group 'dialout': yes ticables: module: not loaded ticables: => check the module exists (compiled as module) ticables: => add an entry into your modutils file to automatically load it. ticables: warning: can't use IO_TISER ticables: check for tty usability: ticables: node /dev/ttyS0: exists ticables: permissions/user/group: -rw-rw---- root dialout ticables: is user can r/w on device: no ticables: are others can r/w on device: no ticables: is the user 'sdalimon' in the group 'dialout': yes ticables: mapping I/O... ticables: registering cable... ticables: list of settings: ticables: cable: BlackLink ticables: port: parallel port #3 ticables: method: user mode (ioctl) ticables: address: 0x3bc ticables: device name: /dev/parport2 ticables: timeout value: 15 ticables: delay value: 10 tifiles : tifiles library version 0.6.6 tifiles : setlocale: <en_CA.UTF-8> tifiles : bindtextdomain: </usr/share/locale> tifiles : textdomain: <libtifiles> tifiles : settings: tifiles : calc type: TI85 ticalcs : ticalcs library version 4.6.1 ticalcs : setlocale: <en_CA.UTF-8> ticalcs : bindtextdomain: </usr/share/locale> ticalcs : textdomain: <libticalcs> tifiles : settings: tifiles : calc type: TI85 ticalcs : settings: ticalcs : calc type: TI85 tilp : initialized in GTK+ mode. (tilp:21850): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17 (tilp:21850): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17 tilp : scanning plug-ins... Done ! tilp : scanning registry... Done ! sdalimon@pitr:~$ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=118378&aid=1881568&group_id=18378 |