HI,
I am trying to connect to a Fez Connect Shield + Fez Domino and not having much luck
(I had a project with this working years ago and tried the old code by no luck)
Here is the code:
const Int32 c_port = 80;
byte[] ip = { 192, 168, 1, 199};
byte[] subnet = { 255, 255, 255, 0 };
byte[] gateway = { 192, 168, 1, 1 };
byte[] mac = { 0x54, 0x6F, 0x60, 0x61, 0x73, 0x7A };
WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10, (Cpu.Pin)FEZ_Pin.Digital.Di7, true);
NetworkInterface.EnableStaticIP(ip, subnet, gateway, mac);
NetworkInterface.EnableStaticDns(new byte[] { 192, 168, 1, 1 });
Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint localEndPoint = new IPEndPoint(new IPAddress(ip), c_port);
server.Bind(localEndPoint);
server.Listen(1);
Debug.Print(server.LocalEndPoint.ToString());
while (true)
{
// Wait for a client to connect.
Socket clientSocket = server.Accept();
The local server IP print as : 0.0.0.0:0
JMP1 is soldered on the shield
I’ve tried 2 shields (both v1.5) and both behave the same
Domino is v1.1
My managed switch, see the MAC address i’ve entered
The leds are all working on the shield
I get the same behaviour whether the shield is plugged in or not!!
Hi,
I tried many different MACs now, none seem to make a difference. Does matter what it is? I’ve tried random, I even tried the one when i worked years ago
My gateway is 192.168.1.1
trying with an external power source would be a smart option. From memory, the WIZ chips had decent power draw requirements so relying on the USB for that to work would not be a good idea
Hey guys,
Thanks for helping out. I know these devices are very old…
So… some good news and ‘I’m still confused’ news.
Good: I tried something different this morning. I swapped the Domino with a Panda II board and it worked straight away. No issues at all.
‘Confused’: But the annoying thing is a still have a couple of domino board (not Panda II’s) which I wanted to finish a project with and use the shields with.
Surely, swapping proves that it is the Domino board which is misbehaving?
If so, is the only possible difference the firmware? (As i think both boards use the same chipset?)
My next thought was to see the firmware version on the boards. I loaded the ‘USBIzi Updater’, and tried the steps. ie. Press and hold, LDR, Press and release Reset, then release LDR
But the app just keep response with ‘No response from device’ when I then try and do a ‘ping’ or ‘get firmware version’