MDK-ARM Keil, MDK-ARM Datasheet - Page 103
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 103 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
103
User Datagram Protocol (UDP)
Communication
In this first example, we will
connect two boards together
through an Ethernet crossover
cable. The boards will
communicate by sending packets
of data as UDP frames.
The Sockets API is a standard part of the RL-TCPnet library, so we can use our
first example PING project as a starting point. Then we just need the UDP
protocol to be enabled. UDP is a half-duplex bi-directional protocol. This means
that we can establish a single connection between two IP addresses and two
ports. We can then send and receive data packets between the two stations over
this single channel.
socket_udp = udp_get_socket (0, UDP_OPT_SEND_CS|UDP_OPT_CHK_CS,
udp_callback);
First we must call udp_get_socket(). We pass the type of service to this function.
This is not widely used, so we enter the default value zero. We can also opt to
generate and check the UDP packet checksum. Next, we pass the address of a
callback function, which will be called if a packet is received. Once called, this
function will return a handle to a free socket.
udp_open (socket_udp, 1001);
Once we have a free socket, we can open a UDP port for communication.
U8 *sendbuf;
When the port is open, we can send and receive UDP packets. To send a packet,
we must first acquire a UDP packet data frame. To do this we call the
udp_get_buf() function and pass the size of the data packet that we want to send.
This can be up to the maximum Ethernet frame size of 1500 bytes. This function
then returns a pointer to the data packet buffer. Next, we use this pointer to write
our application data into the UDP packet.
udp_send (socket_udp, Rem_IP, 1001, sendbuf, SENDLEN);
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: