Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Mar 2015 16:06:25 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
Cc:        "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org>
Subject:   Re: Belkin F8T065 doesn't register properly (BCM20702A0)
Message-ID:  <CAFPOs6pZ5Ua-xxtTucXTK%2BQyLjS-daF8H3D8V-OiPZYA%2BOQ4Gg@mail.gmail.com>
In-Reply-To: <CAFPOs6rrpSSbbXf%2BbZa-kDR=qFa1_6CaWCi4Lnx0zKwuY2yMig@mail.gmail.com>
References:  <20150228220307.b0ab42716d574a9bcfd83094@getmail.no> <20150303223312.c7b12845ae652cfc315c1b61@getmail.no> <CAFPOs6o1UYeUS45Pbdu_xEswf1cH6=m1ynQ%2BNpeyOi64ip8v-A@mail.gmail.com> <20150304225917.56bb81d3e6da2773a0deb5fa@getmail.no> <CC570AED-5D2F-429C-A070-31A1FA8C8545@gmail.com> <alpine.NEB.2.11.1503050714091.7322@galant.ogmig.net> <CAFPOs6pHZQyjroVh8=7J_-T7JcaY%2Bs_kriXjPXVDNb5YKQmOkg@mail.gmail.com> <20150305234319.89f5e1bf9baf7c36f9f6c75b@getmail.no> <CAFPOs6rrpSSbbXf%2BbZa-kDR=qFa1_6CaWCi4Lnx0zKwuY2yMig@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[...]

> i think you need to use libusb. here some linux python code that might
> be of some help
>
> https://github.com/Dolnor/DELL-SCT-Support/blob/master/Clover/OEM/Wireless/SLE/BTFirmwareUploader.kext/Contents/Resources/bcmfwup.py

just a few of comments

- the code above seems to be parsing and reading .hex file into the memory

- the .hex, might be intex hex, i.e. http://en.wikipedia.org/wiki/Intel_HEX

- upload initialized by sending a couple of VENDOR HCI commands, i.e.
[0x79, 0xfc, 0x00] and [0x2e, 0xfc, 0x00]

- decoded firmware then uploaded using bulk(?) transfers

- upload finalized by sending 3 other VENDOR HCI commands, i.e. [0x4e,
0xfc, 0x04, 0xff, 0xff, 0xff, 0xff], [0x79, 0xfc, 0x00] and [0x53,
0xfc, 0x01, 0x13]

- finally device is reset by sending HCI RESET command, i.e. [0x03, 0x0c, 0x00]

this is definitely not what ubtbcmfw(4) and bcmfw(8) pair does. so,
basically, you have to write something from scratch using libusb api.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPOs6pZ5Ua-xxtTucXTK%2BQyLjS-daF8H3D8V-OiPZYA%2BOQ4Gg>