![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1508804/image.png)
loosing nano 33 iot configuration when disconnecting usb cable or reseting
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I am trying to use the Arduino Nano 33 IoT with the 'MATLAB® Support Package for Arduino® Hardware'.
I am calling the arduinosetup() function to configure the Nano to connect to MATLAB with Wi-Fi. Then I use the lines:
a = arduino('192.168.137.10','Nano33IoT',9500);
imu = bno055(a,'I2CAddress','0x28','SamplesPerRead',1,'ReadMode','latest');
Why I suspect I am losing the configuration on the board is because...
- When I close the instance of MATLAB, then reopen a new one and create new Arduino and BNO055 objects, I can receive data from the Nano.
- If, however, I disconnect the board's USB cable from the PC and try a different power supply (or even reconect it to the same USB port) or press the reset button, I cannot create an Arduino object anymore. I have to call the arduinosetup() function and redo the configurations again.
We need to use the BNO055 sensor wirelessly, hence we are using the Nano IoT.
0 Kommentare
Antworten (2)
Adeline
am 12 Okt. 2023
Hi,
I understand you are trying to connect an Arduino Nano 33 IoT board with MATLAB over WiFi.
If you manually disconnect the board before clearing the arduino object from the MATLAB workspace, the Arduino serial port may not be recognized when you reconnect. In the first scenario where the instance of MATLAB is closed, the object information in the workspace would be erased. Hence, the Arduino Nano was able to receive data in the new instance. Try clearing the Arduino object before disconnecting the USB to fix the connection issue.
Note: To retrieve the necessary credentials from your previous configuration check the “Retrieve last configuration from Arduino board” option in the Hardware Setup UI.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1508804/image.png)
I hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu WiFi finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!