- The Raspberry Pi must be connected to a wireless network that the computer running MATLAB can also access. The simplest way of achieving this is to have both the device and the computer connected to the same wireless network.
- The IP address of the Raspberry Pi, see: https://web.archive.org/web/20180814232547/http://uk.mathworks.com/help/supportpkg/raspberrypi/ug/get-the-ip-address-of-the-raspberry_pi-hardware.html
How do I use the Raspberry Pi Support Packages over a wireless connection?
10 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2014-11-26
编辑: MathWorks Support Team
2024-3-31
Is there a way of using the Raspberry Pi support packages over a wireless connection?
It is not really convenient for me to keep my computer connected to my Raspberry Pi through an ethernet cable.
采纳的回答
MathWorks Support Team
2024-3-31
编辑:MathWorks Support Team
2024-3-31
The MATLAB and Simulink hardware support packages for Raspberry Pi use an SSH connection to communicate with the hardware. This will work regardless of whether there is a wired or wireless connection.
To communicate with the Raspberry Pi over WiFi you will need:
Verify that your network is correctly configured by pinging the IP address of the Raspberry Pi. In a Command Prompt (Windows) or terminal (Linux, Mac) run the command:
ping RPI_IP
where RPI_IP is the IP address of the Raspberry Pi. If it is successful this should return a reply and time information, if not it reports that the request timed out.
Once you can successfully ping the Raspberry Pi, configure MATLAB or Simulink to use the correct IP address to communicate with the hardware:
MATLAB Support Package
When executing the RASPI command, specify the device's IP address, username and password:
Simulink Support Package
When using the "Run on Target Hardware" window to deploy your model, set the "Host name" field to the device's IP address, and the username and password fields to the username and password for your device:
Note that the Simulink package also supports the standalone operation. This means that a connection is needed for installing the support package and deploying any models onto the Raspberry Pi, but it is possible to run the created code without any connection to Simulink once a model is deployed.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!