2006-08-27 23:13:27

by Martin Karger

[permalink] [raw]
Subject: [Bluez-devel] flexible bt-dongle and bccmd

hi there!

i am looking for a (csr-based) bt-dongle where you can at least change
the following things: bdaddr, features, remver and manufacturer.

i am currently owning a bt-6030. i am able to change the key "version",
but not "remver". does anyone have an idea on this?


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2006-08-29 16:43:10

by Peter Wippich

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd


Hi Marcel,

On Tue, 29 Aug 2006, Marcel Holtmann wrote:

> and remember that it is dangerous. I already killed a couple of my
> dongles and I only use a Casira development kit from CSR when playing
> with this stuff. In the cases I screwed up, I can reset the module and
> get it back working. Most times at least. I already killed one module
> some time ago.

You normaly can recover from this by doing a full chip erase and
reprogramming from scratch. However, any module specific PS settings will
be lost if you don't have a "backup".......

Ciao,

Peter



| Peter Wippich Voice: +49 30 46776411 |
| G&W Instruments GmbH fax: +49 30 46776419 |
| Gustav-Meyer-Allee 25, Geb. 12 Email: [email protected] |
| D-13355 Berlin / Germany |


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-29 18:00:42

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> as peter already pointed out bccmd is a very powerful program, i guess
> reading the csr-documentation about the bccmd commands is a good idea.

and remember that it is dangerous. I already killed a couple of my
dongles and I only use a Casira development kit from CSR when playing
with this stuff. In the cases I screwed up, I can reset the module and
get it back working. Most times at least. I already killed one module
some time ago.

> right now i am having no idea how to add a new pskey. modifying and
> delting works for me, but i did not yet found out how to create a new
> one. it would be great if i could add a pskey with features to ps storage.

No need for that. You can simply set it. However you must select the
correct store (default will be volatile memory). Can't remember that
from memory. Look it up in the documentation.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-29 13:01:23

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Marcel Holtmann wrote:
> Hi Martin,
>
>>>> i just realised that the problem is not changing the value of remver.
>>>> the output of hcidump looks good. i can store differnt values in psi or
>>>> psram.
>>>>
>>>> the problem seems to be somewhere else:
>>>>
>>>> PSKEY_LMP_REMOTE_VERSION has the value 0x0003 which is for LMP Version
>>>> 2.0 i guess. but the output of hcitool info shows the wrong value (0x2)
>>>>
>>>> # bccmd -i hci1 psget remver
>>>> The LMP version reported remotely: 0x0003 (3)
>>>> # hcitool info 00:0A:94:02:12:34
>>>> Requesting information ...
>>>> BD Address: 00:0A:94:02:12:34
>>>> Device Name: BlueZ (1)
>>>> LMP Version: 1.2 (0x2) LMP Subversion: 0x5dc
>>>> Manufacturer: Cambridge Silicon Radio (10)
>>> the remote version is the version that the other side will see. However
>>> what is the reason for playing around with this. You better use psclr to
>>> remove this key and let the firmware set the default value.
>>>
>> first reason to play around with it: the remote version is wrong for
>> this bt-dongle. i think it should be 0x3 not 0x2.
>> second reason is, i want to find out, if its possible to "clone" a
>> bt-device. not only the address but also things like lmp-version or
>> features of a device.
>
> you can change the LMP version and the features. In case of CSR the LMP
> subver is not changeable, because this is the build id of the firmware.
>
>> when i am able to delete/clear a pskey, can also wonder if i can create
>> a new pskey entry.
>
> Sure. You can do whatever you want the PS storage. Including rendering
> your device useless.
>

as peter already pointed out bccmd is a very powerful program, i guess
reading the csr-documentation about the bccmd commands is a good idea.

right now i am having no idea how to add a new pskey. modifying and
delting works for me, but i did not yet found out how to create a new
one. it would be great if i could add a pskey with features to ps storage.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 23:57:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> >> i just realised that the problem is not changing the value of remver.
> >> the output of hcidump looks good. i can store differnt values in psi or
> >> psram.
> >>
> >> the problem seems to be somewhere else:
> >>
> >> PSKEY_LMP_REMOTE_VERSION has the value 0x0003 which is for LMP Version
> >> 2.0 i guess. but the output of hcitool info shows the wrong value (0x2)
> >>
> >> # bccmd -i hci1 psget remver
> >> The LMP version reported remotely: 0x0003 (3)
> >> # hcitool info 00:0A:94:02:12:34
> >> Requesting information ...
> >> BD Address: 00:0A:94:02:12:34
> >> Device Name: BlueZ (1)
> >> LMP Version: 1.2 (0x2) LMP Subversion: 0x5dc
> >> Manufacturer: Cambridge Silicon Radio (10)
> >
> > the remote version is the version that the other side will see. However
> > what is the reason for playing around with this. You better use psclr to
> > remove this key and let the firmware set the default value.
> >
>
> first reason to play around with it: the remote version is wrong for
> this bt-dongle. i think it should be 0x3 not 0x2.
> second reason is, i want to find out, if its possible to "clone" a
> bt-device. not only the address but also things like lmp-version or
> features of a device.

you can change the LMP version and the features. In case of CSR the LMP
subver is not changeable, because this is the build id of the firmware.

> when i am able to delete/clear a pskey, can also wonder if i can create
> a new pskey entry.

Sure. You can do whatever you want the PS storage. Including rendering
your device useless.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 20:36:57

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Marcel Holtmann wrote:
> Hi Martin,
>
>> i just realised that the problem is not changing the value of remver.
>> the output of hcidump looks good. i can store differnt values in psi or
>> psram.
>>
>> the problem seems to be somewhere else:
>>
>> PSKEY_LMP_REMOTE_VERSION has the value 0x0003 which is for LMP Version
>> 2.0 i guess. but the output of hcitool info shows the wrong value (0x2)
>>
>> # bccmd -i hci1 psget remver
>> The LMP version reported remotely: 0x0003 (3)
>> # hcitool info 00:0A:94:02:12:34
>> Requesting information ...
>> BD Address: 00:0A:94:02:12:34
>> Device Name: BlueZ (1)
>> LMP Version: 1.2 (0x2) LMP Subversion: 0x5dc
>> Manufacturer: Cambridge Silicon Radio (10)
>
> the remote version is the version that the other side will see. However
> what is the reason for playing around with this. You better use psclr to
> remove this key and let the firmware set the default value.
>

first reason to play around with it: the remote version is wrong for
this bt-dongle. i think it should be 0x3 not 0x2.
second reason is, i want to find out, if its possible to "clone" a
bt-device. not only the address but also things like lmp-version or
features of a device.

when i am able to delete/clear a pskey, can also wonder if i can create
a new pskey entry.

bye
martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 21:17:53

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> i just realised that the problem is not changing the value of remver.
> the output of hcidump looks good. i can store differnt values in psi or
> psram.
>
> the problem seems to be somewhere else:
>
> PSKEY_LMP_REMOTE_VERSION has the value 0x0003 which is for LMP Version
> 2.0 i guess. but the output of hcitool info shows the wrong value (0x2)
>
> # bccmd -i hci1 psget remver
> The LMP version reported remotely: 0x0003 (3)
> # hcitool info 00:0A:94:02:12:34
> Requesting information ...
> BD Address: 00:0A:94:02:12:34
> Device Name: BlueZ (1)
> LMP Version: 1.2 (0x2) LMP Subversion: 0x5dc
> Manufacturer: Cambridge Silicon Radio (10)

the remote version is the version that the other side will see. However
what is the reason for playing around with this. You better use psclr to
remove this key and let the firmware set the default value.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 17:52:55

by Peter Wippich

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd


Hi

0 - No chip to host connection
1 - BCSP
2 - H2 - USB
3 - H4 - UART
4 - VM access to the UART
6 - H5
7 - H4DS

not all variants are available with all firmware versions. Anyway, you're
not expected to play with it unless you realy know what you are doing
there. If changed to a wrong setting your hardware is ready for the
garbage can.

Ciao,

Peter


On Mon, 28 Aug 2006, Martin Karger wrote:

> Brand, Chris wrote:
> >
> >> and btw, what is PSKEY_HOST_INTERFACE for?
> >
> > It controls how the host interfaces with the BlueCore chip (USB or
> > UART).
>
> i guess 0x0002 stands for usb? so 0x0001 should be uart? any other
> possible values?
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>


| Peter Wippich Voice: +49 30 46776411 |
| G&W Instruments GmbH fax: +49 30 46776419 |
| Gustav-Meyer-Allee 25, Geb. 12 Email: [email protected] |
| D-13355 Berlin / Germany |


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 17:46:37

by Brand, Chris

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd


> >> and btw, what is PSKEY_HOST_INTERFACE for?
> >
> > It controls how the host interfaces with the BlueCore chip (USB or
> > UART).
>
> i guess 0x0002 stands for usb? so 0x0001 should be uart? any
> other possible values?

1 = UART running BCSP
2 = USB
3 = UART (H4)

Chris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 17:43:50

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Brand, Chris wrote:
>
>> and btw, what is PSKEY_HOST_INTERFACE for?
>
> It controls how the host interfaces with the BlueCore chip (USB or
> UART).

i guess 0x0002 stands for usb? so 0x0001 should be uart? any other
possible values?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 17:38:00

by Brand, Chris

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd


> and btw, what is PSKEY_HOST_INTERFACE for?

It controls how the host interfaces with the BlueCore chip (USB or
UART).

Chris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 17:34:43

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Marcel Holtmann wrote:
> Hi Martin,
>
>> i am looking for a (csr-based) bt-dongle where you can at least change
>> the following things: bdaddr, features, remver and manufacturer.
>>
>> i am currently owning a bt-6030. i am able to change the key "version",
>> but not "remver". does anyone have an idea on this?
>
> maybe this firmware doesn't have the key for remote version. You can use
> hcidump -X -V to check the actual return value of the command.

hi marcel,

i just realised that the problem is not changing the value of remver.
the output of hcidump looks good. i can store differnt values in psi or
psram.

the problem seems to be somewhere else:

PSKEY_LMP_REMOTE_VERSION has the value 0x0003 which is for LMP Version
2.0 i guess. but the output of hcitool info shows the wrong value (0x2)

# bccmd -i hci1 psget remver
The LMP version reported remotely: 0x0003 (3)
# hcitool info 00:0A:94:02:12:34
Requesting information ...
BD Address: 00:0A:94:02:12:34
Device Name: BlueZ (1)
LMP Version: 1.2 (0x2) LMP Subversion: 0x5dc
Manufacturer: Cambridge Silicon Radio (10)


and btw, what is PSKEY_HOST_INTERFACE for?

thanks,
martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-28 13:38:06

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> i am looking for a (csr-based) bt-dongle where you can at least change
> the following things: bdaddr, features, remver and manufacturer.
>
> i am currently owning a bt-6030. i am able to change the key "version",
> but not "remver". does anyone have an idea on this?

maybe this firmware doesn't have the key for remote version. You can use
hcidump -X -V to check the actual return value of the command.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-04 18:08:16

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> >> right now i am having no idea how to add a new pskey. modifying and
> >> delting works for me, but i did not yet found out how to create a new
> >> one. it would be great if i could add a pskey with features to ps storage.
> >
> > No need for that. You can simply set it. However you must select the
> > correct store (default will be volatile memory). Can't remember that
> > from memory. Look it up in the documentation.
>
> ok, works now. but i do not yet understand the syntax for setting pskey
> "features".
> btw, the firmware of the bt-6030 does not care about a "remver" pskey.
> the levelone dongle does.

every value in the PS keys is uint16 and it has a weird storage layout
for uint32. You really need the documentation or a friendly guy from CSR
to twist your mind around it. I got it wrong multiple times.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-04 18:06:09

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Hi Martin,

> >> and remember that it is dangerous. I already killed a couple of my
> >> dongles and I only use a Casira development kit from CSR when playing
> >> with this stuff. In the cases I screwed up, I can reset the module and
> >> get it back working. Most times at least. I already killed one module
> >> some time ago.
> >
> > You normaly can recover from this by doing a full chip erase and
> > reprogramming from scratch. However, any module specific PS settings will
> > be lost if you don't have a "backup".......
>
> is casira more than some hardware which consists of some
> voltage-converters, and software mostly equivalent to several bluez tools?

the Casira gives you access to the SPI interface of the BlueCore chip
and this lets you do some of the nasty stuff you basically only need in
pre-production.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-04 16:03:43

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Peter Wippich wrote:
> Hi Marcel,
>
> On Tue, 29 Aug 2006, Marcel Holtmann wrote:
>
>> and remember that it is dangerous. I already killed a couple of my
>> dongles and I only use a Casira development kit from CSR when playing
>> with this stuff. In the cases I screwed up, I can reset the module and
>> get it back working. Most times at least. I already killed one module
>> some time ago.
>
> You normaly can recover from this by doing a full chip erase and
> reprogramming from scratch. However, any module specific PS settings will
> be lost if you don't have a "backup".......

is casira more than some hardware which consists of some
voltage-converters, and software mostly equivalent to several bluez tools?

bye
martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-09-04 15:57:12

by Martin Karger

[permalink] [raw]
Subject: Re: [Bluez-devel] flexible bt-dongle and bccmd

Marcel Holtmann wrote:

>
>> right now i am having no idea how to add a new pskey. modifying and
>> delting works for me, but i did not yet found out how to create a new
>> one. it would be great if i could add a pskey with features to ps storage.
>
> No need for that. You can simply set it. However you must select the
> correct store (default will be volatile memory). Can't remember that
> from memory. Look it up in the documentation.

ok, works now. but i do not yet understand the syntax for setting pskey
"features".
btw, the firmware of the bt-6030 does not care about a "remver" pskey.
the levelone dongle does.

bye
martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel