Macos 将Intel Galileo连接到Mac
我正在尝试通过Galileo以太网端口连接Mac,该端口通过Mac上的thunderbolt以太网端口连接。我已上传Arduino草图以启动LAN连接:Macos 将Intel Galileo连接到Mac,macos,intel-galileo,Macos,Intel Galileo,我正在尝试通过Galileo以太网端口连接Mac,该端口通过Mac上的thunderbolt以太网端口连接。我已上传Arduino草图以启动LAN连接: #include <SPI.h> #include <Ethernet.h> // the media access control (ethernet hardware) address for the Galileo: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xE
#include <SPI.h>
#include <Ethernet.h>
// the media access control (ethernet hardware) address for the Galileo:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//the IP address for the Galileo:
byte ip[] = { 192, 168, 0, 2 };
void setup()
{
Serial.begin(9600);
Serial.println("Attempting to start Ethernet");
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
Serial.println("Attempting to configure Ethernet using Static IP");
Ethernet.begin(mac, ip);
}
Serial.print("Your IP address: ");
Serial.println(Ethernet.localIP());
}
void loop () {}
#包括
#包括
//Galileo的媒体访问控制(以太网硬件)地址:
字节mac[]={0xDE,0xAD,0xBE,0xEF,0xFE,0xED};
//Galileo的IP地址:
字节ip[]={192,168,0,2};
无效设置()
{
Serial.begin(9600);
Serial.println(“尝试启动以太网”);
if(以太网开始(mac)==0){
Serial.println(“未能使用DHCP配置以太网”);
Serial.println(“尝试使用静态IP配置以太网”);
以太网开始(mac,ip);
}
打印(“您的IP地址:”);
Serial.println(Ethernet.localIP());
}
void循环(){}
在我的网络设置中,我是否将thunderbolt ethernet设置为DHCP?还是手动输入ip地址?我的galileo的ip地址是什么,这样我就可以通过ssh连接到它