2004-03-31 10:46:07

by paolo2278

[permalink] [raw]
Subject: [Bluez-devel] absolute clock


Hi Folks

I have a great problem, I'd like to know wich is the structure where I can find the value of the bluetooth's absolute clock, or the function that I could call for read this value.
I created the hci command packet to get this information, but what I can see is only the lenght of the event parameters but not their values.
P.S. I have a CSR Bluetooth

Best Regards Paolo Sperandio

-----------------------------------------------------------
Spazio ILLIMITATO per la tua Email, Scanner Antivirus,
Antispam, Backup e POP3. Prova la nuova Email di superEva:
http://webmail.supereva.it/
-----------------------------------------------------------



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-03-31 12:14:26

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] absolute clock

Hi Steven,

> If you have access to the CSR support website (http://www.csrsupport.com) then
> it's all fully documented. Don't forget that you may need to tunnel the
> commands over HCI. Alternatively, you might find it easier to dig through
> the BlueZ source and find out where it sends the commands to change the
> uart baud rate - that should give you a good example to work from.

the better example code will be in utils/tools/csr.[ch].

> I can't recall if BlueZ has a tool that allows you to send arbitrary
> BCCMDs to CSR chips - if not, it sounds like a good project for
> someone.

A program like btcli don't exists for Linux.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-03-31 11:58:47

by Steven Singer

[permalink] [raw]
Subject: Re: [Bluez-devel] absolute clock

[email protected] wrote:
> I have a great problem, I'd like to know wich is the structure where I
> can find the value of the bluetooth's absolute clock, or the function
> that I could call for read this value.
[...]
> P.S. I have a CSR Bluetooth

As Marcel pointed out in another message, there's no standard HCI
command to read the Bluetooth clock in BT 1.1 but there is in BT 1.2.

However, if you have a CSR BT 1.1 device there are vendor specific
commands. If you use CSR's BCCMD mechanism then there are two IDs of
interest: BCCMDVARID_BT_CLOCK (0x2c00) returns the local Bluetooth clock
of the controller; BCCMDVARID_PICONET_INSTANT (0x3009) returns the
current Bluetooth clock for the a given piconet (it expects you to pass
in an ACL handle for any link on that piconet).

If you have access to the CSR support website (http://www.csrsupport.com) then
it's all fully documented. Don't forget that you may need to tunnel the
commands over HCI. Alternatively, you might find it easier to dig through
the BlueZ source and find out where it sends the commands to change the
uart baud rate - that should give you a good example to work from.

I can't recall if BlueZ has a tool that allows you to send arbitrary
BCCMDs to CSR chips - if not, it sounds like a good project for
someone.

- Steven
--



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

http://www.mimesweeper.com
**********************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-03-31 10:56:04

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] absolute clock

Hi Paolo,

> I have a great problem, I'd like to know wich is the structure where I can find the value of the bluetooth's absolute clock, or the function that I could call for read this value.
> I created the hci command packet to get this information, but what I can see is only the lenght of the event parameters but not their values.

about what clock are you talking? With Bluetooth 1.1 you can only read
the clock offset of a remote device. With 1.2 you can also read the
local and remote clock values. Look at the HCI specification.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel