User manual

GHI Electronics,LLC Embedded Master User Manual
Hardware and Software Library
DHCP (dynamic) IP and Static IP are supported by Embedded Master. If using dynamic IP,
Embedded Master will try to get one at power up. This can take several seconds to obtain
an IP address. Note that if Ethernet cable is not plugged in or the your network doesn't
support DHCP then this will fail in a longer time. At power up, the LCD shows if Embedded
Master is trying to obtain an IP address.
Important: the device has to be in TinyBooter before trying to change MAC/IP settings.
Reset the board and hold “up” and “down” buttons.
PIN# TFT# Name Description
33 43 ENET_RDM Ethernet receive Data minus
34 44 ENET_RDP Ethernet Receive Data plus
35 45 ENET_TDM Ethernet Transmit Data minus
36 46 ENET_TDP Ethernet Transmit Data plus
Example
// Get the host entry for a website
IPHostEntry hostEntry = Dns.GetHostEntry("www.ghielectronics.com");
// print IP addresses associated with it
foreach (IPAddress ipAddress in hostEntry.AddressList)
Debug.Print(ipAddress.ToString());
// Also, sockets work in a similar way to the PC. For example,
// byte[] data = Encoding.UTF8.GetBytes("123456789");
// socketObject.SendTo(data, endPoint); // Over UDP
Rev. 2.06 TFT Page 70 of 102 www.ghielectronics.com