Palm Treo 700p: não é um dispositivo MTP (erro do syslog): Tempo limite de HotSync do Jpilot
O telefone é antigo pelos padrões de hoje, mas faz o que eu preciso e eu gosto.
Dois ou três upgrades do Ubuntu atrás, o JPilot deixou de ser capaz de sincronizar com o meu telefone.
Eu tinha acesso limitado à internet, e minha pesquisa revelou artigos dizendo que ela foi descontinuada por estar desatualizada e com uso mínimo.
Agora tenho algum tempo para pesquisar e encontrei muitos documentos sobre como fazê-lo funcionar em uma versão mais antiga e todos os diferentes trabalhos que ocorreram ao longo dos anos e consegui chegar até esse ponto. Eu preciso de ajuda.
Usando todos os documentos de ajuda e tópicos de discussão, reuni essas etapas e as joguei em um script (mais fácil para testar os resultados).
~$ cat palm_treo_usb.sh
echo "************** Starting *****************\n";
echo "************** modprobe usbserial *****************\n";
/sbin/modprobe usbserial;
echo "************** modprobe visor *****************\n";
/sbin/modprobe visor
echo "************** lsmod *****************\n";
/sbin/lsmod | grep "[v|u][i|s][s|b]";
echo "************** Groups *****************\n";
cat /etc/group | grep dial;
cat /etc/group | grep tty;
echo "************** modprobe *****************\n";
modprobe visor product=0x61 vendor=0x830;
tail -n20 /var/log/kern.log |grep -A25 "device disconnected"| grep "[u|U|j|v|p][s|S|i|p][b|B|s|i|l]" | grep -v Logitech | grep "Aug 29";
rm /dev/ttyUSB0;
rm /dev/ttyUSB1;
#rm /dev/ttyUSB2;
rm /dev/ttyUSB3;
ls -al /dev/ttyUSB*;
echo "************** proc devices *****************\n";
cat /proc/devices | grep "[u|U][s|S][b|B]";
echo "************** mknob 0 *****************\n";
/bin/mknod /dev/ttyUSB0 c 188 0;
echo "************** mknob 1 *****************\n";
/bin/mknod /dev/ttyUSB1 c 188 1;
#echo "************** mknob 2 *****************\n";
#/bin/mknod /dev/ttyUSB2 c 188 2;
echo "************** mknob 3 *****************\n";
/bin/mknod /dev/ttyUSB3 c 188 3;
echo "************** chmod and chown *****************\n";
chmod 0666 /dev/ttyUSB*;
chown root:dialout /dev/ttyUSB*;
echo "************** /dev/ttyUSB* *****************\n";
ls -al /dev/ttyUSB*;
echo "************** pilot.rules *****************\n";
#ls -al /etc/udev/rules.d/pilot.rules;
#echo 'BUS=="usb", SYSFS{product}=="Palm Handheld*|Handspring *", KERNEL=="ttyUSB*", NAME="ttyUSB%n", SYMLINK="pilot", GROUP="esouthworth", MODE="0666"' >> /etc/udev/rules.d/pilot.rules;
ls -al /etc/udev/rules.d/palmtreo.rules;
cat /etc/udev/rules.d/palmtreo.rules;
echo "************** pilot-dlpsh 0 *****************\n";
pilot-dlpsh -c --port=/dev/ttyUSB0 &
echo "************** pilot-dlpsh 1 *****************\n";
pilot-dlpsh -c --port=/dev/ttyUSB1 &
echo "************** pilot-dlpsh 2 *****************\n";
pilot-dlpsh -c --port=/dev/ttyUSB2 &
echo "************** pilot-dlpsh 3 *****************\n";
pilot-dlpsh -c --port=/dev/ttyUSB3 &
echo "************** pilot-xfer 0 *****************\n";
pilot-xfer -l --port=/dev/ttyUSB0 &
echo "************** pilot-xfer 1 *****************\n";
pilot-xfer -l --port=/dev/ttyUSB1 &
echo "************** pilot-xfer 2 *****************\n";
pilot-xfer -l --port=/dev/ttyUSB2 &
echo "************** pilot-xfer 3 *****************\n";
pilot-xfer -l --port=/dev/ttyUSB3 &
echo "************** /dev/ttyUSB* *****************\n";
ls -al /dev/ttyUSB*;
echo "************** /dev/bus/usb/* *****************\n";
ls -al /dev/bus/usb/*;
echo "************** /sys/dev/char/18* *****************\n";
ls -al /sys/dev/char/18*;
echo "************** /dev/usb/* *****************\n";
ls -al /dev/usb*;
tail -n20 /var/log/kern.log |grep -A25 "device disconnected"| grep "[u|U|j|v|p][s|S|i|p][b|B|s|i|l]" | grep -v Logitech | grep "Aug 29";
ps -aux | grep "[u|U|j|v|p][s|S|i|p][b|B|s|i|l]" | grep -v upstart;
echo "************** lsusb *****************\n";
lsusb | grep Palm;
echo "************** sylog *****************\n";
tail -n20 /var/log/syslog | grep -A25 "new full-speed USB device";
echo "************** ftdi_sio *****************\n";
modinfo ftdi_sio | head -n6;
modinfo ftdi_sio | tail -n6;
ps -aux | grep "pilot";
ps -aux | grep "usb";
ps -aux | grep "mode";
Estes são os resultados da minha saída:
root@Toshiba-Satellite-P105:/home/esouthworth# ./palm_treo_usb.sh
************** Starting *****************\n
************** modprobe usbserial *****************\n
************** modprobe visor *****************\n
************** lsmod *****************\n
visor 13355 0
usbserial 38603 1 visor
usbhid 47361 0
hid 87370 3 hid_generic,usbhid
************** Groups *****************\n
dialout:x:20:
tty:x:5:
************** modprobe *****************\n
Aug 29 23:08:44 Toshiba-Satellite-P105 kernel: [16985.437382] visor 2-2:1.0: device disconnected
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16995.992056] usb 2-2: new full-speed USB device number 5 using uhci_hcd
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156125] usb 2-2: New USB device found, idVendor=0830, idProduct=0061
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156136] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156143] usb 2-2: Product: Palm Handheld
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156149] usb 2-2: Manufacturer: Palm, Inc.
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156155] usb 2-2: SerialNumber: PalmSN12345678
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160134] visor 2-2:1.0: Handspring Visor / Palm OS converter detected
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160433] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB0
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160674] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB1
crw-rw-rw- 1 root dialout 188, 2 Aug 29 22:47 /dev/ttyUSB2
************** proc devices *****************\n
180 usb
188 ttyUSB
189 usb_device
************** mknob 0 *****************\n
************** mknob 1 *****************\n
************** mknob 3 *****************\n
************** chmod and chown *****************\n
************** /dev/ttyUSB* *****************\n
crw-rw-rw- 1 root dialout 188, 0 Aug 29 23:09 /dev/ttyUSB0
crw-rw-rw- 1 root dialout 188, 1 Aug 29 23:09 /dev/ttyUSB1
crw-rw-rw- 1 root dialout 188, 2 Aug 29 22:47 /dev/ttyUSB2
crw-rw-rw- 1 root dialout 188, 3 Aug 29 23:09 /dev/ttyUSB3
************** pilot.rules *****************\n
-rw-r--r-- 1 root root 141 Aug 29 20:46 /etc/udev/rules.d/palmtreo.rules
BUS=="usb", SYSFS{product}=="Palm Handheld*|Handspring *", KERNEL=="ttyUSB*", NAME="ttyUSB%n", SYMLINK="pilot", GROUP="dialout", MODE="0666"
************** pilot-dlpsh 0 *****************\n
Unable to determine port to bind
Please use --help for more information
************** pilot-dlpsh 1 *****************\n
Unable to determine port to bind
Please use --help for more information
************** pilot-dlpsh 2 *****************\n
Unable to determine port to bind
Please use --help for more information
************** pilot-dlpsh 3 *****************\n
Unable to determine port to bind
Please use --help for more information
************** pilot-xfer 0 *****************\n
Listening for incoming connection on /dev/ttyUSB0...
************** pilot-xfer 1 *****************\n
Listening for incoming connection on /dev/ttyUSB1...
************** pilot-xfer 2 *****************\n
Unable to bind to port: /dev/ttyUSB2
Please use --help for more information
************** pilot-xfer 3 *****************\n
Unable to bind to port: /dev/ttyUSB3
Please use --help for more information
************** /dev/ttyUSB* *****************\n
crw-rw-rw- 1 root dialout 188, 0 Aug 29 23:09 /dev/ttyUSB0
crw-rw-rw- 1 root dialout 188, 1 Aug 29 23:09 /dev/ttyUSB1
crw-rw-rw- 1 root dialout 188, 2 Aug 29 22:47 /dev/ttyUSB2
crw-rw-rw- 1 root dialout 188, 3 Aug 29 23:09 /dev/ttyUSB3
************** /dev/bus/usb/* *****************\n
/dev/bus/usb/001:
total 0
drwxr-xr-x 2 root root 60 Aug 29 18:25 .
drwxr-xr-x 7 root root 140 Aug 29 18:25 ..
crw-rw-r-- 1 root root 189, 0 Aug 29 18:25 001
/dev/bus/usb/002:
total 0
drwxr-xr-x 2 root root 80 Aug 29 23:08 .
drwxr-xr-x 7 root root 140 Aug 29 18:25 ..
crw-rw-r-- 1 root root 189, 128 Aug 29 18:25 001
crw-rw-r-- 1 root dialout 189, 132 Aug 29 23:08 005
/dev/bus/usb/003:
total 0
drwxr-xr-x 2 root root 80 Aug 29 22:43 .
drwxr-xr-x 7 root root 140 Aug 29 18:25 ..
crw-rw-r-- 1 root root 189, 256 Aug 29 18:25 001
crw-rw-r-- 1 root root 189, 339 Aug 29 22:43 084
/dev/bus/usb/004:
total 0
drwxr-xr-x 2 root root 60 Aug 29 18:25 .
drwxr-xr-x 7 root root 140 Aug 29 18:25 ..
crw-rw-r-- 1 root root 189, 384 Aug 29 18:25 001
/dev/bus/usb/005:
total 0
drwxr-xr-x 2 root root 60 Aug 29 18:25 .
drwxr-xr-x 7 root root 140 Aug 29 18:25 ..
crw-rw-r-- 1 root root 189, 512 Aug 29 18:25 001
************** /sys/dev/char/18* *****************\n
lrwxrwxrwx 1 root root 0 Aug 29 22:44 /sys/dev/char/180:0 -> ../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1/usbmisc/hiddev0
lrwxrwxrwx 1 root root 0 Aug 29 23:09 /sys/dev/char/188:0 -> ../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/ttyUSB0/tty/ttyUSB0
lrwxrwxrwx 1 root root 0 Aug 29 23:09 /sys/dev/char/188:1 -> ../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/ttyUSB1/tty/ttyUSB1
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:0 -> ../../devices/pci0000:00/0000:00:1d.7/usb1
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:128 -> ../../devices/pci0000:00/0000:00:1d.0/usb2
lrwxrwxrwx 1 root root 0 Aug 29 23:09 /sys/dev/char/189:132 -> ../../devices/pci0000:00/0000:00:1d.0/usb2/2-2
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:256 -> ../../devices/pci0000:00/0000:00:1d.1/usb3
lrwxrwxrwx 1 root root 0 Aug 29 22:44 /sys/dev/char/189:339 -> ../../devices/pci0000:00/0000:00:1d.1/usb3/3-2
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:384 -> ../../devices/pci0000:00/0000:00:1d.2/usb4
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:512 -> ../../devices/pci0000:00/0000:00:1d.3/usb5
************** /dev/usb/* *****************\n
total 0
drwxr-xr-x 2 root root 60 Aug 29 22:43 .
drwxr-xr-x 18 root root 4300 Aug 29 23:09 ..
crw------- 1 root root 180, 0 Aug 29 22:43 hiddev0
Aug 29 23:08:44 Toshiba-Satellite-P105 kernel: [16985.437382] visor 2-2:1.0: device disconnected
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16995.992056] usb 2-2: new full-speed USB device number 5 using uhci_hcd
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156125] usb 2-2: New USB device found, idVendor=0830, idProduct=0061
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156136] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156143] usb 2-2: Product: Palm Handheld
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156149] usb 2-2: Manufacturer: Palm, Inc.
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156155] usb 2-2: SerialNumber: PalmSN12345678
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160134] visor 2-2:1.0: Handspring Visor / Palm OS converter detected
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160433] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB0
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160674] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB1
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root 785 0.0 0.1 8340 3544 ? Ss 18:26 0:00 /usr/sbin/cupsd -F
root 875 0.0 0.1 6700 2160 ? Ss 18:26 0:00 /sbin/wpa_supplicant -B -P /run/sendsigs.omit.d/wpasupplicant.pid -u -s -O /var/run/wpa_supplicant
root 917 0.0 0.1 8628 2748 ? Ss 18:26 0:00 /usr/sbin/cups-browsed
whoopsie 1117 0.0 0.2 61792 4572 ? Ssl 18:26 0:00 whoopsie
1000 2113 0.0 0.2 47324 4416 ? Sl 18:26 0:00 /usr/lib/i386-linux-gnu/indicator-application-service
1000 2320 0.0 0.7 709228 16136 ? Sl 18:27 0:01 nm-applet
1000 2497 0.0 1.6 424456 33920 ? Sl 18:27 0:08 /usr/lib/i386-linux-gnu/indicator-applet-complete
root 10712 0.0 0.0 2652 636 pts/3 S+ 23:09 0:00 pilot-xfer -l --port=/dev/ttyUSB0
root 10713 0.0 0.0 2652 636 pts/3 S+ 23:09 0:00 pilot-xfer -l --port=/dev/ttyUSB1
root 10734 0.0 0.0 4452 780 pts/3 S+ 23:09 0:00 grep [u|U|j|v|p][s|S|i|p][b|B|s|i|l]
************** lsusb *****************\n
Bus 002 Device 005: ID 0830:0061 Palm, Inc. Lifedrive / Treo 650/680 / Tunsten E2/T5/TX / Centro / Zire 21/31/72 / Z22
************** sylog *****************\n
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16995.992056] usb 2-2: new full-speed USB device number 5 using uhci_hcd
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156125] usb 2-2: New USB device found, idVendor=0830, idProduct=0061
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156136] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156143] usb 2-2: Product: Palm Handheld
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156149] usb 2-2: Manufacturer: Palm, Inc.
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.156155] usb 2-2: SerialNumber: PalmSN12345678
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160134] visor 2-2:1.0: Handspring Visor / Palm OS converter detected
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160433] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB0
Aug 29 23:08:54 Toshiba-Satellite-P105 kernel: [16996.160674] usb 2-2: Handspring Visor / Palm OS converter now attached to ttyUSB1
Aug 29 23:08:54 Toshiba-Satellite-P105 mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2"
Aug 29 23:08:54 Toshiba-Satellite-P105 mtp-probe: bus: 2, device: 5 was not an MTP device
Aug 29 23:08:59 Toshiba-Satellite-P105 whoopsie[1117]: online
************** ftdi_sio *****************\n
filename: /lib/modules/3.11.0-26-generic/kernel/drivers/usb/serial/ftdi_sio.ko
license: GPL
description: USB FTDI Serial Converters Driver
author: Greg Kroah-Hartman <[email protected]>, Bill Ryder <[email protected]>, Kuba Ober <[email protected]>, Andreas Mohr, Johan Hovold <[email protected]>
srcversion: 3EC1B476AE6B01A3C7D57BF
alias: usb:v05D1p8004d*dc*dsc*dp*ic*isc*ip*in*
depends: usbserial
intree: Y
vermagic: 3.11.0-26-generic SMP mod_unload modversions 686
parm: vendor:User specified vendor ID (default=0x0403) (ushort)
parm: product:User specified product ID (ushort)
parm: ndi_latency_timer:NDI device latency timer override (int)
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root 10712 0.0 0.0 2652 636 pts/3 S+ 23:09 0:00 pilot-xfer -l --port=/dev/ttyUSB0
root 10713 0.0 0.0 2652 636 pts/3 S+ 23:09 0:00 pilot-xfer -l --port=/dev/ttyUSB1
root 10746 0.0 0.0 4448 792 pts/3 S+ 23:09 0:00 grep pilot
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root 10748 0.0 0.0 4448 792 pts/3 S+ 23:09 0:00 grep usb
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root 735 0.0 0.1 7884 2932 ? Ss 18:25 0:00 /usr/sbin/modem-manager
root 10750 0.0 0.0 4452 796 pts/3 S+ 23:09 0:00 grep mode
No JPilot, quando você clica no hotsync, ele informa:
Syncing on device /dev/ttyUSB0
Press the HotSync button now
E fica indefinidamente ...
Eu clico no botão "hotsync" no telefone e, eventualmente, acaba com o erro:
"A conexão entre o computador de mão e a área de trabalho não pôde ser estabelecida. Verifique sua configuração e tente novamente."
É o Palm v 2.5, o JPilot 1.8.1.2
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Meu melhor palpite (total adivinhação neste ponto), já que eu sou instável sobre como a conexão entre o Dispositivo 5: usb 2-2: (189, 132) @ / dev / bus / usb / 002 se conecta ao / dev / ttyUSB0 ou / dev / ttyUSB1. Não parece haver nenhuma conexão e não tenho certeza de como fazer isso. Eu estou sentindo falta de algo, provavelmente óbvio para alguém que não está estrelando isso a maior parte do dia. Qualquer ajuda que me faça avançar novamente é muito apreciada!
/dev/bus/usb/002:
crw-rw-r-- 1 root dialout 189, 132 Aug 29 23:08 005
lrwxrwxrwx 1 root root 0 Aug 29 18:59 /sys/dev/char/189:256 -> ../../devices/pci0000:00/0000:00:1d.1/usb3
lrwxrwxrwx 1 root root 0 Aug 29 22:44 /sys/dev/char/189:339 -> ../../devices/pci0000:00/0000:00:1d.1/usb3/3-2
************** pilot-xfer 0 *****************\n
Listening for incoming connection on /dev/ttyUSB0...
************** pilot-xfer 1 *****************\n
Listening for incoming connection on /dev/ttyUSB1...
oh, e eu atualizei os arquivos MTP (usb-modeswitch, usb-modeswitch-data) e verifiquei que ftdi_sio é atual, apenas no caso de estar causando o problema.