mbed HRM1017にSBBLE/konashiを移植する実験(途中)
Dependencies: BLE_API mbed nRF51822
Fork of BLE_TEST_konashi by
Konashi/SBBLEと完全互換ではないので注意!!
ライブラリ類をUpdateするとコンパイル出来なくなります。インポートした物をそのまま使って下さい。
Characteristicを増やすと挙動がおかしくなる不具合があります。
- onDataWrittenコールバック関数が呼ばれなくなる。
- onDisconnectionコールバック関数の中の"ble.startAdvertising()"でハングする。
PIO入出力と次の3つのうちの2つまでの組み合わせなら動作するのを確認しました。
main.cppの20行目付近で選択できます。
- PWM
- I2C
- UART
IOの構成を変更したときは、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアする必要があります。
IOのピン割り付けはソースコードを見てください。
動作確認にはiOSのSBBLEアプリが使えます。
https://itunes.apple.com/jp/app/sbble/id788610934?mt=8
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
12:dd866bd5eaf9 | 2016-04-19 | 2016/04/20 ?????BLE API????; TY51822r3 ??Build?????; | File Diff Annotate |
11:c25480277877 | 2014-09-07 | test1 | File Diff Annotate |
10:1f4cfd4dd6c8 | 2014-08-25 | IO???Notify?? | File Diff Annotate |
9:a6ae6f8c95b7 | 2014-08-18 | i2c test | File Diff Annotate |
8:a62b8f7d5dcf | 2014-08-17 | DeviceName?? | File Diff Annotate |
7:60964e52810e | 2014-08-16 | test3 | File Diff Annotate |
6:9c9630cb454b | 2014-08-16 | test2 | File Diff Annotate |
5:61109bce11fe | 2014-08-16 | test1 | File Diff Annotate |
2:e060367b9024 | 2014-06-13 | update demo to use the new APIs; we have it working now. | File Diff Annotate |
0:e910d9bb040f | 2014-05-26 | initial | File Diff Annotate |