From: Michael B. <mic...@cm...> - 2009-08-19 15:54:48
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ulrich Brammer wrote: > > OK, you are right, a short Put sequence was send. but it was quite > different from the one in windows with the authentication enclosed. > I looked into the communication of libsyncml and my phone with strace Now it starts to be interesting ;) > write(10, "ATZ\r"..., 4) = 4 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 852000}) > read(10, "ATZ\r"..., 100) = 4 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 996000}) > read(10, "\r\nOK\r\n"..., 96) = 6 > write(10, "AT+CGMI\r"..., 8) = 8 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 996000}) > read(10, "AT+CGMI\r"..., 100) = 8 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {1, 0}) > read(10, "\r\nSAMSUNG\r\n"..., 92) = 11 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {1, 0}) > read(10, "\r\nOK\r\n"..., 81) = 6 > write(10, "AT+CGMM\r"..., 8) = 8 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 996000}) > read(10, "AT+CGMM\r"..., 100) = 8 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 996000}) > read(10, "\r\nE250i\r\n"..., 92) = 9 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {1, 0}) > read(10, "\r\nOK\r\n"..., 83) = 6 This stuff is performed to get the necessary informations from the mobile. We could implement every other AT command to get informations from the mobile if we need it. > write(2, "\n** (process:5310): WARNING **: U"..., 96) = 96 This should be the warning about an unknown Samsung mobile. > write(10, "AT$TSSPCSW=1\r"..., 13) = 13 > // I changed the normal AAT+CPROT=0 to this command, as it was used in > the windows software. > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {0, 996000}) > read(10, "AT$TSSPCSW=1\r"..., 100) = 13 > select(11, [10], NULL, NULL, {1, 0}) = 1 (in [10], left {1, 0}) > read(10, "\r\nCONNECT\r\n"..., 87) = 11 Any ideas what AT$TSSPCSW=1 means? > // OK you are right, here is a PUT sequence. The windows software > contains here the authentication sequence from the server. > write(10, "\202\0\337\313\0\0\0\2B\0 application/vnd.syncml"..., 223) = > 223 > select(11, [10], NULL, NULL, {20, 0}) = 1 (in [10], left {20, 0}) > read(10, "\240\0\3"..., 512) = 3 > write(10, "\203\0(\313\0\0\0\2B\0 application/vnd.syncml"..., 40) = 40 > select(11, [10], NULL, NULL, {20, 0}) = 1 (in [10], left {19, > 952000}) > // the phone E250i does not accept here. A phone E250 does not answer at > all at this place. The mobile does not answer and this means our message is wrong. So the libsyncml OBEX code generally work we have just to modify it for your Samsung E250. First we need the correct AT command sequence. So do you know AT$TSSPCSW=1? Michael P.S. I go on holidays at Friday. So I think we cannot fix the issue until September. - -- ___________________________________________________________________ Michael Bell Humboldt-Universitaet zu Berlin Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 mic...@cm... D-10099 Berlin ___________________________________________________________________ PGP Fingerprint: 09E4 3D29 4156 2774 0F2C C643 D8BD 1918 2030 5AAB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqMIGQACgkQ2L0ZGCAwWquhzgCdHx6PkjiMSvlOHf0uoryw0gFV M/8AmwXzdhiJQdYRRLl0Qn5Y3iBLdZhO =RD9j -----END PGP SIGNATURE----- |