Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] BT programming
@ 2005-02-09 23:17 Mandalia Hiren-AHM047
  2005-02-09 23:43 ` Marcel Holtmann
  2005-02-10 16:36 ` Michal Semler
  0 siblings, 2 replies; 5+ messages in thread
From: Mandalia Hiren-AHM047 @ 2005-02-09 23:17 UTC (permalink / raw)
  To: 'bluez-users@lists.sourceforge.net'


hi there

I'm a newbie to BT programming. I have successfully installed my BT 
hardware device using BlueZ packages. As a next goal I need to write my own code for simple applications like Chat and/or PIM Item Transfer based profile. Does blueZ have implemented profiles like OBEX, DUN, etc that I can use?
 
Also when I'm trying to connect to a particular remote BT device using  
hcitool cc .. it does not work..no connection is established.. any idea why is that happening?
 
Thanks
Hiren Mandalia



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] BT programming
  2005-02-09 23:17 Mandalia Hiren-AHM047
@ 2005-02-09 23:43 ` Marcel Holtmann
  2005-02-10 16:36 ` Michal Semler
  1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-02-09 23:43 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Hiren,

> I'm a newbie to BT programming. I have successfully installed my BT 
> hardware device using BlueZ packages. As a next goal I need to write my own code for simple applications like Chat and/or PIM Item Transfer based profile. Does blueZ have implemented profiles like OBEX, DUN, etc that I can use?

the profiles are implemented in applications. Either you find a
application that fits your needs or you have to write one. Be more
specific about what profiles and what roles do you wanna support.

> Also when I'm trying to connect to a particular remote BT device using  
> hcitool cc .. it does not work..no connection is established.. any idea why is that happening?

Check with "hcidump -X" what's the error code, but as I always say there
is no need to establish an ACL link by hand. The kernel core will do it
when one is needed.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* RE: [Bluez-users] BT programming
@ 2005-02-10 15:49 Mandalia Hiren-AHM047
  2005-02-10 17:33 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Mandalia Hiren-AHM047 @ 2005-02-10 15:49 UTC (permalink / raw)
  To: 'bluez-users@lists.sourceforge.net'


> the profiles are implemented in applications. Either you find a
> application that fits your needs or you have to write one. Be more
> specific about what profiles and what roles do you wanna support.

I was assuming that some of the profiles are already implemented and can easily be re-used for your application. If I were to write my own profiles is there any book/reference that can guide me? I'm planning to write applications to build PAN, exchange objects and IM chat...


> Check with "hcidump -X" what's the error code, but as I always say there
> is no need to establish an ACL link by hand. The kernel core will do it
> when one is needed.

Hcidump -x gives me something like..
device: hci0 snap_len: 1028 filter: 0xffffffff

and the process does not exit, unless I suspend it explicitly. 

Hiren



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] BT programming
  2005-02-09 23:17 Mandalia Hiren-AHM047
  2005-02-09 23:43 ` Marcel Holtmann
@ 2005-02-10 16:36 ` Michal Semler
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Semler @ 2005-02-10 16:36 UTC (permalink / raw)
  To: bluez-users

Hi,

maybe this is your project :)

http://www.mulliner.org/bluetooth/btchat/

Michal

Dne =E8t 10. =FAnora 2005 0:17 Mandalia Hiren-AHM047 napsal(a):
> hi there
>
> I'm a newbie to BT programming. I have successfully installed my BT
> hardware device using BlueZ packages. As a next goal I need to write my o=
wn
> code for simple applications like Chat and/or PIM Item Transfer based
> profile. Does blueZ have implemented profiles like OBEX, DUN, etc that I
> can use?
>
> Also when I'm trying to connect to a particular remote BT device using
> hcitool cc .. it does not work..no connection is established.. any idea w=
hy
> is that happening?
>
> Thanks
> Hiren Mandalia
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users

=2D-=20
S pozdravem

Michal Semler


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* RE: [Bluez-users] BT programming
  2005-02-10 15:49 [Bluez-users] BT programming Mandalia Hiren-AHM047
@ 2005-02-10 17:33 ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-02-10 17:33 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Hiren,

> > the profiles are implemented in applications. Either you find a
> > application that fits your needs or you have to write one. Be more
> > specific about what profiles and what roles do you wanna support.
> 
> I was assuming that some of the profiles are already implemented and can easily be re-used for your application. If I were to write my own profiles is there any book/reference that can guide me? I'm planning to write applications to build PAN, exchange objects and IM chat...

stop thinking in profiles. Profiles are applications and since we are in
the Linux world, yes, there are already some applications do deal with
certain profile definitions from the specification.

For PAN you can use pand and for object exchange there are lot of them,
but none of it is the default one. The IM chat would be tricky, because
there is no standard for it. However as Michal already posted, there is
a project for it.

> > Check with "hcidump -X" what's the error code, but as I always say there
> > is no need to establish an ACL link by hand. The kernel core will do it
> > when one is needed.
> 
> Hcidump -x gives me something like..
> device: hci0 snap_len: 1028 filter: 0xffffffff
> 
> and the process does not exit, unless I suspend it explicitly. 

Of course. It will show you the HCI packets when you establish a
connection from another terminal. If the device is idle you will see
nothing and if you run it a non-root you will see only a few packets.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2005-02-10 17:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-10 15:49 [Bluez-users] BT programming Mandalia Hiren-AHM047
2005-02-10 17:33 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2005-02-09 23:17 Mandalia Hiren-AHM047
2005-02-09 23:43 ` Marcel Holtmann
2005-02-10 16:36 ` Michal Semler

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