Main Site Documentation

Cerberus help (4.3 beta3 sdk)


#1

I can’t start network on Cerberus board with 2014 Beta3 SDK.
I face a problem changing MAC address with:


...
 if (usedDHCP == false)
            {
                Gadg_Eth1.NetworkSettings.PhysicalAddress = new byte[] { 0x00, 0xC0, 0x03, 0x00, 0xC1, 0x16 }; // MACADDR: 00-C0-03-00-C1-16
                Gadg_Eth1.NetworkSettings.EnableStaticIP(_boardIp, _boardNetmask, _boardGw);
                Gadg_Eth1.NetworkSettings.EnableStaticDns(new string[] { "192.168.20.1", "8.8.8.8" });
            }
...

The PhysicalAddress property is correctly set, but than TCP stack seems to crash and it doesn’t work anymore. The cerberus is not pingable anymore.
If I get rid of the code line (and setting MAC in FEZConfig) the network starts working fine.


#2

@ dobova -

Try set PhysicalAddress before you open the ENC28 interface!


#3

@ Dat - Thank you, but in this case I’m using Gadgeteer ENC28 class, and for some reason the interface is just open when I get in ProgramStarted(). I will check using [em]EthernetENC28J60 [/em]class instead of Gadgeteer module class.

I noted that Cerberus show same bug in networking as G120 : network socket work ONLY if VS starts program in debug.