2007-06-08 12:57:50

by Aveek Adhya

[permalink] [raw]
Subject: [Bluez-users] BD address

Hi all,
I have a BlueTooth adapter of Integrated System Solution. When I
try 'hciconfig -a', the output is like below:
# hciconfig -a
hci0: Type: USB
BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN
RX bytes:1228 acl:0 sco:0 events:26 errors:0
TX bytes:344 acl:0 sco:0 commands:26 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing, Object Transfer,
Audio
Device Class: Computer, Uncategorized
HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver:
0x1fe
Manufacturer: Integrated System Solution Corp. (57)
#

Is it a valid BD address? How can I set a valid address?
Thanks


Attachments:
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-06-13 02:46:18

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] multiple server-instances on one single machine

Hi Uli,

> I'm trying to build a Bluteooth - receiver, which uses multiple
> bluetooth-devices and has a server running for each stick.
> (Background is, that i need a machine for testing-purposes to test a
> bluetooth-sender. I need multiple parallel connections to test the
> transferspeed etc.)
>
> I Took the sources of obexpushd 0.4 (debianpackage) and modified them,
> so the obexpushd can be started with -DhciX to use a certain hci device.
> This works perfect, if i start the server on hci2 for example, only hci2
> gets the files. The big problem is, when i start a second instance of
> the obexpushd eg. on hci3, only hci3 gets the content and hci2 not.
>
> I tracked down the problem and can say, that the sdpd promotes the
> OBEX-PUSH Service for each stick and not only for the one i want it to.
>
> I altered the obexpush-sdp.c file from
>
> session = sdp_connect(BDADDR_ANY,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
> status = sdp_record_register(session,rec,0);
>
> to
>
> session = sdp_connect(&btdev,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
> status = sdp_record_register(session,rec,0);
>
> where btdev is the bdaddr_t of the wanted hci-device, but i still get
> all running services promoted on all hci-devices.

the change in sdp_connect() gives you nothing when using BDADDR_LOCAL.
You need to use sdp_device_record_register() in the second step.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-06-11 11:14:10

by Uli Sesselmann

[permalink] [raw]
Subject: [Bluez-users] multiple server-instances on one single machine

Hello List,

I'm trying to build a Bluteooth - receiver, which uses multiple
bluetooth-devices and has a server running for each stick.
(Background is, that i need a machine for testing-purposes to test a
bluetooth-sender. I need multiple parallel connections to test the
transferspeed etc.)

I Took the sources of obexpushd 0.4 (debianpackage) and modified them,
so the obexpushd can be started with -DhciX to use a certain hci device.
This works perfect, if i start the server on hci2 for example, only hci2
gets the files. The big problem is, when i start a second instance of
the obexpushd eg. on hci3, only hci3 gets the content and hci2 not.

I tracked down the problem and can say, that the sdpd promotes the
OBEX-PUSH Service for each stick and not only for the one i want it to.

I altered the obexpush-sdp.c file from

session = sdp_connect(BDADDR_ANY,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
status = sdp_record_register(session,rec,0);

to

session = sdp_connect(&btdev,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
status = sdp_record_register(session,rec,0);

where btdev is the bdaddr_t of the wanted hci-device, but i still get
all running services promoted on all hci-devices.

example:
i have 4 BT-Sticks attached to my system and run one instance of
obexpushd on each stick on one own channel (hci-id +1, eg. hci0 on
channel 1). Now i want to have one independent Server-instance, that is
promoted by sdpd on this device and can receive data.

when i now use sdptool browse xx:xx:xx:xx:xx:xx, i get the service
promoted on every device attached.

sdptool browse 0:15:83:B9:ED:DD returns

Browsing 00:15:83:B9:ED:DD ...
Service Name: OBEX Object Push
Service Description: dummy description
Service Provider: obexpushd
Service RecHandle: 0x10000
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100

Service Name: OBEX Object Push
Service Description: dummy description
Service Provider: obexpushd
Service RecHandle: 0x10001
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100

Service Name: OBEX Object Push
Service Description: dummy description
Service Provider: obexpushd
Service RecHandle: 0x10002
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100

Service Name: OBEX Object Push
Service Description: dummy description
Service Provider: obexpushd
Service RecHandle: 0x10003
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100


When i start multiple instances, always the last one i started is the
one that works.


Has anyone a tip for me, how i can manage to get multiple
server-services on one machine?

greetings,
Uli





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-06-11 06:12:07

by Aveek Adhya

[permalink] [raw]
Subject: Re: [Bluez-users] BD address

You are right. All of my BlueTooth adapters show the same BD address. I was
trying to establish a communication between the two adapters, but it always
failed reporting some errors. Even l2ping dumps 'Can't connect: No route to
host'. I have to manage some other
adapter (obviously non-Chinese).
Thanks for your reply..

_____

From: Eng. Waleed S. Al-Rashoud [mailto:[email protected]]
Sent: Friday, June 08, 2007 6:43 PM
To: BlueZ users
Subject: Re: [Bluez-users] BD address

You've been punk'd, man!
this is a china-copy bluetooth adaoter..!
I have three of these, and all of them have the same Bluetooth Address!

BTW: the Bluetooth address is valid.. and as long as no other device around
has the same address, you are OK!

----- Original Message -----
From: Aveek Adhya <mailto:[email protected]>
To: [email protected]
Sent: Friday, June 08, 2007 3:57 PM
Subject: [Bluez-users] BD address

Hi all,
I have a BlueTooth adapter of Integrated System Solution. When I
try 'hciconfig -a', the output is like below:
# hciconfig -a
hci0: Type: USB
BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN
RX bytes:1228 acl:0 sco:0 events:26 errors:0
TX bytes:344 acl:0 sco:0 commands:26 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing, Object Transfer,
Audio
Device Class: Computer, Uncategorized
HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver:
0x1fe
Manufacturer: Integrated System Solution Corp. (57)
#

Is it a valid BD address? How can I set a valid address?
Thanks

_____

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_____

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


Attachments:
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments

2007-06-08 13:13:13

by Eng. Waleed Al-Rashoud

[permalink] [raw]
Subject: Re: [Bluez-users] BD address

You've been punk'd, man!
this is a china-copy bluetooth adaoter..!
I have three of these, and all of them have the same Bluetooth Address!

BTW: the Bluetooth address is valid.. and as long as no other device around has the same address, you are OK!

----- Original Message -----
From: Aveek Adhya
To: [email protected]
Sent: Friday, June 08, 2007 3:57 PM
Subject: [Bluez-users] BD address


Hi all,

I have a BlueTooth adapter of Integrated System Solution. When I try 'hciconfig -a', the output is like below:

# hciconfig -a

hci0: Type: USB

BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10

UP RUNNING PSCAN

RX bytes:1228 acl:0 sco:0 events:26 errors:0

TX bytes:344 acl:0 sco:0 commands:26 errors:0

Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00

Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

Link policy: RSWITCH HOLD SNIFF PARK

Link mode: SLAVE ACCEPT

Name: 'BlueZ (0)'

Class: 0x3e0100

Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio

Device Class: Computer, Uncategorized

HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe

Manufacturer: Integrated System Solution Corp. (57)

#



Is it a valid BD address? How can I set a valid address?

Thanks



------------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


------------------------------------------------------------------------------


_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


Attachments:
(No filename) (286.00 B)
(No filename) (164.00 B)
Download all attachments