×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    6

    Question Server Alerted Sync

    Dear All,

    Whenever I try to send server alerted Sync, Nokia 7610 gives: "General: System Error!"

    The handset has a working profile for the server, and it "accept all sync requests"

    The following request is sent by SMS:
    <SyncML>
    <SyncHdr>
    <VerDTD>1.0</VerDTD>
    <VerProto>SyncML/1.0</VerProto>
    <SessionID>1</SessionID>
    <MsgID>1</MsgID>
    <Source>
    <LocURI>http://www.xxxxxxx.com/funambol/ds</LocURI>
    </Source>
    </SyncHdr>
    <SyncBody>
    <Alert>
    <CmdID>1</CmdID>
    <Data>206</Data>
    <Item>
    <Source>
    <LocURI>card</LocURI>
    </Source>
    <Meta>
    <Type>text/x-vcard</Type>
    </Meta>
    </Item>
    </Alert>
    <Final />
    </SyncBody>
    </SyncML>

    Which is encoded as:

    000000000 02 00 00 6A 1D 2D 2F 2F - 53 59 4E 43 4D 4C 2F 2F |...j.-// - SYNCML//|
    000000010 44 54 44 20 53 79 6E 63 - 4D 4C 20 31 2E 30 2F 2F |DTD Sync - ML 1.0//|
    000000020 45 4E 6D 6C 71 C3 03 31 - 2E 30 01 72 C3 0A 53 79 |ENmlq..1 - .0.r..Sy|
    000000030 6E 63 4D 4C 2F 31 2E 30 - 01 65 C3 01 31 01 5B C3 |ncML/1.0 - .e..1.[.|
    000000040 01 31 01 67 57 C3 22 68 - 74 74 70 3A 2F 2F 77 77 |.1.gW."h - ttp://ww|
    000000050 77 2E 78 78 78 78 78 78 - 78 2E 63 6F 6D 2F 66 75 |w.xxxxxx - x.com/fu|
    000000060 6E 61 6D 62 6F 6C 2F 64 - 73 01 01 01 6B 46 4B C3 |nambol/d - s...kFKأ|
    000000070 01 31 01 4F C3 03 32 30 - 36 01 54 67 57 C3 04 63 |.1.O..20 - 6.TgW..c|
    000000080 61 72 64 01 01 5A 53 C3 - 0C 74 65 78 74 2F 78 2D |ard..ZSأ - .text/x-|
    000000090 76 63 61 72 64 01 01 01 - 01 12 01 01 |vcard... - ....|

    What could be the reason?

    Many thanks.

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    21

    Re: Server Alerted Sync

    Using the following XML. With Nokia phone there are some errors in you XML.

    Code:
    <SyncML xmlns='SYNCML:SYNCML1.1'>
    	<SyncHdr>
    		<VerDTD>1.1</VerDTD>
    		<VerProto>SyncML/1.1</VerProto>
    		<SessionID>1</SessionID>
    		<MsgID>1</MsgID>
    		<Target>
    			<LocURI>/</LocURI>
    		</Target>
    		<Source>
    			<LocURI>PC Suite</LocURI>
    		</Source>
    	</SyncHdr>
    	<SyncBody>
    		<Alert>
    			<CmdID>1</CmdID>
    			<Data>206</Data>
    			<Item>
    				<Source>
    					<LocURI>Contacts</LocURI>
    				</Source>
    				<Meta>
    					<Type xmlns='syncml:metinf'>text/x-vcard</Type>
    				</Meta>
    			</Item>
    		</Alert>
    		<Final/>
    	</SyncBody>
    </SyncML>

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    6

    Re: Server Alerted Sync

    Dear Wingslee,

    Thanks for your reply, and the hint about codepage. I used your example, but with no luck.

    When I was checking each byte, I encountered something strange in SyncML specs example, which say: 4D <Type>, but that conflicts with the MetaInf spec, which defines "Type" as 0x13 (not decimal 13), the value should have been 0x53 not 0x4D. Both values give same result.

    Also, I wonder when to use opaque data and inline string.

    Using your example, the following is generated:

    Code:
    000000000  02 00 00 6A 1D 2D 2F 2F  53 59 4E 43 4D 4C 2F 2F |...j.-//SYNCML//|
    000000010  44 54 44 20 53 79 6E 63  4D 4C 20 31 2E 31 2F 2F |DTD SyncML 1.1//|
    000000020  45 4E 6D 6C 71 C3 03 31  2E 31 01 72 C3 0A 53 79 |ENmlqأ.1.1.rأ.Sy|
    000000030  6E 63 4D 4C 2F 31 2E 31  01 65 C3 01 31 01 5B C3 |ncML/1.1.eأ.1.[أ|
    000000040  01 31 01 6E 57 C3 01 2F  01 01 67 57 C3 08 50 43 |.1.nWأ./..gWأ.PC|
    000000050  20 53 75 69 74 65 01 01  01 6B 46 4B C3 01 31 01 | Suite...kFKأ.1.|
    000000060  4F C3 03 32 30 36 01 54  67 57 C3 08 43 6F 6E 74 |Oأ.206.TgWأ.Cont|
    000000070  61 63 74 73 01 01 5A 00  01 4D 03 74 65 78 74 2F |acts..Z..M.text/|
    000000080  78 2D 76 63 61 72 64 00  01 00 00 01 01 01 12 01 |x-vcard.........|
    000000090  01 01                                            |..|
    Which means:

    Code:
    02				Version number – WBXML v1.2
    00				FPI for DTD in string table
    00				index into string table for the identifier
    6A				Charset is UTF-8
    1D				String table length
    "-//SYNCML//DTD SyncML 1.1//EN"
    6D				<SyncML>
    6C				<SyncHdr>
    71				<VerDTD>
    C3				Opaque data follows
    03				Length of opaque data
    "1.1"
    01				</VerDTD>
    72				<VerProto>
    C3				Opaque data follows
    0A				Length of opaque data
    "SyncML/1.1"
    01				</VerProto>
    65				<SessionID>
    C3				Opaque data follows
    01				Length of opaque data
    "1"
    01				</SessionID>
    6E				<Target>
    57				<LocURI>
    C3				Opaque data follows
    01				Length of opaque data
    "/"
    01				</LocURI>
    01				</Target>
    67				<Source>
    57				<LocURI>
    C3				Opaque data follows
    08				Length of opaque data
    "PC Suite"
    01				</LocURI>
    01				</Source>
    01				</SyncHdr>
    6B				<SyncBody>
    46				<Alert>
    4B				<CmdID>
    C3				Opaque data follows
    01				Length of opaque data
    "1"
    01				</CmdID>
    4F				<Data>
    C3				Opaque data follows
    03				Length of opaque data
    "206"
    01				</Data>
    54				<Item>
    67				<Source>
    57				<LocURI>
    C3				Opaque data follows
    08				Length of opaque data
    "Contacts"
    01				</LocURI>
    01				</Source>
    5A				<Meta>
    00				Codepage switch
    01				Codepage 01 (MetInf)
    4D				<Type>
    03				Inline string follows
    "text/x-vcard" 00
    01				</Type>
    00				Codepage switch
    00				Codepage 00
    01				</Meta>
    01				</Item>
    01				</Alert>
    12				<Final>
    01				</Final>
    01				</SyncBody>
    01				</SyncML>
    Any ideas?

    Many thanks.

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    21

    Re: Server Alerted Sync

    Hi,

    What kind of WBXML parser you used or you wrote all by yourself?
    I used WBXML SAX, and my wbxml is
    Code:
    03 9F 53 6A 00 6D 6C 71 03 31 2E 31 00 01 72 03
    53 79 6E 63 4D 4C 2F 31 2E 31 00 01 65 03 31 00
    01 5B 03 31 00 01 6E 57 03 2F 00 01 01 67 57 03
    50 43 20 53 75 69 74 65 00 01 01 01 6B 46 4B 03
    31 00 01 4F 03 32 30 36 00 01 54 67 57 03 43 6F
    6E 74 61 63 74 73 00 01 01 5A 00 01 53 03 74 65
    78 74 2F 78 2D 76 63 61 72 64 00 01 01 01 01 00
    00 12 01 01
    Please make sure your obex package is correct first I am quite sure there are errors in your wbxml because I met the same problem last week.
    Thank Traud

  5. #5
    Registered User
    Join Date
    Dec 2003
    Posts
    6

    Re: Server Alerted Sync

    Thanks for your WBXML.

    Quote Originally Posted by wingslee
    What kind of WBXML parser you used or you wrote all by yourself?
    Home made

    Quote Originally Posted by wingslee
    Please make sure your obex package is correct first
    Well, I am trying to send through binary SMS, not direct connection. Sending your sample bytes still gives error, which denotes a header or something else is incorrect.

    Thanks again.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2003
    Posts
    4,105
    I would try OBEX (Bluetooth) first. It is easier to debug. Then you can use the same message for SMS and debug your SMS headers. Nevertheless, why are you using SyncML 1.0? A Nokia 7610 is at SyncML 1.1.

  7. #7
    Registered User
    Join Date
    Dec 2003
    Posts
    6

    Re: Server Alerted Sync

    Dear Traud,

    Thanks for your reply.

    Actually, I am familiar with SMS more than OBEX.

    Quote Originally Posted by traud
    Nevertheless, why are you using SyncML 1.0? A Nokia 7610 is at SyncML 1.1.
    I tried both, and wasn't sure about 1.1.

    After having correct WBXML, the main concern now is SMS WSP header, on reaching dead end, I would investigate about OBEX.

    Thanks all for your help.

Similar Threads

  1. Server Alerted Sync - N70, 6680
    By burngreg in forum OMA DM/DS/CP
    Replies: 2
    Last Post: 2006-08-08, 06:59
  2. Server alerted sync to Nokia 6600
    By amomani in forum OMA DM/DS/CP
    Replies: 2
    Last Post: 2006-05-16, 10:30
  3. Server Alerted Sync Nokia 6600
    By Fenestrae in forum OMA DM/DS/CP
    Replies: 3
    Last Post: 2006-05-15, 09:35
  4. Server alerted sync
    By sananda_bera in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2005-03-30, 20:21
  5. Server Alerted Sync with Nokia 7610
    By kutzooi23 in forum OMA DM/DS/CP
    Replies: 6
    Last Post: 2004-10-01, 21:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •