Palm Treo 700p:不是 MTP 设备

Palm Treo 700p:不是 MTP 设备

Palm Treo 700p:不是 MTP 设备(系统日志错误):Jpilot HotSync 超时

以今天的标准来看,这款手机已经过时了,但它满足了我的需求,我喜欢它。两三次 ubuntu 操作系统升级之前,JPilot 无法与我的手机同步。我的互联网访问受限,搜索到的文章称,由于它已经过时,使用率极低,它已停产。

我现在有时间研究,并且找到了很多关于如何在旧版本上运行它的文档,以及多年来发生的所有不同的解决方法,我已经做到了这一点。我需要一些帮助。

使用所有帮助文档和讨论线程,我将这些步骤拼凑在一起,并将它们放入脚本中(更容易测试结果)。

~$ 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";

这是我的输出结果:

    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

在 JPilot 中,当您单击热同步时,它会报告:


 Syncing on device /dev/ttyUSB0
 Press the HotSync button now

并且无限期地挂出...

我点击了手机上的热同步按钮,最终超时并显示错误:“无法建立您的手持计算机与台式机之间的连接。请检查您的设置并重试。”

是 Palm v 2.5,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

我最好的猜测(目前完全是猜测)因为我不确定设备 5:usb 2-2:(189, 132) @/dev/bus/usb/002 和 /dev/ttyUSB0 或 /dev/ttyUSB1 之间的连接方式。似乎没有任何联系,我不确定如何建立它。我遗漏了一些东西,对于其他大部分时间没有盯着这个的人来说可能很明显。任何帮助我再次前进的帮助都将不胜感激!

/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...

哦,我确实升级了 MTP 文件(usb-modeswitch、usb-modeswitch-data)并验证了 ftdi_sio 是最新的,以防它导致问题。

答案1

我没有 Treo,但过去 5 年多来,我一直在定期同步我的 Palm 的 LTS 版本。

不过,我不得不告诉你,上周同步功能停止工作了,我一直苦苦思索为什么会这样。但我刚刚又做了一次更新,同步功能突然又恢复了。我不知道这是否是你的问题之一,但如果可以的话,今天就强制更新吧。

以下是我的检查和同步步骤。也许这里的一些内容会有所帮助。

  • 让 root 将您添加到该dialout组。然后您需要注销并重新登录。作为普通用户,键入此命令以查看您属于哪些组:

    群组

  • 确保visor已加载。你可以以非 root 身份在终端中输入以下内容进行检查:

    modprobe visor 2>/dev/null ; echo $?  # you want to see a "0"
    
  • 检查 pilot-link 包是否存在。以非 root 身份执行:

    test -e /usr/bin/pilot-xfer ; echo $?  # again, you want to see a "0"
    
  • 通过 USB 连接设备。我通常先将其插入,然后拔出,再将其重新插入,并确认蜂鸣声 (Zire 72)。下一个命令必须在 80 秒内完成:

    pilot-xfer --port usb: --list #connect and list databases, mostly harmless 
    

这里您使用 pilot-link(jpilot 也使用它)列出您的数据库。您还需要点击设备上的 hotsync 按钮。

如果所有方法都有效,那么问题可能出在 jpilot 配置上。

相关内容