public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* OBEX profile support
@ 2009-02-14 12:05 Kartikey Parmar
  2009-02-16  4:57 ` shy
  0 siblings, 1 reply; 8+ messages in thread
From: Kartikey Parmar @ 2009-02-14 12:05 UTC (permalink / raw)
  To: linux-bluetooth

hi

I want to support file transfer between two bluetooth devices (say
mobile phone & desktop pc) in my application...
Is there any utility bluez provides on which I can test first whether
it is working or not! like

hcitool, sdptool etc...or I will have to work on some utility to
implement OBEX???

pls reply if somebody has done this...

-- 
Kartikey Parmar
President AAECC
09879095390 (M)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OBEX profile support
  2009-02-14 12:05 OBEX profile support Kartikey Parmar
@ 2009-02-16  4:57 ` shy
  2009-02-16  6:03   ` Gustavo F. Padovan
  0 siblings, 1 reply; 8+ messages in thread
From: shy @ 2009-02-16  4:57 UTC (permalink / raw)
  To: 'Kartikey Parmar', linux-bluetooth

Hi, Kartikey
You can use obexftp to do your task. You can find obexftp in folder
/obexftp/apps.
Brs
Shi Buyun 

-----Original Message-----
From: linux-bluetooth-owner@vger.kernel.org
[mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Kartikey Parmar
Sent: 2009年2月14日 20:05
To: linux-bluetooth@vger.kernel.org
Subject: OBEX profile support

hi

I want to support file transfer between two bluetooth devices (say mobile
phone & desktop pc) in my application...
Is there any utility bluez provides on which I can test first whether it is
working or not! like

hcitool, sdptool etc...or I will have to work on some utility to implement
OBEX???

pls reply if somebody has done this...

--
Kartikey Parmar
President AAECC
09879095390 (M)
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in the body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OBEX profile support
  2009-02-16  4:57 ` shy
@ 2009-02-16  6:03   ` Gustavo F. Padovan
  2009-02-16  6:24     ` shy
  0 siblings, 1 reply; 8+ messages in thread
From: Gustavo F. Padovan @ 2009-02-16  6:03 UTC (permalink / raw)
  To: shy; +Cc: Kartikey Parmar, linux-bluetooth

Hi,

2009/2/16 shy <shyboysby@hotmail.com>:
> Hi, Kartikey
> You can use obexftp to do your task. You can find obexftp in folder
> /obexftp/apps.

I have the same doubt: how to transfer files. I find out obexftp, but
does it support BlueZ 4.x? Version 0.22 of obexftp not even compile
with BlueZ 4.x.
And what folder is that? Where can I find it?

> Brs
> Shi Buyun
>
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org
> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Kartikey Parmar
> Sent: 2009年2月14日 20:05
> To: linux-bluetooth@vger.kernel.org
> Subject: OBEX profile support
>
> hi
>
> I want to support file transfer between two bluetooth devices (say mobile
> phone & desktop pc) in my application...
> Is there any utility bluez provides on which I can test first whether it is
> working or not! like
>
> hcitool, sdptool etc...or I will have to work on some utility to implement
> OBEX???
>
> pls reply if somebody has done this...
>
> --
> Kartikey Parmar
> President AAECC
> 09879095390 (M)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in the body of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Gustavo F. Padovan

Computer Engineering Student
Institute of Computing - IC
University of Campinas - UNICAMP

email: gustavo@las.ic.unicamp.br
gtalk: gfpadovan@gmail.com
mobile: +55 19 81030803

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OBEX profile support
  2009-02-16  6:03   ` Gustavo F. Padovan
@ 2009-02-16  6:24     ` shy
  2009-02-16 12:13       ` Kartikey Parmar
  2009-02-16 12:46       ` Gustavo F. Padovan
  0 siblings, 2 replies; 8+ messages in thread
From: shy @ 2009-02-16  6:24 UTC (permalink / raw)
  To: 'Gustavo F. Padovan'; +Cc: 'Kartikey Parmar', linux-bluetooth

Hi,
You need openobex compiled firstly, and then you could use obexftp to do
file transfer. Openobex and obexftp support bluetooth channel.
Brs
Shi Buyun

-----Original Message-----
From: linux-bluetooth-owner@vger.kernel.org
[mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Gustavo F.
Padovan
Sent: 2009年2月16日 14:04
To: shy
Cc: Kartikey Parmar; linux-bluetooth@vger.kernel.org
Subject: Re: OBEX profile support

Hi,

2009/2/16 shy <shyboysby@hotmail.com>:
> Hi, Kartikey
> You can use obexftp to do your task. You can find obexftp in folder 
> /obexftp/apps.

I have the same doubt: how to transfer files. I find out obexftp, but does
it support BlueZ 4.x? Version 0.22 of obexftp not even compile with BlueZ 4.
x.
And what folder is that? Where can I find it?

> Brs
> Shi Buyun
>
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org
> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Kartikey 
> Parmar
> Sent: 2009年2月14日 20:05
> To: linux-bluetooth@vger.kernel.org
> Subject: OBEX profile support
>
> hi
>
> I want to support file transfer between two bluetooth devices (say 
> mobile phone & desktop pc) in my application...
> Is there any utility bluez provides on which I can test first whether 
> it is working or not! like
>
> hcitool, sdptool etc...or I will have to work on some utility to 
> implement OBEX???
>
> pls reply if somebody has done this...
>
> --
> Kartikey Parmar
> President AAECC
> 09879095390 (M)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in the body of a message to majordomo@vger.kernel.org More majordomo 
> info at http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



--
Gustavo F. Padovan

Computer Engineering Student
Institute of Computing - IC
University of Campinas - UNICAMP

email: gustavo@las.ic.unicamp.br
gtalk: gfpadovan@gmail.com
mobile: +55 19 81030803
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in the body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OBEX profile support
  2009-02-16  6:24     ` shy
@ 2009-02-16 12:13       ` Kartikey Parmar
  2009-02-16 12:46       ` Gustavo F. Padovan
  1 sibling, 0 replies; 8+ messages in thread
From: Kartikey Parmar @ 2009-02-16 12:13 UTC (permalink / raw)
  To: shy; +Cc: linux-bluetooth

Hi,
Thank u very much for ur kind suggestion.
I have obtained openobex-1.4 from www.bluez.org and obexftp0.22 from
www.sourceforge.net
When I attempt to install it, I found an error that openobex is not
installed on ur pc.
I m using bluez-4.30 for my bluetooth application...
can u pls suggest me some solution??
-- 
Kartikey Parmar
President AAECC
09879095390 (M)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OBEX profile support
  2009-02-16  6:24     ` shy
  2009-02-16 12:13       ` Kartikey Parmar
@ 2009-02-16 12:46       ` Gustavo F. Padovan
  2009-02-17  1:05         ` Yao Ye
  1 sibling, 1 reply; 8+ messages in thread
From: Gustavo F. Padovan @ 2009-02-16 12:46 UTC (permalink / raw)
  To: shy; +Cc: Kartikey Parmar, linux-bluetooth

On Mon, Feb 16, 2009 at 3:24 AM, shy <shyboysby@hotmail.com> wrote:
> Hi,
> You need openobex compiled firstly, and then you could use obexftp to do
> file transfer. Openobex and obexftp support bluetooth channel.
> Brs

I have openobex compiled, but obexftp fail to compile due to its bluetooth code.

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes    -g -O2 -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.)




> Shi Buyun
>
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org
> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Gustavo F.
> Padovan
> Sent: 2009年2月16日 14:04
> To: shy
> Cc: Kartikey Parmar; linux-bluetooth@vger.kernel.org
> Subject: Re: OBEX profile support
>
> Hi,
>
> 2009/2/16 shy <shyboysby@hotmail.com>:
>> Hi, Kartikey
>> You can use obexftp to do your task. You can find obexftp in folder
>> /obexftp/apps.
>
> I have the same doubt: how to transfer files. I find out obexftp, but does
> it support BlueZ 4.x? Version 0.22 of obexftp not even compile with BlueZ 4.
> x.
> And what folder is that? Where can I find it?
>
>> Brs
>> Shi Buyun
>>
>> -----Original Message-----
>> From: linux-bluetooth-owner@vger.kernel.org
>> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Kartikey
>> Parmar
>> Sent: 2009年2月14日 20:05
>> To: linux-bluetooth@vger.kernel.org
>> Subject: OBEX profile support
>>
>> hi
>>
>> I want to support file transfer between two bluetooth devices (say
>> mobile phone & desktop pc) in my application...
>> Is there any utility bluez provides on which I can test first whether
>> it is working or not! like
>>
>> hcitool, sdptool etc...or I will have to work on some utility to
>> implement OBEX???
>>
>> pls reply if somebody has done this...
>>
>> --
>> Kartikey Parmar
>> President AAECC
>> 09879095390 (M)
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
>> in the body of a message to majordomo@vger.kernel.org More majordomo
>> info at http://vger.kernel.org/majordomo-info.html
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-bluetooth" in the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
>
> --
> Gustavo F. Padovan
>
> Computer Engineering Student
> Institute of Computing - IC
> University of Campinas - UNICAMP
>
> email: gustavo@las.ic.unicamp.br
> gtalk: gfpadovan@gmail.com
> mobile: +55 19 81030803
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in the body of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
>



-- 
Gustavo F. Padovan

Computer Engineering Student
Institute of Computing - IC
University of Campinas - UNICAMP

email: gustavo@las.ic.unicamp.br
gtalk: gfpadovan@gmail.com
mobile: +55 19 81030803

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OBEX profile support
  2009-02-16 12:46       ` Gustavo F. Padovan
@ 2009-02-17  1:05         ` Yao Ye
  2009-02-17  2:20           ` Gustavo F. Padovan
  0 siblings, 1 reply; 8+ messages in thread
From: Yao Ye @ 2009-02-17  1:05 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: linux-bluetooth


> I have openobex compiled, but obexftp fail to compile due to its
bluetooth code.

> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes    -g -O2 -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)

in obexftp-0.22-arm\apps\obexftpd.c, 
del static bdaddr_t *bt_src = NULL;
and add as below,
then compile again.


#ifdef HAVE_BLUETOOTH

//static bdaddr_t *bt_src = NULL; //del by yaoye

//add by yaoye
struct {
	uint8_t b[6];
} __attribute__((packed)) *bt_src = NULL;

#endif

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OBEX profile support
  2009-02-17  1:05         ` Yao Ye
@ 2009-02-17  2:20           ` Gustavo F. Padovan
  0 siblings, 0 replies; 8+ messages in thread
From: Gustavo F. Padovan @ 2009-02-17  2:20 UTC (permalink / raw)
  To: Yao Ye; +Cc: linux-bluetooth

On Mon, Feb 16, 2009 at 10:05 PM, Yao Ye <yeyao@utstar.com> wrote:
>
>> I have openobex compiled, but obexftp fail to compile due to its
> bluetooth code.
>
>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes    -g -O2 -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)
>
> in obexftp-0.22-arm\apps\obexftpd.c,
> del static bdaddr_t *bt_src = NULL;
> and add as below,
> then compile again.
>
>
> #ifdef HAVE_BLUETOOTH
>
> //static bdaddr_t *bt_src = NULL; //del by yaoye
>
> //add by yaoye
> struct {
>        uint8_t b[6];
> } __attribute__((packed)) *bt_src = NULL;
>
> #endif


Thank's. It works now. :-)
>



-- 
Gustavo F. Padovan

Computer Engineering Student
Institute of Computing - IC
University of Campinas - UNICAMP

email: gustavo@las.ic.unicamp.br
gtalk: gfpadovan@gmail.com
mobile: +55 19 81030803

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-17  2:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-14 12:05 OBEX profile support Kartikey Parmar
2009-02-16  4:57 ` shy
2009-02-16  6:03   ` Gustavo F. Padovan
2009-02-16  6:24     ` shy
2009-02-16 12:13       ` Kartikey Parmar
2009-02-16 12:46       ` Gustavo F. Padovan
2009-02-17  1:05         ` Yao Ye
2009-02-17  2:20           ` Gustavo F. Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox