2017-03-07 63 views
3

我是arduino的新手,我试图在arduino UNO和以太网盾(W5100)上使用IPv6。是否有任何arduino以太网盾或IPv6库?

我找到EtherSia IPv6(https://github.com/njh/EtherSia)库并运行MiniHTTPServer.ino草图。

串行监视器始终打印链接本地地址。我找不到设置全局地址的方法。

[EtherSia MiniHTTPServer] 
Failed to configure Ethernet 
Our link-local address is: fe80:0000:0000:0000:9cb3:19ff:fec7:1b10 
Our global address is: 0000:0000:0000:0000:0000:0000:0000:0000 
Ready. 

有关针对Arduino的IPv6以太网屏蔽或IPv6库的任何建议?

回答

1

EtherSia确实不支持DHCPv6,但它确实支持SLAAC - 无状态自动配置,它受到路由器的广泛支持和支持。

你有什么类型的路由器?

另一种方法是配置地址和路由器静态:

// Configure a static global address and router addresses 
ether.setGlobalAddress("2001:1234::5000"); 
if (ether.setRouter("fe80::f4c0:4ff:fefb:4186") == false) { 
    Serial.println("Failed to configure router address"); 
} 

这就是从这里开始的例子:

https://github.com/njh/EtherSia/blob/master/examples/MinimalStatic/MinimalStatic.ino

相关问题