Cannot scan in BLE Receive block

1 view (last 30 days)
Orhan
Orhan on 24 Apr 2018
Answered: Sruthi Yenugula on 26 Apr 2018
I have installed Simulink Support Package for Android Devices since I needed a Bluetooth LE communication. I ran the example "Work with BLE Blocks on Android Devices", and first app works finely. For the client part, when I click Scan button, I get the error,
"Error evaluating 'MaskDialog' callback of codertarget.internal.androidBLEReceive block (mask) 'androidblereceiveheartrate/ BLE Receive'. Callback string is 'codertarget.internal.androidblesetup()'
Error launching Hardware Setup workflow Android for base code ANDROID Details: Index exceeds array bounds."
After clicking OK and clicking Scan again, I get Hardware Setup window for Install BLE Scanner App, but when I click Install, I get the error
"Index exceeds array bounds."
Since first part worked finely, I don't think the issue is related to configuration parameters or something like that but I have little experience with Simulink.

Answers (1)

Sruthi Yenugula
Sruthi Yenugula on 26 Apr 2018
Hi Orhan,
This issue is seen with 18a release. This fix is applicable for only for 18a release. Current workaround for the issue
Please Unzip the attached file, copy the p file to the following directory
To navigate to the directory, execute the following commands in the MATLAB command prompt
>> cd(matlabshared.supportpkg.getSupportPackageRoot)
>> cd('toolbox\target\supportpackages\android\+codertarget\+android')
After copying the file, execute the following command in the MATLAB command prompt
>>clear classes
>>rehash toolboxcache
Thanks,
Sruthi

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!