I can not get network on Cobra II with ENC28 module. First of all in the ENC28 documentation ( https://www.ghielectronics.com/catalog/product/333 ) does not write that it support Cobra II (I then found this thread: https://www.ghielectronics.com/community/forum/topic?id=10718 )
Then I try with several sources, but I can not get it to work. Same configuration (IP, DNS) works with spider, Cerberus.
net.EnableStaticIP(ShareConst.IP, ShareConst.SubnetMask, ShareConst.IPRouter); net.EnableStaticDns(ShareConst.DNS); net.Open();
private static readonly EthernetENC28J60 net = new EthernetENC28J60(Microsoft.SPOT.Hardware.SPI.SPI_module.SPI2, G120.P1_10, G120.P2_11, G120.P1_9); private static readonly EthernetENC28J60 net = new EthernetENC28J60(Microsoft.SPOT.Hardware.SPI.SPI_module.SPI2, G120.P1_17, G120.P2_21, G120.P1_14); private static readonly EthernetENC28J60 net = new EthernetENC28J60(SPI.SPI_module.SPI1, Cpu.Pin.GPIO_Pin1, Cpu.Pin.GPIO_Pin2, Cpu.Pin.GPIO_Pin3); private EthernetBuiltIn net = new EthernetBuiltIn();
Non of them work. I even try with adding ENC28 module to the Program.gadgeteer.
I try to find the answer on the following locations (without success):
In some cases the NetworkChange_NetworkAvailabilityChanged event is called and e.IsAvailable is true, but I can not get any html not even from local network (works with Spider, Cerberus).
If I copy requested URL to the Chrome the page opens (it only prints current time).
I connected ENC28 to the Socket 6 (The only one with S socket).
What is the correct configuration?