Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Contacts, sms messages and files from and to mobile phone

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
Rodolfo Medina
Posts: 35
Joined: 2006-05-06 10:39

Contacts, sms messages and files from and to mobile phone

#1 Post by Rodolfo Medina »

subject:
How to share Contacts, Calendar, Notes, sms messages and files between PC and
mobile phone.

About Contacts, the following procedure unfortunately does not allow to read
and write from and to the phone the text labels wich has been modified by the
user (this is possible with Nokia 6630 and N73 and others phones:
Menu > Contacts > (open contact) > Edit > Edit label).
To do that, a very expensive proprietary software is necessary that run under
MS Windows: Oxygen Phone Manager: www.oxygensoftware.com.

Operating system: Debian Etch 4.0 r0
Phones: Nokia 6630 and Nokia N73


****************************************************************
1. How to share smses and other files (text files, images, etc.)
****************************************************************

Sources:

http://osrevolution.wordpress.com/2007/ ... okia-6630/

During the Debian installation I had installed x-window-system-core and
gnome-core. I did:

# apt-get install bluez-utils obexpushd ussp-push

. Now I plugged a 10€ usb bluetooth adapter into an usb port and put in
/etc/init.d/rc.local the following stuff:

dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetDiscoverableTimeout uint32:0

, then I rebooted with the adapter still plugged in. Then I did:

$ obexpushd -nd

, and the output was:

obexpushd 0.4 Copyright (C) 2006 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth channel 9

. Now I could send images and other files from phone to PC via bluetooth.
But beware: the same file must not already exist on the PC in the location
where you want to send it, otherwise you'll get a `sending failed' warn.
After sending, close obexpushd with `C-c'.

To send a file from the PC to the phone:

$ sdptool browse

, and the output contained the following information:

Browsing 00:13:FD:BD:1A:64 ...

[...]

Service Name: OBEX Object Push
Service RecHandle: 0x10001
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 9
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a

base_offset: 0x100
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100


. So I opened the file /etc/bluetooth/rfcomm.conf and edited it this way:


#
# RFCOMM configuration file.
#

rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:13:FD:BD:1A:64;
#
# # RFCOMM channel for the connection
channel 9;
#
# # Description of the connection
comment "Nokia 6630";
}


. The file can also be edited with two (or more) entries: rfcomm0 and
rfcomm1, if you want to work with the 6630 and the N73 together. In that
case, the output of `sdptool browse' will show both devices. I rebooted. I
did:

$ rfcomm

and the output was:

rfcomm0: 00:13:FD:BD:1A:64 channel 9 clean

, so it was okay. Now, let's create the file /usr/bin/bt-send and let's put
in it the following stuff:

#!/bin/bash
ussp-push /dev/rfcomm0 $1 $1

. If there are two entries in /etc/bluetooth/rfcomm.conf: rfcomm0 and rfcomm1,
we can think of creating two files, `bt-send0' and `bt-send1', with `rfcomm0'
and `rfcomm1' rispectively in them. Let's make the file(s) executable:

# chmod 755 /usr/bin/bt-send

. Let's use it:

$ bt-send file

, where `file' is a text file. Now we can copy sms messages from phone to PC:
from:

http://www.handango.com/PlatformProduct ... tId=182371

I downloaded the file msgsaver_2_0.sis and sent it to the Nokia 6630 via
bluetooth as above (I haven't tried yet with the N73), then went into the
phone inbox, entered into the file that had just been received and installed
it in the phone. Then, in the phone, Menu > JJL Software > Message Saver and
send the message via bluetooth. (On the Nokia N73 I don't know if it's also
possible to install Message Saver, so I don't know how to transfer sms
messages to PC.)




********************************************
2. How to share Contacts, Calendar and Notes
********************************************

Sources:

http://www.opensync.org/wiki/SetupGuide
http://www.opensync.org/wiki/syncml-guide

During the Debian installation I had chosen the manual package installation and
hadn't installed any package myself. I did:

# apt-get install libsqlite3-0 libbluetooth2 libopenobex1 libsoup2.2-8 libwbxml2-0

. From

http://opensync.gforge.punktart.de/repo ... main/libo/

I downloaded the following packages:

libopensync0_0.22-etch2_i386.deb
libopensync-plugin-file_0.22-etch1_i386.deb
libopensync-plugin-syncml_0.22-etch1_i386.deb
libsyncml0_0.4.4-etch1_i386.deb
msynctool_0.22-etch2_i386.deb
[libopensync-plugin-evolution2_0.22-etch2_i386.deb]

and put them in ~/tmp. Then, since ~/tmp didn't contain any other files, I did:

$ cd ~/tmp
# dpkg -i *
$ rm -v *


==========================
2.1 With an usb connection
==========================

----------------
2.1.1 Nokia 6630
----------------

# mkdir /home/rodolfo/nokia6630-usb
# msynctool --addgroup nokia6630-usb
# msynctool --addmember nokia6630-usb file-sync
# msynctool --addmember nokia6630-usb syncml-obex-client
# msynctool --configure nokia6630-usb 1

, and edited the file as follows:

<?xml version="1.0"?>
<config>
<!-- directory path for file-sync -->
<path>/home/rodolfo/nokia6630-usb</path>

<!-- should care of subdirectories (TRUE or FALSE) -->
<recursive>FALSE</recursive>
</config>

. Then,

# msynctool --configure nokia6630-usb 2

, and edited the file as follows:

<?xml version="1.0"?>
<config>
<!-- (Only for USB) The usb interface number of the SYNCML-SYNC target. use syncml-obex-client -u (you will need access to the USB raw device) to find it. -->
<interface>0</interface>

<!-- The string that the plugin will use to identify itself. Some devices need a special string here. -->
<identifier>PC Suite</identifier>

<!-- The syncml version to use: 0 for 1.0, 1 for 1.1 and 2 for 1.2 -->
<version>1</version>

<!-- if the plugin should use wbxml -->
<wbxml>1</wbxml>

<!-- The username to use. Leave empty to not require a username -->
<username></username>

<!-- the password for the username -->
<password></password>

<!-- sets the connection type to use. 5 means obex over usb, 2 means obex over bluetooth -->
<type>5</type>

<!-- If wbxml is enabled, defines wether the wbxml should use string tables -->
<usestringtable>0</usestringtable>

<!-- Never send ADD command, but send REPLACE (not needed normally) -->
<onlyreplace>0</onlyreplace>

<!-- Sets the maximum allowed size in bytes of incoming messages (some device need this option set). Example: 10000 -->
<recvLimit>7000</recvLimit>

<!-- The name of the contacts db. Must be the same as the phones sends -->
<contact_db>Contacts</contact_db>

<!-- The name of the calendar db. Must be the same as the phones sends -->
<calendar_db>Calendar</calendar_db>

<!-- The name of the note db. Must be the same as the phones sends -->
<note_db>Notes</note_db>
</config>

. Then I connected the phone to the PC with an usb cable and did:

# msynctool --sync nokia6630-usb

, and in /home/rodolfo/nokia6630 were copied Contacts, Calendar and Notes from
the phone.
To clean up the sync group, use the script reported at:

http://www.opensync.org/wiki/FAQ#HowdoI ... fortesting

. To run msynctool as non root I did: (source:

http://flynux.wordpress.com/2007/04/17/ ... ntu-e-usb/

)

$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0421:0410 Nokia Mobile Phones 6630 Imaging Smartphone
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

, then created the file /etc/udev/rules.d/040-permission.rules and put in it
the following line:

BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="0410", GROUP="dialout"

. `rodolfo' was alredy member of the dialout group, so no need to add it to
the group. Then I rebooted.



---------------
2.1.2 Nokia N73
---------------

The phone was not seen by the PC: `lsusb' didn't detect it!




===============================
2.2 With a bluetooth connection
===============================

I had already done the procedure described at paragraph 1.


----------------
2.2.1 Nokia 6630
----------------

$ mkdir nokia6630-bt
$ msynctool --addgroup nokia6630-bt
$ msynctool --addmember nokia6630-bt file-sync
$ msynctool --addmember nokia6630-bt syncml-obex-client
$ msynctool --configure nokia6630-bt 1

, and edited the file as follows:

<?xml version="1.0"?>
<config>
<!-- directory path for file-sync -->
<path>/home/rodolfo/nokia6630-bt</path>

<!-- should care of subdirectories (TRUE or FALSE) -->
<recursive>FALSE</recursive>
</config>

. Then I did:

$ sdptool search SYNCML

, and the output was:

Inquiring ...
Searching for SYNCML on 00:13:FD:BD:1A:64 ...
Service Name: SyncMLClient
Service RecHandle: 0x10006
Service Class ID List:
UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 11
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"" (0x00000002-0000-1000-8000-0002ee000002)
Version: 0x0100

. Then I did:

$ msynctool --configure nokia6630-bt 2

, and this was the right configuration:

<bluetooth_address>00:13:FD:BD:1A:64</bluetooth_address>
<bluetooth_channel>11</bluetooth_channel>
<identifier>PC Suite</identifier>
<version>1</version>
<wbxml>1</wbxml>
<username></username>
<password></password>
<type>2</type>
<usestringtable>1</usestringtable>
<onlyreplace>0</onlyreplace>
<recvLimit>7000</recvLimit>
<maxObjSize>0</maxObjSize>
<contact_db>Contacts</contact_db>
<calendar_db>Calendar</calendar_db>
<note_db>Notes</note_db>

. It was necessary to pair the phone with the PC before doing the
synchronization. Following the procedure reported at:

http://www.klabs.be/~fpiat/linux/debian ... sages.html

, I did:

# apt-get install gcc libc6-dev

# cd /usr/share/doc/bluez-utils/examples

# gzip -dc passkey-agent.c.gz > passkey-agent.c

# apt-get install pkg-config libdbus-1-dev

# make

# ls -l passkey-agent
-rwxr-xr-x 1 root root 15266 2007-10-25 18:50 passkey-agent

# rm -vi passkey-agent.c

# mv -vi passkey-agent /usr/local/bin/

$ passkey-agent --default 1234

, then in the phone: Menu > Connectivity > Bluetooth. Activate it, then:
Menu > Tools > Data transfer, search for a new paired device, select the PC
and enter `1234' when the phone prompts for pin code, then OK; then, C-c in
the terminal. Now I coud run

$ msynctool --sync nokia6630-bt

. To clean up the sync group, use the script reported at:

http://www.opensync.org/wiki/FAQ#HowdoI ... fortesting


---------------
2.2.2 Nokia N73
---------------

Same procedure as for 6630 (create a new group: nokia-n73, add members etc.)
The configuration:

<bluetooth_address>00:1C:D4:7F:E2:3D</bluetooth_address>
<bluetooth_channel>10</bluetooth_channel>
<identifier>PC Suite</identifier>
<version>1</version>
<wbxml>1</wbxml>
<username></username>
<password></password>
<type>2</type>
<usestringtable>1</usestringtable>
<onlyreplace>0</onlyreplace>
<recvLimit>10000</recvLimit>
<maxObjSize>0</maxObjSize>
<contact_db>Contacts</contact_db>


. To pair the phone with the PC, same procedure as above until

$ passkey-agent --default 1234

. Then, Menu > Tools > Bluetooth. Activate it, then push right
the joystick, search for a new paired device, select the PC and enter `1234'
when the phone prompts for pin code, then OK; then, C-c in the terminal. Now
I coud run

$ msynctool --sync nokia-n73

. To clean up the sync group, use the script reported at:

http://www.opensync.org/wiki/FAQ#HowdoI ... fortesting
Last edited by Rodolfo Medina on 2007-12-24 11:59, edited 2 times in total.

User avatar
Jackiebrown
Posts: 1246
Joined: 2007-01-02 04:46
Location: San Antonio, TX

#2 Post by Jackiebrown »

I wrote this on another forum but how to talk with your windows "smart" phone.

http://debcentral.org/modules/newbb/vie ... 15&forum=8

Post Reply