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
Revision 3:47feed5a7386, committed 2014-06-13
- Comitter:
- rgrover1
- Date:
- Fri Jun 13 10:24:39 2014 +0000
- Parent:
- 2:e060367b9024
- Child:
- 4:98e3d2aa66de
- Commit message:
- updating the underlying libraries.
Changed in this revision
BLE_API.lib | Show annotated file Show diff for this revision Revisions of this file |
nRF51822.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/BLE_API.lib Fri Jun 13 11:19:22 2014 +0100 +++ b/BLE_API.lib Fri Jun 13 10:24:39 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#f97a35cc40f8 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#455363a6eb90
--- a/nRF51822.lib Fri Jun 13 11:19:22 2014 +0100 +++ b/nRF51822.lib Fri Jun 13 10:24:39 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#85305292b44f +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#c3ce6ee5d300