public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] BD address
@ 2007-06-08 12:57 Aveek Adhya
  2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
  0 siblings, 1 reply; 5+ messages in thread
From: Aveek Adhya @ 2007-06-08 12:57 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 943 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 8963 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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] BD address
  2007-06-08 12:57 [Bluez-users] BD address Aveek Adhya
@ 2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
  2007-06-11  6:12   ` Aveek Adhya
  2007-06-11 11:14   ` [Bluez-users] multiple server-instances on one single machine Uli Sesselmann
  0 siblings, 2 replies; 5+ messages in thread
From: Eng. Waleed S. Al-Rashoud @ 2007-06-08 13:13 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 2141 bytes --]

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: bluez-users@lists.sourceforge.net 
  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
  Bluez-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bluez-users

[-- Attachment #1.2: Type: text/html, Size: 11147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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] BD address
  2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
@ 2007-06-11  6:12   ` Aveek Adhya
  2007-06-11 11:14   ` [Bluez-users] multiple server-instances on one single machine Uli Sesselmann
  1 sibling, 0 replies; 5+ messages in thread
From: Aveek Adhya @ 2007-06-11  6:12 UTC (permalink / raw)
  To: 'BlueZ users'


[-- Attachment #1.1: Type: text/plain, Size: 2344 bytes --]

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:iwaleed@gmail.com] 
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:aveek@rebaca.com>  
To: bluez-users@lists.sourceforge.net 
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

[-- Attachment #1.2: Type: text/html, Size: 16300 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* [Bluez-users] multiple server-instances on one single machine
  2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
  2007-06-11  6:12   ` Aveek Adhya
@ 2007-06-11 11:14   ` Uli Sesselmann
  2007-06-13  2:46     ` Marcel Holtmann
  1 sibling, 1 reply; 5+ messages in thread
From: Uli Sesselmann @ 2007-06-11 11:14 UTC (permalink / raw)
  To: BlueZ users

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
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] multiple server-instances on one single machine
  2007-06-11 11:14   ` [Bluez-users] multiple server-instances on one single machine Uli Sesselmann
@ 2007-06-13  2:46     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2007-06-13  2:46 UTC (permalink / raw)
  To: BlueZ users

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
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:[~2007-06-13  2:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08 12:57 [Bluez-users] BD address Aveek Adhya
2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
2007-06-11  6:12   ` Aveek Adhya
2007-06-11 11:14   ` [Bluez-users] multiple server-instances on one single machine Uli Sesselmann
2007-06-13  2:46     ` Marcel Holtmann

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