Main Site Documentation

Rhino DHCP


#1

I just got the Rhino and have it working with the Rhino Demo Solution.
I am updating the display just fine.
But, it gives an error when trying to do the

Dhcp.EnableDhcp(mac);

call.

I plugged it into a linksys router and right into my brighthouse cable modem. Neither one worked.
I download GHI NETMF 4.1.5.1 from website but still fails.

Any thoughts?
Thanks


#2

You are using w5100 dll and namespace, right?
What error?


#3

The thread ‘’ (0x2) has exited with code 0 (0x0).
#### Exception System.Exception - 0x00000000 (1) ####
#### Message: Dhcp Client Timeout
#### GHIElectronics.NETMF.Net.NetworkInformation.Dhcp::GetDhcpLease [IP: 00aa] ####
#### GHIElectronics.NETMF.Net.NetworkInformation.Dhcp::EnableDhcp [IP: 002e] ####
#### FEZ_Rhino_Demo.Program::Main [IP: 00a1] ####
A first chance exception of type ‘System.Exception’ occurred in GHIElectronics.NETMF.W5100.Dhcp.dll

Thanks


#4

Are you using a valid MAC address?
Are you sure about your DHCP server?


#5

the rhino demo:

        byte[] mac = { 43, 185, 44, 2, 206, 120 };
        WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.IO38, (Cpu.Pin)FEZ_Pin.Digital.IO67, true); // WIZnet interface on FEZ Connect

which returns fine.

when Dhcp.EnableDhcp(mac) is called, it gives the error i showed previously.

Its a brighthouse cable modem that I use to get to internet so the DHCP should be fine.
I tried a different mac address just to see if it made a difference and it did not work either.
Jim


#6

The mac address you are using might not be OK. You can find many websites that generate OK mac addresses.

Try this one for now:

byte[] mac = { 0x00, 0x26, 0x1C, 0x7B, 0x29,0xE8 };

Where did you copy paste that mac address from anyway?


#7

the mac i showed was in the rhino demo i downloaded today.

failed with following message:
The thread ‘’ (0x2) has exited with code 0 (0x0).
#### Exception System.Exception - 0x00000000 (1) ####
#### Message: Dhcp Client Timeout
#### GHIElectronics.NETMF.Net.NetworkInformation.Dhcp::GetDhcpLease [IP: 00aa] ####
#### GHIElectronics.NETMF.Net.NetworkInformation.Dhcp::EnableDhcp [IP: 002e] ####
#### FEZ_Rhino_Demo.Program::Main [IP: 00a1] ####
A first chance exception of type ‘System.Exception’ occurred in GHIElectronics.NETMF.W5100.Dhcp.dll

Thanks


#8

Maybe there is problem with Ethernet. Have you tried static IP?


#9

HalSystemInfo.halVersion:
HalSystemInfo.halVendorInfo:
HalSystemInfo.oemCode: 0
HalSystemInfo.modelCode: 0
HalSystemInfo.skuCode: 0
HalSystemInfo.moduleSerialNumber:
HalSystemInfo.systemSerialNumber:
ClrInfo.clrVersion: 4.1.2821.0
ClrInfo.clrVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
ClrInfo.targetFrameworkVersion: 4.1.2821.0
SolutionReleaseInfo.solutionVersion: 4.1.5.0
SolutionReleaseInfo.solutionVendorInfo: GHI Electronics, LLC
SoftwareVersion.BuildDate: Mar 14 2011
SoftwareVersion.CompilerVersion: 410561
FloatingPoint: True
SourceLevelDebugging: True
ThreadCreateEx: True
LCD.Width: 0
LCD.Height: 0
LCD.BitsPerPixel: 0
AppDomains: True
ExceptionFilters: True
IncrementalDeployment: True
SoftReboot: True
Profiling: False
ProfilingAllocations: False
ProfilingCalls: False
IsUnknown: False


#10

Latest GHI SDK is 4.1.6.0. The listings is showing 4.1.5.0.

Install the lastest SDK and firmware, and try again.


#11

Do you have a sample sln file for rhino with static ip that you know works?
Then I could just see if it runs.
Also, do you know when I can get a sln for rhino for SD.
When I try to add :
using GHIElectronics.NETMF.IO;
to my project as a reference my debugger stops working. Darndest thing!
even though i just got this unit today, maybe i need to reflash it to the very latest.
Thanks
Jim


#12

ok, i will reburn it all tomorrow.
How do i get to the buttons on the rhino to reboot/flash etc? do i have to take screws out and open case?
is there a diagram that shows it all?
Thanks for all your help!
Jim


#13

At the bottom of the Reply form is a list of four items to read before submitting a question. Look at #1.

This might not be the solution, but it is always best to be at the latest release of firmware.


#14

I can not help you with the Rhino/case. I do not have one of those. I think I have everything else. ::slight_smile:


#15

GHI is trying to push a smart solution on Visual Studio level to help with mistake #1. The more people vote the better:

http://www.tinyclr.com/forum/1/3988/


#16

Did you try the mac address I mentioned earlier?

byte[] mac = { 0x00, 0x26, 0x1C, 0x7B, 0x29,0xE8 };

#17

…but lets not forget the fact that there are mixed firmware and SDK versions at play.

It is critically important that these are in sync. Check the release notes file (c:\program files\GHI Electronics\GHI NETMF v4.1 SDK\Release Notes.rtf) to verify the firmware version you should have. Then check the board has that firmware version. Then make sure you either remove all references to GHI components and re-add them, or start a new project and add code to that.


#18

Just an update:
I flashed to 4.1.6 on rhino and plugged into linksys router and DHCP worked fine.
Thanks


#19

Great ! 8)