This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52-ble-image-transfer-demo for SDK 16 / SD S140 V7.0.1?

Has anyone tried to update the github project nrf52-ble-image-transfer-demo to work with SDK 16 / SD V7.0.1?

I copied the main code in the project to ble_app_uart example in SDK 16 and customize it to work with our Android app and I am able to get 108KB/s from Android (Samsung S10) to NRF52 (S140 on 52840). 

But I'm not able to get more than 21KB/s from NRF52 to Android.  I even added the following to ble_stack_init() (right after nrf_sdh_ble_enable()) but made no difference:

 {
    ble_cfg_t ble_cfg;
    ble_cfg.conn_cfg.conn_cfg_tag = APP_BLE_CONN_CFG_TAG;
    ble_cfg.conn_cfg.params.gatts_conn_cfg.hvn_tx_queue_size = TX_QUEUE_SIZE;
    err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATTS, &ble_cfg, ram_start);
    if (NRF_SUCCESS != err_code)
    {
    	printf("Err: %d\r\n", (int)err_code);
    }
}



What am I missing?  (I tried to copy the sdk_config.h but the diff between SDK 15 and SDK 16 is very large and fails to run correctly -- ends up in app_error_save_and_stop().)

Thanks.

Parents
  • Hi 

    I just tried it, and didn't seem to have any issues with it. I just had to update the flash and RAM settings for the nRF52840 project, and point the projects to the latest SoftDevice versions. 

    I updated the repo with my changes. 

    Can you try to pull it again and see if you get it to work with SDK v16.0.0?

    I did some testing on a Samsung tablet and was able to reach speeds up to 1200kbps in 2M high speed mode. 

    Best regards
    Torbjørn

Reply
  • Hi 

    I just tried it, and didn't seem to have any issues with it. I just had to update the flash and RAM settings for the nRF52840 project, and point the projects to the latest SoftDevice versions. 

    I updated the repo with my changes. 

    Can you try to pull it again and see if you get it to work with SDK v16.0.0?

    I did some testing on a Samsung tablet and was able to reach speeds up to 1200kbps in 2M high speed mode. 

    Best regards
    Torbjørn

Children
Related