2023-04-06 09:35:18 +00:00
|
|
|
# BTstack Port for POSIX Systems with modern Infineon (CYW) H4 Bluetooth Controller
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
Newer Infineon Airoc (tm) Controllers like the CYW5557x series accept PatchRAM upload only in a so-called
|
|
|
|
'auto-baud mode' which is entered by asserting CTS (low) and starting/resetting the controller via BT_REG_EN.
|
2023-04-20 09:21:43 +00:00
|
|
|
This port currently only supports the CYW5557x Controllers.
|
2023-04-06 09:35:18 +00:00
|
|
|
|
|
|
|
## Compilation
|
|
|
|
|
|
|
|
BTstack's posix-h4-bcm port does not have additional dependencies. You can directly run cmake and then your default
|
|
|
|
build system. E.g. with Ninja:
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja ..
|
|
|
|
ninja
|
|
|
|
|
|
|
|
## Running the examples
|
|
|
|
|
|
|
|
On start, BTstack opens the serial port, which asserts CTS, and requests you to reset the Controller with a countdown.
|
|
|
|
|
|
|
|
$ ./gatt_counter
|
|
|
|
Packet Log: /tmp/hci_dump.pklg
|
|
|
|
Phase 1: Download firmware
|
|
|
|
Please reset Bluetooth Controller, e.g. via RESET button. Firmware download starts in:
|
|
|
|
3
|
|
|
|
2
|
|
|
|
1
|
|
|
|
Firmware download started
|
2023-04-20 09:21:43 +00:00
|
|
|
Local version information:
|
|
|
|
- HCI Version 0x000a
|
|
|
|
- HCI Revision 0x0b73
|
|
|
|
- LMP Version 0x000a
|
|
|
|
- LMP Subversion 0x2257
|
|
|
|
- Manufacturer 0x0009
|
2023-04-06 09:35:18 +00:00
|
|
|
Phase 2: Main app
|
|
|
|
BTstack up and running at 55:56:0A:0A:76:93
|
2023-04-20 09:21:43 +00:00
|
|
|
...
|
2023-04-06 09:35:18 +00:00
|
|
|
|
|
|
|
## ToDo
|
2023-04-20 09:21:43 +00:00
|
|
|
- select PatchRAM file based on HCI Read Local Version Information
|