1

Bonjour,

Ce n'est pas vraiment un rapport de bug, mais juste un petit constat sur ma machine.

J'ai eu du mal a connecter ma TI84+ en usb j'avais plein d'erreurs, les voici dans l'ordre :


Attention, je n'avais apparemment pas la derniere version au depart.
(surement installé en apt-get mais je m'en souviens plus)
Et il a y a parfois des manip non mentionnées entre les messages.

J'ai ensuite utilisé le script de Lionel tilp.sh qui a fonctionné, mais toujours l'erreur.

Puis j'ai compilé à partir des soucres avec
./configure --without-kde
make
make install.

Mais vous allez voir la solution ne semble pas dûe à une différence entre les 2 dernieres install.
A toutes les install j'ai essayé de lancer en sudo ou meme en root.
De changer les droits de certains fichiers...
J'ai egalement essayé d'installer tiusb et tiglusb (du site LPG)


Y a peut-être quelque chose que je n'ai pas saisi.


Message d'erreurs :

tilp-INFO: Msg: failed to open USB device.
Cause: check your USB cable is plugged and/or the calculator is ON! Check your libusb and usbfs permissions, too.
System: Opération non permise (errno = 1)


ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/proc/bus/usb): mounted

(tilp:28763): ticables-WARNING **: no devices found!

tilp-INFO: tilp_device_err catched error 37






puis :



tilp-INFO: tilp_device_err catched error 37


Msg: failed to open USB device.
Cause: check your USB cable is plugged and/or the calculator is ON! Check your libusb and usbfs permissions, too.
System: Ioctl() inappropré pour un périphérique (errno = 25)






puis :

Msg: illegal operation or argument.
Cause: the program which uses this library is buggy. Fire-up the developer!
System: Ressource temporairement non disponible (errno = 11)








puis au demarrage :

Msg: attempting to use a cable which has not been open before.
Cause: Internal error.
System: Aucun fichier ou dossier de ce type (errno = 2)






puis même :

The cable can not be used.
Cause: the cable has not been initialized due to a previous/current error.



Ou meme :

(tilp:8008): ticables-WARNING **: no devices found!

ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/proc/bus/usb): mounted
ticables-INFO: Check for tty support:
ticables-INFO: tty support: available.
ticables-INFO: Check for tty usability:
ticables-INFO: node /dev/ttyS0: exists
ticables-INFO: permissions/user/group: -rw-rw---- root dialout
ticables-INFO: is user can r/w on device: yes
ticables-INFO: is useable: no
tilp-INFO: Msg: illegal operation or argument.
Cause: the program which uses this library is buggy. Fire-up the developer!

tilp-INFO: tilp_device_err catched error 51






Puis après reinstall manuelle :

tilp-INFO: Msg: unable to use serial (/dev/ttySx) device.
Cause: the /dev/ttySx node doesn't exist or you don't have required permissions. How to grant permission to devices to the user depends on the distribution, it may involve adding the user to a group such as 'dialout' or 'uucp'. This can be done by editing /etc/group and add the username after the ':'. Example: dialout:x:20:romain
System: Ioctl() inappropré pour un périphérique (errno = 25)


tilp-INFO: Msg: attempting to use a cable which has not been open before.
Cause: Internal error.
System: Ioctl() inappropré pour un périphérique (errno = 25)






et :

ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found on #1, version <1.10>

(tilp:32456): ticables-WARNING **: usb_set_configuration (could not set config 1: Opération non permise).


(tilp:32456): ticables-WARNING **: usb_claim_interface (could not claim interface 0: Opération non permise).




OK avec un

sudo chown -R tib:tib /dev/bus/usb
(pourtant deja deja testé precedemment sans succés)
La version installée est la 1.13








Maintenant quand je ne fais rien j'ai une erreur au lancement (usb scan at startup) puis j'arrive pas à connecter la 84+ :
Voici le message :


TiLP2 - Version 1.13, (C) 1999-2008 Romain Lievin
THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY
PLEASE READ THE DOCUMENTATION FOR DETAILS
built on Mar 1 2010 23:00:52
tilp-INFO: setlocale: fr_FR.UTF-8
tilp-INFO: bindtextdomain: /home/tib/share/locale/
tilp-INFO: textdomain: tilp2
ticables-INFO: ticables library version 1.3.0
ticables-INFO: setlocale: fr_FR.UTF-8
ticables-INFO: bindtextdomain: /usr/local/share/locale
ticables-INFO: textdomain: libticables2
ticables-INFO: kernel: 2.6.24-24-generic
tifiles-INFO: tifiles library version 1.1.2
tifiles-INFO: setlocale: fr_FR.UTF-8
tifiles-INFO: bindtextdomain: /usr/local/share/locale
tifiles-INFO: textdomain: libtifiles2
ticalcs-INFO: ticalcs library version 1.1.3
ticalcs-INFO: setlocale: fr_FR.UTF-8
ticalcs-INFO: bindtextdomain: /usr/local/share/locale
ticalcs-INFO: textdomain: libticalcs2
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
tilp-INFO: Searching for link cables...
ticables-INFO: Recherche de câble de connexion:
ticables-INFO: found on #1, version <1.10>
tilp-INFO: Searching for hand-helds on DirectLink...
ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found on #1, version <1.10>

(tilp:11374): ticables-WARNING **: usb_set_configuration (could not set config 1: Opération non permise).


(tilp:11374): ticables-WARNING **: usb_claim_interface (could not claim interface 0: Opération non permise).

ticables-INFO: Check for lib-usb support:
ticables-INFO: usb support: available.
ticables-INFO: Check for lib-usb usability:
ticables-INFO: usb filesystem (/dev/bus/usb/): mounted
ticables-INFO: found on #1, version <1.10>

(tilp:11374): ticables-WARNING **: usb_set_configuration (could not set config 1: Opération non permise).


(tilp:11374): ticables-WARNING **: usb_claim_interface (could not claim interface 0: Opération non permise).

tilp-INFO: Msg: failed to open the USB device.
Cause: Check that the USB cable is plugged in and that the calculator is turned ON! Also, check libusb and usbfs for valid permissions.
System: Opération non permise (errno = 1)




Je ferme tilp.

Puis tape :

sudo chown -R tib:tib /dev/bus/usb/

Et la ça marche !


Au bout d'un moment ça peut parfois se mettre à rebloquer (si la calc s'éteint par exemple).

Meme manip et ça remarche.


Que dois-je faire pour les probleme de permissions :

(tilp:11374): ticables-WARNING **: usb_set_configuration (could not set config 1: Opération non permise).


(tilp:11374): ticables-WARNING **: usb_claim_interface (could not claim interface 0: Opération non permise).


J'ai essayé de rajouter tib dans /etc/group
Comme ceci :
tilp:x:127:tib

Y a-t-il une autre ligne à modifier?


Y a-t-il quelque chose qui m'échappe ou alors quelque chose que j'ai mal fait?
Notez que pour le cable TI serie ça fonctionne sans probleme.


Et que c'est pas ma première install mais seulement la première fois que je testais l'usb.





Ce qui est bizarre, c'est de devoir lancer cette commande systématiquement quelques secondes avant de lancer tilp, parfois 2 ou 3 fois sans que je n'ai rien touché sur ma machine.



Une idée?



Cordialement

Thibault Duponchelle

2

Le bon groupe à utiliser est plugdev, pas tilp. Mais il faut aussi que udev soit au courant que les périphériques sont de type "plugdev", le fichier de règles udev n'est pas forcément présent non plus, il faut le créer (cf. le fichier CONFIG de la libticables2 ou libcalccables).

Ton chown ne persiste pas parce que ces fichiers device sont créés dynamiquement en fonction des appareils branchés. Au plus tard, ils seront recréés avec les permissions par défaut au redémarrage.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

3

avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

4

5

Merci a tous les 2.

Je teste et je vous en reparle.

Thibault