public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Sdp
@ 2004-05-06 14:24 Jorge González
  2004-05-06 21:05 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge González @ 2004-05-06 14:24 UTC (permalink / raw)
  To: bluez-devel

Hello

I am trying to get working the sdp tools in order to make the PDA know
what services are provided by a linux machine.

But I get this when I try to compile:
-----------------------------------------
/bin/sh ../libtool --mode=link gcc  -Wall -g -O2   -o sdptool  sdptool.o
listattr.o setattr.o -L../libs -lsdp /usr/lib/libbluetooth.la
libtool: link: cannot find the library `'
-----------------------------------------

I think the problem is -lsdp which is not found. How could I get this
library??


I dont know if this type questions are supposed to be in bluez-users or
bluez-devel. If this is no the appropiate list for this questions I
would be appreciate to know :D

Thanks,

Jorge



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Sdp
  2004-05-06 14:24 [Bluez-devel] Sdp Jorge González
@ 2004-05-06 21:05 ` Marcel Holtmann
  2004-05-07 10:20   ` [Bluez-devel] Sdp (and uclinux) Jorge A. González
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2004-05-06 21:05 UTC (permalink / raw)
  To: Jorge González; +Cc: BlueZ Mailing List

Hi Jorge,

> I am trying to get working the sdp tools in order to make the PDA know
> what services are provided by a linux machine.
> 
> But I get this when I try to compile:
> -----------------------------------------
> /bin/sh ../libtool --mode=link gcc  -Wall -g -O2   -o sdptool  sdptool.o
> listattr.o setattr.o -L../libs -lsdp /usr/lib/libbluetooth.la
> libtool: link: cannot find the library `'
> -----------------------------------------
> 
> I think the problem is -lsdp which is not found. How could I get this
> library??

if you use bluez-libs prior 2.6 than install bluez-sdp.

> I dont know if this type questions are supposed to be in bluez-users or
> bluez-devel. If this is no the appropiate list for this questions I
> would be appreciate to know :D

For me it doesn't matter as long as you don't start cross-posting ;)

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Sdp (and uclinux)
  2004-05-06 21:05 ` Marcel Holtmann
@ 2004-05-07 10:20   ` Jorge A. González
  2004-05-07 16:15     ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge A. González @ 2004-05-07 10:20 UTC (permalink / raw)
  To: bluez-devel


> > I think the problem is -lsdp which is not found. How could I get this
> > library??
> 
> if you use bluez-libs prior 2.6 than install bluez-sdp.

Thanks! It was totally my fault for not checking if I had the latest
version...

> > I dont know if this type questions are supposed to be in bluez-users or
> > bluez-devel. If this is no the appropiate list for this questions I
> > would be appreciate to know :D
> 
> For me it doesn't matter as long as you don't start cross-posting ;)

Ok, I will use this list then :D


Anyway, I am porting bluez for uClinux, by now it is working hcid (with
the option -n, as a daemon doesnt work due to the uclinux fork
implementation), hciattach (what a minor modification), hciconfig,
hcitool and rfcomm (the last one is not proved) and now I am trying to
make sdpd and sdptool to work.

My objective is communicate a device running uClinux with a PDA and be
able to transmit serial data via rfcomm and serial port service. If
anyone has any experience with bluez in uclinux or any other embedded
system I would appreciate to interchange ideas and experieces about it.

Thanks again,

Jorge



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Sdp (and uclinux)
  2004-05-07 10:20   ` [Bluez-devel] Sdp (and uclinux) Jorge A. González
@ 2004-05-07 16:15     ` Marcel Holtmann
  2004-05-08 13:52       ` Re[2]: [Bluez-devel] uclinux and bluez Jorge A. González
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2004-05-07 16:15 UTC (permalink / raw)
  To: Jorge A. González; +Cc: BlueZ Mailing List

Hi Jorge,

> Anyway, I am porting bluez for uClinux, by now it is working hcid (with
> the option -n, as a daemon doesnt work due to the uclinux fork
> implementation), hciattach (what a minor modification), hciconfig,
> hcitool and rfcomm (the last one is not proved) and now I am trying to
> make sdpd and sdptool to work.

send your patches to the list. If they don't break the current behaviour
I am going to include them.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re[2]: [Bluez-devel] uclinux and bluez
  2004-05-07 16:15     ` Marcel Holtmann
@ 2004-05-08 13:52       ` Jorge A. González
  2004-05-08 22:09         ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge A. González @ 2004-05-08 13:52 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Marcel escribió:

M> Hi Jorge,

>> Anyway, I am porting bluez for uClinux, by now it is working hcid (with
>> the option -n, as a daemon doesnt work due to the uclinux fork
>> implementation), hciattach (what a minor modification), hciconfig,
>> hcitool and rfcomm (the last one is not proved) and now I am trying to
>> make sdpd and sdptool to work.

M> send your patches to the list. If they don't break the current behaviour
M> I am going to include them.

Thanks: what I did it is not exactly a patch but I will comment it
just in case it is useful.

I noticed that hciattach doesnt seem to work in uclinux: i could never
get a "up" device ("hciconfig hci0 up" always failed). In Linux it works
perfectly. So I compared the behaviour in both system and realised
that in linux hciattach sends a 0x01x03x10x00 and in uclinux not. I
think that the sentence "ioctl(fd, HCIUARTSETPROTO, u->proto)" is
which send that in linux but no in uclinux (although doesnt fail in
uclinux, simply doesnt send nothing). I was able to see it thanks to a
oscilloscope.
I havent study the bluetooth protocols but I tried to send the
0x01x03x10x00 "by hand", opening the ttySx in 115200 baudrate and
writing to it directly (with an auxiliar program I wrote).

I know it is not an elegant method and maybe this will only work with
my hardware configuration. I have no idea of why "ioctl(fd,
HCIUARTSETPROTO, u->proto)" is not working but I suppossed it was
fault of the uclinux system (it has a 2.4.20 linux kernel).

I am not way an expert on this topics, so sorry if I have said any
stupidity and also for my not very fluent english (I am from Spain).

Best regards!

(And I will appreciate any comment)

Jorge

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

* Re: [Bluez-devel] uclinux and bluez
  2004-05-08 13:52       ` Re[2]: [Bluez-devel] uclinux and bluez Jorge A. González
@ 2004-05-08 22:09         ` Marcel Holtmann
  2004-05-09 11:35           ` Re[2]: " Jorge A. González
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2004-05-08 22:09 UTC (permalink / raw)
  To: egroJorge; +Cc: BlueZ Mailing List

Hi Jorge,

> I noticed that hciattach doesnt seem to work in uclinux: i could never
> get a "up" device ("hciconfig hci0 up" always failed). In Linux it works
> perfectly. So I compared the behaviour in both system and realised
> that in linux hciattach sends a 0x01x03x10x00 and in uclinux not. I
> think that the sentence "ioctl(fd, HCIUARTSETPROTO, u->proto)" is
> which send that in linux but no in uclinux (although doesnt fail in
> uclinux, simply doesnt send nothing). I was able to see it thanks to a
> oscilloscope.
> I havent study the bluetooth protocols but I tried to send the
> 0x01x03x10x00 "by hand", opening the ttySx in 115200 baudrate and
> writing to it directly (with an auxiliar program I wrote).

what kind of hciattach command do you use? What kind of Bluetooth module
do you use? What endian is your ucLinux platform?

> I know it is not an elegant method and maybe this will only work with
> my hardware configuration. I have no idea of why "ioctl(fd,
> HCIUARTSETPROTO, u->proto)" is not working but I suppossed it was
> fault of the uclinux system (it has a 2.4.20 linux kernel).

This ioctl sets the H4 or BCSP mode of the hci_uart driver.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re[2]: [Bluez-devel] uclinux and bluez
  2004-05-08 22:09         ` Marcel Holtmann
@ 2004-05-09 11:35           ` Jorge A. González
  2004-05-09 11:42             ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge A. González @ 2004-05-09 11:35 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Marcel escribió:

M> Hi Jorge,
M> what kind of hciattach command do you use?

#hciattach -n /dev/tts/2 any 115200 flow

M> What kind of Bluetooth module
M> do you use?

It is made by Taiyo Yuden. I dont remember the exact reference, but I
can look for it (tomorrow at work)

M> What endian is your ucLinux platform?

Little endian

>> I know it is not an elegant method and maybe this will only work with
>> my hardware configuration. I have no idea of why "ioctl(fd,
>> HCIUARTSETPROTO, u->proto)" is not working but I suppossed it was
>> fault of the uclinux system (it has a 2.4.20 linux kernel).

M> This ioctl sets the H4 or BCSP mode of the hci_uart driver.


Thanks for your interest,

Jorge

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

* Re: [Bluez-devel] uclinux and bluez
  2004-05-09 11:35           ` Re[2]: " Jorge A. González
@ 2004-05-09 11:42             ` Marcel Holtmann
  0 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2004-05-09 11:42 UTC (permalink / raw)
  To: egroJorge; +Cc: BlueZ Mailing List

Hi Jorge,

> M> what kind of hciattach command do you use?
> 
> #hciattach -n /dev/tts/2 any 115200 flow
> 
> M> What kind of Bluetooth module
> M> do you use?
> 
> It is made by Taiyo Yuden. I dont remember the exact reference, but I
> can look for it (tomorrow at work)

I think they use a Bluetooth chip from CSR, so I prefer you use "csr" or
"bcsp" as type for hciattach (depending if it is in H4 or BCSP mode).

> M> What endian is your ucLinux platform?
> 
> Little endian

So you shouldn't get any endian problems.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2004-05-09 11:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-06 14:24 [Bluez-devel] Sdp Jorge González
2004-05-06 21:05 ` Marcel Holtmann
2004-05-07 10:20   ` [Bluez-devel] Sdp (and uclinux) Jorge A. González
2004-05-07 16:15     ` Marcel Holtmann
2004-05-08 13:52       ` Re[2]: [Bluez-devel] uclinux and bluez Jorge A. González
2004-05-08 22:09         ` Marcel Holtmann
2004-05-09 11:35           ` Re[2]: " Jorge A. González
2004-05-09 11:42             ` Marcel Holtmann

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