Re: [openobex-users] Nokia 6120

2010-11-16 Thread Hendrik Sattler
Zitat von Russell Shaw rjs...@netspace.net.au:
 Ok, i tried:

 obexftp -u -v

 If USB doesn't work setup permissions in udev or run as superuser.
 Found 2 USB OBEX interfaces

 0 (Manufacturer: Nokia Product: Nokia 6120 classic Serial: (null) Interface
 description: SYNCML-SYNC)
 1 (Manufacturer: Nokia Product: Nokia 6120 classic Serial: (null) Interface
 description: PC Suite Services)

Try:
   obexftp -H -U none -u 1 -X
as root!

HS




--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-16 Thread Russell Shaw
On 16/11/10 20:06, Hendrik Sattler wrote:
 obexftp -H -U none -u 1 -X

sudo obexftp -H -U none -u 1 -X

Suppressing FBS.
obexftp_open()
obexftp_connect_src()
Connecting...obexftp_connect_src()
obexftp_connect_src() USB 1
cli_sync_request()
\obexftp_sync()
obexftp_sync() OBEX_HandleInput = 0
obexftp_sync() OBEX_HandleInput error: 11
failed: send UUID
Tried to connect for 33ms
unknown error on connect
Still trying to connect
obexftp_connect_src()
Connecting...obexftp_connect_src()
obexftp_connect_src() USB -16
failed: connect
Tried to connect for 3ms
unknown error on connect
Still trying to connect
obexftp_connect_src()
Connecting...obexftp_connect_src()
obexftp_connect_src() USB -16
failed: connect
Tried to connect for 3ms
unknown error on connect
Still trying to connect
obexftp_close()

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-16 Thread Hendrik Sattler
Zitat von Russell Shaw rjs...@netspace.net.au:
 On 16/11/10 20:06, Hendrik Sattler wrote:
 obexftp -H -U none -u 1 -X

 sudo obexftp -H -U none -u 1 -X

 Suppressing FBS.
 obexftp_open()
 obexftp_connect_src()
 Connecting...obexftp_connect_src()
 obexftp_connect_src() USB 1
 cli_sync_request()
 \obexftp_sync()
 obexftp_sync() OBEX_HandleInput = 0
 obexftp_sync() OBEX_HandleInput error: 11
 failed: send UUID
 Tried to connect for 33ms
 unknown error on connect
 Still trying to connect
 obexftp_connect_src()
 Connecting...obexftp_connect_src()
 obexftp_connect_src() USB -16
 failed: connect
 Tried to connect for 3ms
 unknown error on connect
 Still trying to connect
 obexftp_connect_src()
 Connecting...obexftp_connect_src()
 obexftp_connect_src() USB -16
 failed: connect
 Tried to connect for 3ms
 unknown error on connect
 Still trying to connect
 obexftp_close()

Acutally hard so say. Obexfs uses obexftp so if you can get a  
connection with obexfs, obexftp should also work. I don't have a Nokia  
device. According to
http://dev.zuckschwerdt.org/openobex/wiki/SupportedPhonesNokia
it should work with -u 1.

Maybe try strace to see where it really fails.
Rebooting the phone might also help.

HS


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-15 Thread Russell Shaw
On 13/11/10 03:48, Christian Zuckschwerdt wrote:
 Russell,

 you need openobex-dev (or install openobex from source) when compiling
 obexftp. Also you need to check that bluetooth is enabled during openobex
 configuration.

 ObexFTP has a very limited pseudo xml-parser for the directory listings. I
 guess the xml from the phone is somewhat non-standard. I'd be great if you
 could capture the output -- compile ObexFTP with debug enabled and just
 list/get some directories.

 Am 12.11.2010 um 17:26 schrieb Russell Shaw:

 When i mount the 6120 (not 2162), i get a heap of question-marks:

 sudo obexfs -t /dev/Nokia -u 1 /phone russ...@main~: ls -l / ls: cannot
 access /phone: Permission denied total 116 drwxr-xr-x   2 root root   4096
 Nov  3 23:05 bin drwxr-xr-x   3 root root   4096 Nov 12 18:26 boot ...
 d?   ? ?? ?? phone

 I try to compile obexftp-0.22 but get: obexftpd.c:891: warning: implicit
 declaration of function 'BtOBEX_ServerRegister'

Hi,
I used obexftp from http://www.gitorious.org/obexftp/mainline/

obexftp -t /dev/ttyACM1 -v -l

obexftp_open()
obexftp_connect_src()
Connecting...cobex_connect()
bfb_io_open()
Checking for transparent OBEX mode
Write ok, reading back
bfb_io_read() No data (timeout: 2)
do_at_cmd() Sending 4: ATZ
bfb_io_read() No data (timeout: 2)
do_at_cmd() tmpbuf=0:
Comm-error or already in BFB mode
do_at_cmd() Sending 4: ATZ
bfb_io_read() No data (timeout: 2)
do_at_cmd() tmpbuf=0:
Comm-error or already in BFB mode
bfb_write_packets() Select failed
bfb_io_init() Wrote -1 packets
BFB port error
bfb_write_packets() Select failed
bfb_io_init() Wrote -1 packets
BFB port error
Couldn't init BFB mode.
bfb_io_close()

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-14 Thread Russell Shaw
On 14/11/10 21:25, Russell Shaw wrote:
 On 13/11/10 23:56, Christian Zuckschwerdt wrote:
 Russel,

 just remove doc from Makefile.am, then run autoreconf. Or even
 simpler touch doc/obexftp.1.

 Am 13.11.2010 um 03:34 schrieb Russell Shaw:

 I got obexftp from git. I get a doc error:
 ./configure CFLAGS=-DOBEXFTP_DEBUG=5 -g -O0
 make[2]: Entering directory `/home/russell/SRC/obexftp/doc'
 make[2]: *** No rule to make target `obexftp.1', needed by `all-am'.
 Stop.

 Hi,
 I tried compiling openobex from git. In openobex/apps/obex_test,
 i type make:

 make: *** No rule to make target `/../lib/libmisc.a', needed by
 `obex_test'. Stop.


 I think it's because builddir is not defined anywhere in Makefile.

 It should be defined as '.'

 This causes problems, because the automake manual says:

 — Variable: builddir
 Rigorously equal to ‘.’. Added for symmetry only.

Hi,
I had a closer look at my system and found the debian alternatives
system was pointing at an old version of automake. I set it right now.

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-14 Thread Russell Shaw
On 13/11/10 23:56, Christian Zuckschwerdt wrote:
 Russel,

 just remove doc from Makefile.am, then run autoreconf. Or even simpler 
 touch doc/obexftp.1.

 Am 13.11.2010 um 03:34 schrieb Russell Shaw:

 I got obexftp from git. I get a doc error:
 ./configure CFLAGS=-DOBEXFTP_DEBUG=5 -g -O0
 make[2]: Entering directory `/home/russell/SRC/obexftp/doc'
 make[2]: *** No rule to make target `obexftp.1', needed by `all-am'.  Stop.

Hi,
I compiled and installed openobex from git. I then tried compiling obexftp
from git:

make  all-recursive
make[1]: Entering directory `/home/russell/SRC/obexftp'
Making all in bfb
make[2]: Entering directory `/home/russell/SRC/obexftp/bfb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/russell/SRC/obexftp/bfb'
Making all in multicobex
make[2]: Entering directory `/home/russell/SRC/obexftp/multicobex'
if /bin/bash ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H 
-I. 
-I. -I..-I/usr/local/include -I.. -I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W 
-Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -MT multi_cobex.lo 
-MD 
-MP -MF .deps/multi_cobex.Tpo -c -o multi_cobex.lo multi_cobex.c; \
 then mv -f .deps/multi_cobex.Tpo .deps/multi_cobex.Plo; else rm -f 
.deps/multi_cobex.Tpo; exit 1; fi
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/usr/local/include -I.. -I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W -Wundef 
-Wmissing-declarations -Wmissing-prototypes -Wall -MT multi_cobex.lo -MD -MP 
-MF 
.deps/multi_cobex.Tpo -c multi_cobex.c  -fPIC -DPIC -o .libs/multi_cobex.o
multi_cobex.c: In function 'cobex_cleanup':
multi_cobex.c:74: warning: pointer targets in passing argument 3 of 
'bfb_write_packets' differ in signedness
../bfb/bfb.h:90: note: expected 'uint8_t *' but argument is of type 'char *'
multi_cobex.c:76: warning: pointer targets in passing argument 2 of 
'bfb_io_write' differ in signedness
../bfb/bfb_io.h:41: note: expected 'const uint8_t *' but argument is of type 
'char *'
multi_cobex.c:78: warning: pointer targets in passing argument 2 of 
'bfb_io_write' differ in signedness
../bfb/bfb_io.h:41: note: expected 'const uint8_t *' but argument is of type 
'char *'
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/usr/local/include -I.. -I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W -Wundef 
-Wmissing-declarations -Wmissing-prototypes -Wall -MT multi_cobex.lo -MD -MP 
-MF 
.deps/multi_cobex.Tpo -c multi_cobex.c -o multi_cobex.o /dev/null 21
/bin/bash ../libtool --tag=CC --mode=link /usr/bin/gcc -I/usr/local/include 
-I.. 
-I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W -Wundef -Wmissing-declarations 
-Wmissing-prototypes -Wall   -o libmulticobex.la -rpath /usr/local/lib 
-no-undefined -version-info 1\:1\:0 multi_cobex.lo -L/usr/local/lib -lopenobex 
../bfb/libbfb.la
libtool: link: rm -fr  .libs/libmulticobex.a .libs/libmulticobex.la 
.libs/libmulticobex.lai .libs/libmulticobex.so .libs/libmulticobex.so.1 
.libs/libmulticobex.so.1.0.1
libtool: link: /usr/bin/gcc -shared  .libs/multi_cobex.o   -Wl,-rpath 
-Wl,/home/russell/SRC/obexftp/bfb/.libs -L/usr/local/lib 
/usr/local/lib/libopenobex.so ../bfb/.libs/libbfb.so-Wl,-soname 
-Wl,libmulticobex.so.1 -o .libs/libmulticobex.so.1.0.1
libtool: link: (cd .libs  rm -f libmulticobex.so.1  ln -s 
libmulticobex.so.1.0.1 libmulticobex.so.1)
libtool: link: (cd .libs  rm -f libmulticobex.so  ln -s 
libmulticobex.so.1.0.1 libmulticobex.so)
libtool: link: ar cru .libs/libmulticobex.a  multi_cobex.o
libtool: link: ranlib .libs/libmulticobex.a
libtool: link: ( cd .libs  rm -f libmulticobex.la  ln -s 
../libmulticobex.la libmulticobex.la )
make[2]: Leaving directory `/home/russell/SRC/obexftp/multicobex'
Making all in obexftp
make[2]: Entering directory `/home/russell/SRC/obexftp/obexftp'
if /bin/bash ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H 
-I. 
-I. -I..-I/usr/local/include -I.. -I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W 
-Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -MT object.lo -MD -MP 
-MF .deps/object.Tpo -c -o object.lo object.c; \
 then mv -f .deps/object.Tpo .deps/object.Plo; else rm -f 
.deps/object.Tpo; exit 1; fi
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/usr/local/include -I.. -I../includes -DOBEXFTP_DEBUG=5 -g -O0 -W -Wundef 
-Wmissing-declarations -Wmissing-prototypes -Wall -MT object.lo -MD -MP -MF 
.deps/object.Tpo -c object.c  -fPIC -DPIC -o .libs/object.o
object.c:39: error: parameter 1 ('obex') has incomplete type
object.c: In function 'obexftp_build_info':
object.c:39: warning: unused parameter 'obex'
object.c: At top level:
object.c:73: error: parameter 1 ('obex') has incomplete type
object.c: In function 'obexftp_build_get':
object.c:73: warning: unused parameter 'obex'
object.c: At top level:
object.c:125: error: parameter 1 ('obex') has incomplete type
object.c: In function 'obexftp_build_rename':
object.c:125: warning: unused parameter 'obex'
object.c: At top level:

[openobex-users] Nokia 6120

2010-11-12 Thread Russell Shaw
Hi,
When i mount the 6120 (not 2162), i get a heap of question-marks:

sudo obexfs -t /dev/Nokia -u 1 /phone


russ...@main~: ls -l /
ls: cannot access /phone: Permission denied
total 116
drwxr-xr-x   2 root root   4096 Nov  3 23:05 bin
drwxr-xr-x   3 root root   4096 Nov 12 18:26 boot
...
d?   ? ?? ?? phone


I try to compile obexftp-0.22 but get:

russ...@main~/SRC/obexftp-0.22: make
make  all-recursive
make[1]: Entering directory `/home/russell/SRC/obexftp-0.22'
Making all in bfb
make[2]: Entering directory `/home/russell/SRC/obexftp-0.22/bfb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/russell/SRC/obexftp-0.22/bfb'
Making all in multicobex
make[2]: Entering directory `/home/russell/SRC/obexftp-0.22/multicobex'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/russell/SRC/obexftp-0.22/multicobex'
Making all in obexftp
make[2]: Entering directory `/home/russell/SRC/obexftp-0.22/obexftp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/russell/SRC/obexftp-0.22/obexftp'
Making all in apps
make[2]: Entering directory `/home/russell/SRC/obexftp-0.22/apps'
if /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes 
-DOBEXFTP_DEBUG=5 -g -O0 -W -Wundef -Wmissing-declarations -Wmissing-prototypes 
-Wall -MT obexftpd.o -MD -MP -MF .deps/obexftpd.Tpo -c -o obexftpd.o 
obexftpd.c; \
 then mv -f .deps/obexftpd.Tpo .deps/obexftpd.Po; else rm -f 
.deps/obexftpd.Tpo; exit 1; fi
obexftpd.c:81: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
obexftpd.c: In function 'start_server':
obexftpd.c:891: warning: implicit declaration of function 
'BtOBEX_ServerRegister'
obexftpd.c:891: error: 'bt_src' undeclared (first use in this function)
obexftpd.c:891: error: (Each undeclared identifier is reported only once
obexftpd.c:891: error: for each function it appears in.)
make[2]: *** [obexftpd.o] Error 1
make[2]: Leaving directory `/home/russell/SRC/obexftp-0.22/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/russell/SRC/obexftp-0.22'
make: *** [all] Error 2

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users


Re: [openobex-users] Nokia 6120

2010-11-12 Thread Christian Zuckschwerdt
Russell,

you need openobex-dev (or install openobex from source) when compiling obexftp. 
Also you need to check that bluetooth is enabled during openobex configuration.

ObexFTP has a very limited pseudo xml-parser for the directory listings. I 
guess the xml from the phone is somewhat non-standard. I'd be great if you 
could capture the output -- compile ObexFTP with debug enabled and just 
list/get some directories.

Am 12.11.2010 um 17:26 schrieb Russell Shaw:

 When i mount the 6120 (not 2162), i get a heap of question-marks:
 
 sudo obexfs -t /dev/Nokia -u 1 /phone
 russ...@main~: ls -l /
 ls: cannot access /phone: Permission denied
 total 116
 drwxr-xr-x   2 root root   4096 Nov  3 23:05 bin
 drwxr-xr-x   3 root root   4096 Nov 12 18:26 boot
 ...
 d?   ? ?? ?? phone
 
 I try to compile obexftp-0.22 but get:
 obexftpd.c:891: warning: implicit declaration of function 
 'BtOBEX_ServerRegister'


regards,
Christian




--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users