Cannot scan in BLE Receive block

조회 수: 1 (최근 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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by