我gammu
第一次尝试是因为我想将一些谷歌联系人转移回诺基亚 6303i。
虽然 Gammu 网站上的手机数据库部分指出这款手机可以使用多种蓝牙连接设置,但我没有蓝牙连接,因此不得不求助于我拥有的 DKU2 USB 数据线。该电缆实际上是 CA-101 nokia 电缆,但根据gnokii wiki,它们在技术上是相同的。
我尝试了几种不同的连接类型。来自~/.gammurc
[gammu]
#model = NAUTO
device = 01a5:-1
connection = dku2
synchronizetime = yes
logfile = gammu0.log
logformat = text
use_locking =
gammuloc =
[gammu1]
device = /dev/ttyACM0
connection = at
synchronizetime = yes
logfile = gammu1.log
logformat = text
use_locking =
gammuloc =
[gammu2]
#model = NAUTO
device = /dev/ttyACM0
connection = fbus
synchronizetime = yes
logfile = gammu2.log
logformat = text
use_locking =
gammuloc =
[gammu3]
#model = NAUTO
device = 01a5:-1
connection = fbususb
synchronizetime = yes
logfile = gammu2.log
logformat = text
use_locking =
gammuloc =
我设法使用“at”连接gammu -s 1 identify
并正确读取电话信息。然后我尝试从我从谷歌联系人导出的那些中复制一个简单的(尽管不是生成的)vCard。
它通常是这样格式化的:
BEGIN:VCARD
VERSION:2.1
FN:Name Surname
N:Surname;Name
EMAIL;CHARSET=UTF-8;ENCODING=8BIT:name.surname@domain.com
TEL;TYPE=CELL:+10123456789
TEL;TYPE=CELL:+19876543210
END:VCARD
令人沮丧的是,从运行诺基亚 PC 套件的 Windows PC 上,我能够通过同一条电缆正确地将同一张 vCard 发送到诺基亚 6303i。但是,从 gammu,我 - 最多 - 能够从“N:Surname;Name;;;”发送姓氏 字段(联系人仅显示姓氏)和第一个电话号码。所以电子邮件和第二个电话号码被省略了。
这对我来说还不够,因为我需要转移所有电话、所有电子邮件和笔记。我还没有找到任何关于“at”连接是否支持“增强型电话簿”功能的信息(似乎它不支持),但除了“bluefbus”之外,我还没有发现它应该支持“诺基亚 6303i Cliasic”中的“增强型电话簿”我不知道哪个其他有线连接支持它。
所以我尝试了配置文件中看到的变体 gammu(0) 、 gammu2 和 gammu3
但这两个不起作用。gammu
并在日志中gammu3
转储以下内容
[Gammu - 1.31.0 built 12:51:10 Jul 24 2016 using GCC 4.7]
[Connection - "dku2"] #or "fbususb for gammu3
[Connection index - 0]
[Model type - ""]
[Device - "01a5:-1"]
[Running on - Linux, kernel 3.2.29-gaze5 (#1 SMP Sat Apr 20 13:57:31 EEST 2013)]
Checking 1d6b:0002 (bus 1, device 1)
Checking 1d6b:0002 (bus 2, device 1)
Checking 1d6b:0001 (bus 3, device 1)
Checking 1d6b:0001 (bus 4, device 1)
Checking 1d6b:0001 (bus 5, device 1)
Checking 1d6b:0001 (bus 6, device 1)
Checking 1d6b:0001 (bus 7, device 1)
Checking 0421:0359 (bus 7, device 35)
Extra CDC subheader: 171
Trying to open device, config=1, c_iface=2, c_alt=0, d_iface=3, d_alt=1
Configuration change not required, unhooking only required interfaces!
Detaching kernel driver from inteface 2
Claiming USB control interface...
Configuring USB control interface...
Claiming USB data interface...
Configuring USB data interface...
Connected!
[Module - "auto"]
Getting model
SENDING frametype 0xD1/length 0x05/5
00 |01 |00 |03 |00 .....
Failed to read from usb (-99)!
Other error
Failed to read from usb (-99)!
Other error
Failed to read from usb (-99)!
Other error
和gammu2
[Gammu - 1.31.0 built 12:51:10 Jul 24 2016 using GCC 4.7]
[Connection - "fbus"]
[Connection index - 0]
[Model type - ""]
[Device - "/dev/ttyACM0"]
[Running on - Linux, kernel 3.2.29-gaze5 (#1 SMP Sat Apr 20 13:57:31 EEST 2013)]
Setting speed to 115200
Serial device: DTR is up, RTS is down, CAR is down, CTS is up
(... and it gets stuck here)
所以主要问题是:我怎样才能通过 USB 电缆将 vCard(和许多其他人)传输到手机???????
谢谢