Hi,
I am developing stuff for a bike and need the Bluetooth Cycling Power Service 0x1818
I found the 0x1816 Cycling Cadence and Speed
Has anybody developed this service module? Or is it coming in the next version og the SDK 9.0.1??
/// Flemming
Hi,
I am developing stuff for a bike and need the Bluetooth Cycling Power Service 0x1818
I found the 0x1816 Cycling Cadence and Speed
Has anybody developed this service module? Or is it coming in the next version og the SDK 9.0.1??
/// Flemming
This is the only thing you will find around
Is not a complete implementation, but it should work... I've tried it and have some connection issues but it's a very good starting point
Wow! That was fast and amazing to have a module just to use!
I added the module and now Im running Cycling Power Notifications...
Thank you very much!
Hello!
Please, could you show how we need to configure the service?
This way is not working:
memset(&cp_init, 0, sizeof(cp_init));
cp_init.ctrlpt_evt_handler = NULL;
cp_init.feature = BLE_CPS_FEATURE_WHEEL_REV_BIT | BLE_CPS_FEATURE_CRANK_REV_BIT | BLE_CPS_FEATURE_MULTIPLE_SENSORS_BIT;
// Here the sec level for the Cycling Speed and Cadence Service can be changed/increased.
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cp_init.cp_meas_attr_md.cccd_write_perm); // for the measurement characteristic, only the CCCD write permission can be set by the application, others are mandated by service specification
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cp_init.cp_feature_attr_md.read_perm); // for the feature characteristic, only the read permission can be set by the application, others are mandated by service specification
//cp_init.ctrlpt_evt_handler = sc_ctrlpt_event_handler;
err_code = ble_cps_init(&m_cp, &cp_init);
APP_ERROR_CHECK(err_code);
Hello!
Please, could you show how we need to configure the service?
This way is not working:
memset(&cp_init, 0, sizeof(cp_init));
cp_init.ctrlpt_evt_handler = NULL;
cp_init.feature = BLE_CPS_FEATURE_WHEEL_REV_BIT | BLE_CPS_FEATURE_CRANK_REV_BIT | BLE_CPS_FEATURE_MULTIPLE_SENSORS_BIT;
// Here the sec level for the Cycling Speed and Cadence Service can be changed/increased.
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cp_init.cp_meas_attr_md.cccd_write_perm); // for the measurement characteristic, only the CCCD write permission can be set by the application, others are mandated by service specification
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cp_init.cp_feature_attr_md.read_perm); // for the feature characteristic, only the read permission can be set by the application, others are mandated by service specification
//cp_init.ctrlpt_evt_handler = sc_ctrlpt_event_handler;
err_code = ble_cps_init(&m_cp, &cp_init);
APP_ERROR_CHECK(err_code);
Juan Maya,
please open a new case for this.