Ticket #123 (new defect)

Opened 1 year ago

Last modified 3 months ago

Nokia 6300 communication problems with syncml-obex-client

Reported by: aanno Assigned to: abauer
Priority: normal Component: OpenSync
Version: Severity: normal
Keywords: Cc:

Description

Hello,

this is against libsyncml 0.4.4 on a gentoo amd64 bit system. I can connect but not successfully sync with a Nokia 6300 mobile phone via USB nor Bluetooth.

In addition the

export SYNCML_TRACE=/home/pasch/handy/trace
export SYNCML_LOG=/home/pasch/handy/log

did not lead to any files. (Wouldn't it be easier to provide flags for this?)

Please find attached to console stuff.

Kind Regards,

aanno


syncml-obex-client -b 00:1d:3b:ad:15:b5 10 --sync text/x-vcard  Contacts  --sync  text/x-vcalendar Calendar --wbxml
Received an transport error: Request not successfull: 76
Received an transport error: Link Error

syncml-obex-client --identifier "PC Suite" --sync text/x-vcard Contacts --sync text/x-vcalendar Calendar --wbxml -u 0
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last 0, Next 0
Received an Alert for the DS Server at Calendar: Type: 201, Last 0, Next 2
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an transport error: Request not successfull: 64

syncml-obex-client --identifier "PC Suite" --sync text/x-vcard Contacts --sync text/x-vcalendar Calendar --wbxml -u 0 --dumpinfo
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last 0, Next 0
Received an Alert for the DS Server at Calendar: Type: 201, Last 0, Next 2
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an transport error: Request not successfull: 64
Send the output below to the libsyncml developers

========================================
Man: Nokia
Mod: Nokia 6300
FirmwareVersion: V 05.00
27-04-07
RM-217
(c) N..
SoftwareVersion: V 05.00
27-04-07
RM-217
(c) N..
HardwareVersion: 3007

ReceiveLimit: 0
MaxObjSize: 0
Connection used: OBEX Client
Identifier: PC Suite

Databases:
DB Locations: Contacts
DB Type: text/x-vcard
DB Slow: 0

DB Locations: Calendar
DB Type: text/x-vcalendar
DB Slow: 0

Bluetooth: Unknown
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

Attachments

Thread3086322576.log (84.2 kB) - added by logularjason on 01/06/08 06:36:58.
trace file (1 of 2)
Thread3086325440.log (23.0 kB) - added by logularjason on 01/06/08 06:38:24.
trace file (2 of 2)
6300-sync-nopasswd-fails.xml (13.9 kB) - added by logularjason on 01/07/08 08:18:04.
usb capture - failed sync
6300-sync-passwd-succeeds.xml (8.5 kB) - added by logularjason on 01/07/08 08:18:39.
usb capture - successful sync
USBLog2.usblog (114.2 kB) - added by ikke on 01/08/08 00:32:48.
USBSnoop log of failed BT search/connect/sync cycle
6300-update.usblog (16.6 kB) - added by logularjason on 01/08/08 07:40:06.
pc suite update of one contact (usblog)
6300-update.xml (19.1 kB) - added by logularjason on 01/08/08 07:40:27.
pc suite update of one contact (xml)

Change History

01/06/08 06:36:06 changed by logularjason

I am experiencing the same issue, as shown below. I am also attaching trace files.

[jas@speck libsyncml]$ syncml-obex-client -b 00:1e:a4:11:15:88 11  --slow-sync text/x-vcard  Contacts --identifier "PC Suite" --wbxml --dumpinfo
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last 0, Next 1
Slowsyncing
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an transport error: Request not successfull: 68
Send the output below to the libsyncml developers

========================================
Man: Nokia
Mod: Nokia 6300
FirmwareVersion: V 05.50
14-08-07
RM-217
(c) N..
SoftwareVersion: V 05.50
14-08-07
RM-217
(c) N..
HardwareVersion: 1007

ReceiveLimit: 0
MaxObjSize: 0
Connection used: OBEX Client
Identifier: PC Suite

Databases:
DB Locations: Contacts
DB Type: text/x-vcard
DB Slow: 1

Bluetooth: Yes
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

01/06/08 06:36:58 changed by logularjason

  • attachment Thread3086322576.log added.

trace file (1 of 2)

01/06/08 06:38:24 changed by logularjason

  • attachment Thread3086325440.log added.

trace file (2 of 2)

01/06/08 06:40:30 changed by logularjason

Also relevant: I am using opensync 0.35 - custom-compiled for my fedora 8 box, and am using libsyncml 0.4.5. I have also experimented with a variety of identifiers with the same result.

01/07/08 08:17:12 changed by logularjason

While using the Nokia PC Suite today, I made a discovery that seems consistent with the sync failure under opensync. Nokia PC Suite fails to sync the phone unless a user/password is present. Furthermore, when the sync fails under PC Suite, the feedback on the handset is identical to what I see when opensync fails. Thus, it seems as though user/password is mandatory for this phone.

I am attaching two USB capture logs. The first represents a failed sync when no user/password has been defined on either the phone or in PC Suite. The second is a successful sync using user/password of jas/adg. I told PC to only sync contacts - there was only a single test contact on both the phone and handset. Worked OK.

01/07/08 08:18:04 changed by logularjason

  • attachment 6300-sync-nopasswd-fails.xml added.

usb capture - failed sync

01/07/08 08:18:39 changed by logularjason

  • attachment 6300-sync-passwd-succeeds.xml added.

usb capture - successful sync

01/07/08 10:40:22 changed by logularjason

I'm happy to report that opensync just synced my evo contacts to the Nokia 6300 for the first time after many attempts. All I did was to add a username/password to the evo conf as shown in ticket #123.

NOTE: I am certain that I tried this repeatedly yesterday, and can only assume that opensync suddenly works because of my [first] use of PC Suite today - perhaps it brought the handset out of a previously bad state or similar?

The config used is:

[jas@speck group3]$ msynctool --showgroup eo 
Group: eo
Member 2: syncml-obex-client
        Configuration : <?xml version="1.0"?>
<config>
  <bluetooth_address>00:1e:a4:11:15:88</bluetooth_address>
  <bluetooth_channel>11</bluetooth_channel>
  <interface>0</interface>
  <!-- identifier>PC Suite</identifier -->
  <!-- identifier>Nokia PC Suite</identifier -->
  <!-- identifier>PC Suite Data Sync</identifier -->
  <identifier>PC Suite</identifier>
  <version>1</version>
  <wbxml>1</wbxml>
  <username>jas</username>
  <password>adg</password>
  <type>2</type>
  <usestringtable>0</usestringtable>
  <onlyreplace>0</onlyreplace>
  <onlyLocaltime>0</onlyLocaltime>
  <recvLimit>0</recvLimit>
  <maxObjSize>0</maxObjSize>
  <database>
     <name>Contacts</name>
     <objtype>contact</objtype>
     <objformat>vcard21</objformat>
  </database>
  <!--database>
     <name>Notes</name>
     <objtype>note</objtype>
     <objformat>vjournal</objformat>
  </database-->
</config>

Member 1: evo2-sync
        Configuration : <?xml version="1.0"?>
<config>
  <address_path>file:///home/jas/.evolution/addressbook/local/system</address_path>
  <calendar_path>default</calendar_path>
  <memos_path>default</memos_path>
  <tasks_path>default</tasks_path>
</config>

01/07/08 20:52:17 changed by dgollub

Nice catch!

Really wonder whats wrong with 6300 ...

Unfortunetly both usb log files look a bit truncate - usbsnoopy crashed while exporting? Do you still have the usbsnoppy native files?

01/08/08 00:31:38 changed by ikke

Right. I tried the PC Suite thing earlier today, which I thought was working, but now I'm actually not sure anymore, read on.

After rebooting into Linux, I tried both using opensync and the syncml-obex-client utility, didn't get anything working (actually I wonder why it works for Jason if he got a username set...) both with or without authentication enabled.

Now I rebooted into Windows, PC Suite didn't work anymore. Using the explorer interface (which is, I suppose, not SyncML based, but part of the main PC Suite, not the sync subtool) did work fine. I made a backup of all data, did a reset of the phone using *#7780#, tried syncing again, no luck. Restored my backup, synced, no luck.

Then I decided to try the last thing I could think of: re-install firmware. Did so, tried syncing afterwards (with and without password set), and after restoring my data, all failed, both using USB and BT.

I'll attach a log of the failed BT sync.

The sync software log doesn't provide much info except this string: "PC Sync has encountered a problem and has terminated the synchronisation". If you search for it on the net, you'll see lots of people reported similar issues with different setups.

So, actually I'm wondering whether the first time I thought the sync succeeded it actually didn't, and I overlooked some warning message (as, even when sync fails, no popup dialog appears, it's just a string in some window).

01/08/08 00:32:48 changed by ikke

  • attachment USBLog2.usblog added.

USBSnoop log of failed BT search/connect/sync cycle

01/08/08 06:22:17 changed by logularjason

Some more info in case this helps with the troubleshooting.

Before use of username/password in my obex-client config suddenly worked, I was experiencing the followingn error message when doing a slow sync with msynctool:

contact sink of member 2 of type syncml-obex-client had an error: Auth required but not given

I'm still speculating about what made the sync suddenly work, and still think that PC Suite performed some sort of handset initialisation. Seeing ikke's post above, and how his handset is now not even operational under PC Suite, I'm wondering whether these handsets can fall into a state that generally precludes sync'ing.

Also, my firmware details (obtained using *#0000#) are:

Nokia 6300 V05.50 14-08-07 RM-217

01/08/08 06:25:42 changed by logularjason

Just to be clear, I found that for PC Suite to work, I needed to set a username/password on the handset under Connectivity->Data transfer->PC Synchronisation. Then, this needs to be matched in the PC Suite sync setup (and also in the msynctool obex config - I don't know whether it is possible to pass these creds to syncml-obex-client).

01/08/08 07:39:25 changed by logularjason

Re usb logs - I'm about to attach two more logs - raw and xml.

The use-case was the update of one contact from outlook to handset via PC Suite. I told PC Suite to update contacts only, and I think I have about 42 contacts in outlook now.

Hope this helps. This time, I've checked to confirm that the XML is good.

01/08/08 07:40:06 changed by logularjason

  • attachment 6300-update.usblog added.

pc suite update of one contact (usblog)

01/08/08 07:40:27 changed by logularjason

  • attachment 6300-update.xml added.

pc suite update of one contact (xml)

05/24/08 01:35:56 changed by dfoerster

I experience the same issue with the 6300. (Connection not working without credentials and "Auth required but not given" with username and password specified.)

I can post my log and trace files too, if this helps. I'm also very willing to try out patches. (I didn't get the latest svn version working though, even some test cases failed.)