Cannot scan in BLE Receive block

2 ビュー (過去 30 日間)
Orhan
Orhan 2018 年 4 月 24 日
回答済み: Sruthi Yenugula 2018 年 4 月 26 日
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.

回答 (1 件)

Sruthi Yenugula
Sruthi Yenugula 2018 年 4 月 26 日
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

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by