Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 08:46AM |
Registered: 10 years ago Posts: 66 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 09:04AM |
Registered: 10 years ago Posts: 2,472 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 11:14AM |
Registered: 10 years ago Posts: 14,682 |
/** MAC address definition. The MAC address must be unique on the network. */ #define ETHERNET_CONF_ETHADDR0 0xBE #define ETHERNET_CONF_ETHADDR1 0xEF #define ETHERNET_CONF_ETHADDR2 0xDE #define ETHERNET_CONF_ETHADDR3 0xAD #define ETHERNET_CONF_ETHADDR4 0xFE #define ETHERNET_CONF_ETHADDR5 0xED
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 11:33AM |
Registered: 10 years ago Posts: 2,472 |
Quote
dc42
Dave, I think your suspicions are correct. When I was delving around the firmware a couple of weeks ago, I found a MAC address hard-coded in the firmware:
/** MAC address definition. The MAC address must be unique on the network. */ #define ETHERNET_CONF_ETHADDR0 0xBE #define ETHERNET_CONF_ETHADDR1 0xEF #define ETHERNET_CONF_ETHADDR2 0xDE #define ETHERNET_CONF_ETHADDR3 0xAD #define ETHERNET_CONF_ETHADDR4 0xFE #define ETHERNET_CONF_ETHADDR5 0xED
To control both of them, they need to have different MAC addresses. So if there isn't a hardware MAC address on the board, then I guess we need to make the MAC address configurable in config.g.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 01:23PM |
Registered: 10 years ago Posts: 64 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 01:34PM |
Registered: 10 years ago Posts: 14,682 |
Quote
michaelljunggren
Maybe you could just create a hash with the IP as a part.Quote
dc42
To control both of them, they need to have different MAC addresses. So if there isn't a hardware MAC address on the board, then I guess we need to make the MAC address configurable in config.g.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 01:48PM |
Registered: 10 years ago Posts: 2,472 |
Quote
michaelljunggren
Maybe you could just create a hash with the IP as a part.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 02:00PM |
Registered: 10 years ago Posts: 14,682 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 05, 2014 09:58PM |
Registered: 10 years ago Posts: 66 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 05:32AM |
Registered: 13 years ago Posts: 1,611 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 07:46AM |
Registered: 10 years ago Posts: 2,472 |
Quote
droftarts
@sevenljy: It's hard coded in the firmware, so it will need a fix to the firmware to work - there isn't a config file you can change. I suggest as a workaround you run only one machine over ethernet, and run the other on USB (you can actually run both on USB with no problem).
I have also raised an issue with this on the official firmware page issue tracker: [github.com]
Ian
RepRapPro tech support
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 08:56AM |
Registered: 10 years ago Posts: 378 |
Quote
dmould
you could try using a WiFi to Ethernet dongle in one Ormerod and connect the other via copper, which will work for some (but not all) typical home broadband routers.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 10:07AM |
Registered: 10 years ago Posts: 2,472 |
Quote
jstck
Quote
dmould
you could try using a WiFi to Ethernet dongle in one Ormerod and connect the other via copper, which will work for some (but not all) typical home broadband routers.
All typical home broadband routers I've seen put the wireless and wired networks on the same subnet (same IP range and same layer 2 domain), so it won't make any difference
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 12:03PM |
Registered: 10 years ago Posts: 378 |
Quote
dmould
Ah - but look at your ARP table after connecting from a wired PC to 2 or more WiFi devices off the router. If your router is acting as a simple bridge between wired and wireless sections, then the MAC addresses of the WiFi devices will appear in your ARP table and the method I suggest will not work.
Quote
dmould
LAN devices usually have an entry for subnet and gateway and use those to determine where to direct each packet - but in fact it could just as well be done by the router to make the IP stack simpler in the end device. The end device would then treat every IP address as if it were on the local network and the router would respond to ARPs for IP addresses that it is routing, and the end device would not know the difference - and that is essentially what I have seen some WiFi routers do. It is a lot simpler than using ICMP redirect packets or other mechanisms when there is more than one gateway on a local network.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 04:21PM |
Registered: 10 years ago Posts: 2,472 |
Quote
jstck
I guess the Duet board just doesn't have a properly assigned MAC address? I've fiddled with some other Arduino ethernet interfaces, and a couple of them came with a sticker with the MAC address you had been granted by the network gods, but you then had to configure it yourself for the device (and the rest just didn't have one). Does the Duet have some other form of serial number or something that can be machine-read and used?
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 06, 2014 05:40PM |
Registered: 10 years ago Posts: 378 |
Quote
dmould
I suggest the existing 0xBE, 0xEF followed by the IP address would be as good a method of deriving a MAC address as any other, and pretty much guaranteed to be unique on any subnet.
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 07, 2014 08:47AM |
Registered: 10 years ago Posts: 2,472 |
Quote
jstck
Well, for starters, if you have more than one gateway on an access network (one with client devices such as laptops, smartphones and 3d printers) you're almost always doing something really weird (I have, and it was).
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 09, 2014 02:54AM |
Registered: 10 years ago Posts: 14,682 |
Re: Question:two ormerod-prints can't be controlled by computer at the same time May 09, 2014 04:55AM |
Registered: 10 years ago Posts: 66 |