Skip to contentSkip to conversation

Sdp

Bluez-devel Jorge González 3 participants 8 messages May 6, 2004 – May 9, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Jorge,

Quoted 10 lines

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 `'
-----------------------------------------

Quoted 2 lines

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.

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Re: [Bluez-devel] Sdp (and uclinux)

Quoted 5 lines
Quoted 3 lines

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...

Quoted 5 lines
Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Re: [Bluez-devel] Sdp (and uclinux)

Hi Jorge,

Quoted 5 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

Re[2]: [Bluez-devel] uclinux and bluez

Marcel escribió:

M> Hi Jorge,

Quoted 5 lines
Quoted 5 lines

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

maintainer
#5 lore raw

Re: [Bluez-devel] uclinux and bluez

Hi Jorge,

Quoted 11 lines

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?

Quoted 4 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw

Re[2]: [Bluez-devel] uclinux and bluez

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

Quoted 4 lines
Quoted 4 lines

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

maintainer
#7 lore raw

Re: [Bluez-devel] uclinux and bluez

Hi Jorge,

Quoted 9 lines

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).

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel