Test Connection Failed Arduini MKR1010 WiFi via Matlab Support Package for Arduino
6 views (last 30 days)
Show older comments
Hi everyone,
I'm reaching out for help because I can't connect my Arduino MKR1010 Wifi to Matlab via the arduinosetup command; I keep getting the following error at the end of the procedure: "Test Connection Failed. Go back to check your settings.".
Over the last couple of days I've tried the following (with no success):
- updated the Wifi Nina firmware to 1.2.2 (I've also tried the 1.2.1, which didn't make any difference so I came back to the latest version, the 1.2.2). Source: https://fr.mathworks.com/help/supportpkg/arduinoio/ug/board-specific-issues.html
- tried on a different LAN than my household's; with only my computer and the Arduino on the router, while respecting the default Gateway and the subnet Mask mentionned in following tutorial: https://fr.mathworks.com/help/supportpkg/arduinoio/ug/configure-setup-for-arduino-hardware.html
- both static and dynamic IP fail the connection test; even though the Arduino responds to my pings
I'm currently using an academic version of Matlab 2020b (I'm a college student), I'm going to try again on Matlab 2019b.
I should mention that the arduino was purchased 2 days ago for that very purpose, and that it works just fine in the Arduino IDE and while connected to a COM-port on Matlab. I don't think there's a hardware related issue with the Arduino.
I would really appreciate your help if you have stumbled upon a similar issue, if you have any piece of advice or idea that I should try out.
Thanks in advance.
Michael
3 Comments
MathWorks MATLAB Hardware Team
on 6 May 2021
Hi Michael,
We are troubleshooting this issue to help you unblock soon.
Meanwhile, please reach out to the MathWorks Technical Support
with details on the MATLAB Version, Support Package Version, and the machine language setting to help further in resolving this issue.
Thanks,
MATLAB Hardware Team
MathWorks
Answers (1)
Song-Hyun Ji
on 27 Sep 2021
This issue occurs when the machine's language settings are set to a language other than English. Please follow the steps below to work around the issue:
1. Open 'master.m' class located at 'C:\ProgramData\MATLAB\SupportPackages\R2020b\toolbox\matlab\hardware\shared\hwsdk\+matlabshared\+hwsdk\master.m'.
2. Replace the char vector 'time' with local language wording like '시간' ('time' in case of Korean) in the line "match = regexpi(result,'time=[0-9.]+ms TTL=\d+')" at line 1237
3. The code line after this change should look something like the following:
>> match = regexpi(result,'시간=[0-9.]+ms TTL=\d+')
See Also
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!