Re: [Bluez-users] H5 3 wire UART connect problem

Marcel Holtmann
2005-07-04T13:00:28Z

Hi Hariharan,

> Presently we are working in 3 WIRE UART Bluetooth transport protocol
> implementation.
> We are in implementation of 3 WIRE UART in hciattach.c.
>
> Our Specification:
> Linux kernel - 2.4.20.

this kernel version is a little bit problematic. Do your development
with the 2.6.12 kernel and then backport it. Otherwise nobody will
review it and it may become useless.

> Module - Solicon wave Serial port Bluetooth Module.

I can test it out with a Casira and a BlueCore4.

> In the HCI attach, We are following the procedure of given below.
>
> Host side -> SYNC Command -> BT Device
> Host side <- SYNC Response <- BT Device
> Host Side <- SYNC Command <- BT Device
> Host Side -> SYNC Response -> BT Device
> Host side <- Config Command <- BT Device
> Host side -> Config Response -> BT Device
>
> Here after the device does not respond for any of the commands

Actually I have no idea why that happens, but I also don't have any
Silicon Wave development kit at hand.

> Please advise us whether our command sequence for the HCI attach of 3 WIRE
> bluetooth device.

Check the specification. I have no idea.

> Our progress plan in the Implementation of H5 3 WIRE in Bluez.
> First we attach the module HCI layer with the bluez stack.
> Second we build the driver to usr 3 WIRE stack.
> our plan is a proper one or not. Advise.

You add the basic configuration stuff to hciattach like it was done for
BCSP and then you set the TTY line discipline to N_HCI and switch to the
3-Wire UART protocol. However this must be implemented in hci_3wire.c
and linked correctly into the hci_uart.ko driver. The complete protocol
handling then has to be done inside the kernel.

Regards

Marcel