Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
obexftp [Le 10/05/2009, 13:04] MiTcH |
obexftp [Le 11/09/2022, 11:26] (Version actuelle) moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | {{tag>Edgy Feisty Gutsy Ubuntu_64bits téléphonie}} | + | {{tag>téléphonie VÉTUSTE}} |
---- | ---- | ||
Ligne 10: | Ligne 10: | ||
**Cette méthode marche aussi avec les Palms et autres assistants personnels.** | **Cette méthode marche aussi avec les Palms et autres assistants personnels.** | ||
- | Ce logiciel est en ligne de commande nous allons donc l'utiliser comme ceci et s'il marche, une interface graphique sera disponible. :-) | + | Ce logiciel est en ligne de commande nous allons donc l'utiliser comme ceci et s'il marche, une interface graphique sera disponible. :-) |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
===== Matériel supporté ===== | ===== Matériel supporté ===== | ||
Ligne 32: | Ligne 23: | ||
S'il n'est pas dans la liste, testez quand même et ajoutez-le :) | S'il n'est pas dans la liste, testez quand même et ajoutez-le :) | ||
- | |||
- | * ne marche pas avec les téléphones **Motorola** (L6), utilisez [[moto4lin]] (//sudo apt-get install moto4lin// puis //sudo moto4lin//) | ||
===== Installation ===== | ===== Installation ===== | ||
- | [[:tutoriel:comment_installer_un_paquet|Installez le paquet]] **obexftp**. | + | [[:tutoriel:comment_installer_un_paquet|Installez le paquet]] **[[apt>obexftp]]**. |
===== Utilisation ===== | ===== Utilisation ===== | ||
- | |||
- | |||
==== Méthode 1 : avec la référence USB ==== | ==== Méthode 1 : avec la référence USB ==== | ||
Ligne 59: | Ligne 46: | ||
Si le nom interne de votre téléphone portable (/dev/tty'?') n'est pas dans la liste ou si celui de la liste ne marche pas faites comme ceci : | Si le nom interne de votre téléphone portable (/dev/tty'?') n'est pas dans la liste ou si celui de la liste ne marche pas faites comme ceci : | ||
- | ***Débranchez** le téléphone | + | ***Débrancher** le téléphone |
- | *Ouvrir un terminal et taper :<code>sudo udevmonitor –udev</code> | + | *Ouvrir un terminal. |
- | *Gardez le terminal ouvert et **branchez** votre téléphone | + | Taper : <code>udevadm monitor --udev</code> |
- | *Vous trouverait plein de lignes, dans celle-ci vous trouverez sûrement un truc du genre (elle doit contenir à sa fin (tty)): | + | *Garder le terminal ouvert et **brancher** le téléphone |
+ | *Plein de lignes s'affichent, dans celle-ci vous en trouverez sûrement une du genre (elle doit contenir à sa fin (tty)): | ||
UEVENT[1184187965.536823] add /class/tty/**ttyUSB0** (tty) | UEVENT[1184187965.536823] add /class/tty/**ttyUSB0** (tty) | ||
Ligne 200: | Ligne 188: | ||
==== Installation ==== | ==== Installation ==== | ||
- | === Gutsy et suivants === | + | [[:tutoriel:comment_installer_un_paquet|installer avec le paquet]] **[[apt>obextool]]**. |
- | + | ||
- | [[:tutoriel:comment_installer_un_paquet|installer avec le paquet]] **obextool** normalement ou en ligne de commande: | + | |
- | + | ||
- | sudo apt-get install obextool | + | |
- | + | ||
- | === Feisty et précédents === | + | |
- | + | ||
- | [[:tutoriel:comment_installer_un_paquet|installer avec les paquets]]: | + | |
- | * **tk8.4** | + | |
- | * **bwidget** | + | |
- | ou avec cette ligne de commande: | + | |
- | + | ||
- | sudo apt-get install tk8.4 bwidget | + | |
- | + | ||
- | et installer avec [[:Gdebi]] [[http://debian.charite.de/ubuntu/pool/universe/t/tablelist/tablelist_4.6-0ubuntu1_i386.deb|ce package]] | + | |
- | + | ||
- | puis ouvrez un terminal et taper: | + | |
- | + | ||
- | cd /opt | + | |
- | sudo wget http://www.tech-edv.co.at/downloads/obextool-0.33.tar.gz | + | |
- | sudo tar xvfz obextool*.tar.gz | + | |
- | sudo rm obextool*.tar.gz | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
==== Configuration ==== | ==== Configuration ==== | ||
- | <note warning>Attention Si vous utilisez Feisty ou précédent cette section est indispensable, ainsi que pour Gutsy si vous utilisez un câble pour la connection.</note> | + | <note important>Cette partie est totalement inutile si vous utiliser le bluetooth ou l'infrarouge, mais est indispensable avec la méthode câble.</note> |
- | + | ||
- | === Pour Gutsy et suivants === | + | |
- | + | ||
- | <note important>Cette partie est totalement inutile si vous utiliser le bluetooth ou l'infrarouge, mais est indispensable avec la méthode câble</note> | + | |
Pour lancer ce programme il vous faudra éditer le script de lancement: | Pour lancer ce programme il vous faudra éditer le script de lancement: | ||
* [[:tutoriel:comment_editer_un_fichier|éditez le fichier]] **/usr/bin/obextool** | * [[:tutoriel:comment_editer_un_fichier|éditez le fichier]] **/usr/bin/obextool** | ||
- | + | * Ligne 40 : <file>OBEXCMD_OPTIONS=${OBEXCMD_OPTIONS:=-t /dev/ttyS0}</file> | |
- | * Ligne 40: | + | |
- | + | ||
- | OBEXCMD_OPTIONS=${OBEXCMD_OPTIONS:=-t /dev/ttyS0} | + | |
* Changez //**-t /dev/ttyS0**// par **-u 0** (si vous utilisez la méthode 1) ou par **-t /dev/tty'le nom interne'** (si vous utiliser la méthode 2). | * Changez //**-t /dev/ttyS0**// par **-u 0** (si vous utilisez la méthode 1) ou par **-t /dev/tty'le nom interne'** (si vous utiliser la méthode 2). | ||
- | |||
- | * Sauvegardez le fichier et fermez gedit | ||
- | |||
* Maintenant descendez jusqu'à la partie commune. | * Maintenant descendez jusqu'à la partie commune. | ||
- | |||
- | === Pour Feisty et précédents === | ||
- | |||
- | Pour lancer ce programme il vous faudra faire un petit script : | ||
- | * [[:tutoriel:comment_editer_un_fichier|éditez le fichier]] **/usr/bin/obextool** ; | ||
- | * copier-coller ce texte dans la fenêtre :<code bash> | ||
- | #!/bin/sh | ||
- | # ObexTool startup script for Debain Sarge, written by Hendrik Sattler | ||
- | # See also: http://www.stud.uni-karlsruhe.de/~ubq7/debian/ | ||
- | # | ||
- | # I has been tested and works great with: | ||
- | # obexftp (0.10.7-3) | ||
- | # tablelist (4.0-1) | ||
- | # obextool (>= 0.32-2 installed in /usr/share/obextool) | ||
- | # and obextool cofiguration dir /etc/obextool | ||
- | # It autodetects IRDA, Bluetooth and serial (/dev/ttyS0) interfaces | ||
- | |||
- | XDIALOG=$(which Xdialog) | ||
- | if [ -z "${OBEXCMD}" ]; then | ||
- | echo "Define OBEXCMD environment variable to disable this scan!" | ||
- | if [ ${XDIALOG} ]; then | ||
- | ${XDIALOG} --infobox "Scanning for IrDA devices" 0 0 1000 & | ||
- | fi | ||
- | echo "Scanning for Irda devices" | ||
- | if ( obexftp -i -l >/dev/null 2>&1 ); then | ||
- | if [ ${XDIALOG} ]; then | ||
- | ${XDIALOG} --infobox "Found IrDA device" 0 0 3000 & | ||
- | fi | ||
- | echo "Found IrDA device" | ||
- | OBEXCMD_OPTIONS="-i" | ||
- | else | ||
- | if [ ${XDIALOG} ]; then | ||
- | ${XDIALOG} --infobox "Scanning for bluetooth devices" 0 0 5000 & | ||
- | fi | ||
- | echo "Scanning for bluetooth devices" | ||
- | BTADDR=$(obexftp -b 2>&1| grep Browsing | cut -f 2 -d " ") | ||
- | if [ "${BTADDR}" ]; then | ||
- | if [ ${XDIALOG} ]; then | ||
- | ${XDIALOG} --infobox "Found bluetooth device ${BTADDR}" 0 0 3000 & | ||
- | fi | ||
- | echo "Found bluetooth device ${BTADDR}" | ||
- | OBEXCMD_OPTIONS="-b ${BTADDR}" | ||
- | fi | ||
- | fi | ||
- | fi | ||
- | #Attention editez la commande ci dessous | ||
- | OBEXCMD_OPTIONS=${OBEXCMD_OPTIONS:='commande pour l'accès au périphérique'} | ||
- | OBEXCMD=${OBEXCMD:=/usr/bin/obexftp ${OBEXCMD_OPTIONS}} | ||
- | export OBEXCMD | ||
- | echo "Using obexftp command: ${OBEXCMD}" | ||
- | |||
- | OBEXTOOL_CFG=${OBEXTOOL_CFG:=/opt/obextool-0.33/etc} | ||
- | export OBEXTOOL_CFG | ||
- | exec /opt/obextool-0.33/obextool.tk "$@" | ||
- | </code> | ||
- | * Ligne 41 changez //**'commande pour l'accès au périphérique'**// par **-u 0** (si vous utilisez la méthode 1, 3 ou 4) ou par **-t /dev/tty'le nom interne'** (si vous utilisez la méthode 2). | ||
- | * sauvegardez le fichier et fermez gedit | ||
=== Partie Commune === | === Partie Commune === | ||
Ligne 322: | Ligne 215: | ||
lien: [[http://www.tech-edv.co.at/programmierung/en/gplsw.html#download|Obextool]] | lien: [[http://www.tech-edv.co.at/programmierung/en/gplsw.html#download|Obextool]] | ||
- | |||
- | |||
- | |||
- | |||
===== Problèmes ===== | ===== Problèmes ===== |