SlideShare a Scribd company logo
1
2
C/Embedded Base Camp
Individual Task: UDP Server Extension
Petro Shevchenko
November 2021
UDP Server Extension
● Due to the UDP server was implemented on the second practical lesson, there is no sense
to estimate this solution. Therefore, implement the UDP server extension instead
● Apply patch 0001-add-UDP-server-implementation.patch to the tcp_socket_client project to
add the UDP server implementation:
$ git apply 0001-add-UDP-server-implementation.patch
● Implement the UDP server extension, that creates one more UDP socket, receives commands
to read GPIO pins states of LEDs. Use select() and tips marked with TODO comments
● The UDP server extension must accept and execute the following command from the UDP
client :
○ read gpio<PORT> <PIN> : read GPIO status, where PORT=d PIN = 12, 13, 14, 15
○ Example: read gpiod 13
● The reply should be the following:
○ GPIOD.<PIN>=<STATE>, where PIN = 12, 13, 14, 15 STATE = 0 or 1
○ Example: GPIOD.15=1
UDP Server Extension (Cont.)
● LED pinout table:
○ LED3 GPIOD 13
○ LED4 GPIOD 12
○ LED5 GPIOD 14
○ LED6 GPIOD 15
● Use ncat utility as the first UDP client to manage LEDs :
● $ ncat -u <IP of the board> 5678
led6 off
OK
● Use ncat utility as the second UDP client to get statuses of LEDs:
$ ncat -u <IP of the board> 1234
read gpiod 15
GPIOD.15=0
● Use Wireshark, output through USB-UART to debug your application
● Provide a link to your solution

More Related Content

PPT
PPT
Unityfyfyufhufhhcfhfufhufhhufufhyrruruuf4-2.ppt
PPT
Chap 12 tcp
PPT
Chap 12 tcp
PPTX
Unit-III.pptx
PDF
Intro to Packet Analysis - pfSense Hangout May 2014
PPTX
2-GPGPU-Sim-Overview.pptx
PDF
GPGPU Accelerates PostgreSQL ~Unlock the power of multi-thousand cores~
Unityfyfyufhufhhcfhfufhufhhufufhyrruruuf4-2.ppt
Chap 12 tcp
Chap 12 tcp
Unit-III.pptx
Intro to Packet Analysis - pfSense Hangout May 2014
2-GPGPU-Sim-Overview.pptx
GPGPU Accelerates PostgreSQL ~Unlock the power of multi-thousand cores~

Similar to Individual task Networking (20)

PPT
User datagram protocol
PDF
Mikrotik Bridge Deep Dive
DOCX
CN4[1].docxwertyuiop[wertyuiop[]wkjhgfdfghjklkjh
PPT
Tonyfortunatoiperfquickstart 1212633021928769-8
PDF
Ctrl-C redesign for gcc cauldron in 2022 in prague
PDF
IBM/ASTRON DOME 64-bit Hot Water Cooled Microserver
DOC
Soal lks networking support 2013 SMK N 1 Binangun
PDF
Vlsi es-lab-manual
PPTX
How to tranfer files over router firewall
PPT
chapter 4
PDF
B34-B34Y-Chief-River-PlatformTACOMA-FALL2-Rev-1.2.pdf
PPTX
Interfacing two wire adc0831 to raspberry pi2 / Pi3
PPT
Chap 11 udp
PPT
PDF
0393 1 qs_emea_eng_print
PPT
29317254-Standard-Single-Purpose-Processors-Peripherals.ppt
PDF
MTCNA : Intro to RouterOS - Part 1
PDF
Computer network (16)
PDF
7106510338_TL-SG3428_IG_TPLINLTPLINK.pdf
User datagram protocol
Mikrotik Bridge Deep Dive
CN4[1].docxwertyuiop[wertyuiop[]wkjhgfdfghjklkjh
Tonyfortunatoiperfquickstart 1212633021928769-8
Ctrl-C redesign for gcc cauldron in 2022 in prague
IBM/ASTRON DOME 64-bit Hot Water Cooled Microserver
Soal lks networking support 2013 SMK N 1 Binangun
Vlsi es-lab-manual
How to tranfer files over router firewall
chapter 4
B34-B34Y-Chief-River-PlatformTACOMA-FALL2-Rev-1.2.pdf
Interfacing two wire adc0831 to raspberry pi2 / Pi3
Chap 11 udp
0393 1 qs_emea_eng_print
29317254-Standard-Single-Purpose-Processors-Peripherals.ppt
MTCNA : Intro to RouterOS - Part 1
Computer network (16)
7106510338_TL-SG3428_IG_TPLINLTPLINK.pdf
Ad

More from Roman Brovko (20)

PPTX
Networking essentials lect3
PPTX
Gl embedded starterkit_ethernet
PPTX
Networking essentials lect2
PPTX
Networking essentials lect1
PPTX
Bare metal training_07_spi_flash
PPTX
Bare metal training_06_I2C
PPTX
Glesk worshop
PPTX
Bare metal training_05_uart
PPTX
Bare metal training_04_adc_temp_sensor
PPTX
Bare metal training_03_timers_pwm
PPTX
Bare metal training_02_le_ds_and_buttons
PPTX
Bare metal training_01_hello_world
PPTX
Bare metal training_00_prerequisites
PPTX
C language lect_23_advanced
PPTX
C language lect_22_advanced
PPTX
C language lect_21_advanced
PPTX
подготовка рабочего окружения
PPTX
C language lect_20_advanced
PPTX
C language lect_19_basics
PPTX
C language lect_18_basics
Networking essentials lect3
Gl embedded starterkit_ethernet
Networking essentials lect2
Networking essentials lect1
Bare metal training_07_spi_flash
Bare metal training_06_I2C
Glesk worshop
Bare metal training_05_uart
Bare metal training_04_adc_temp_sensor
Bare metal training_03_timers_pwm
Bare metal training_02_le_ds_and_buttons
Bare metal training_01_hello_world
Bare metal training_00_prerequisites
C language lect_23_advanced
C language lect_22_advanced
C language lect_21_advanced
подготовка рабочего окружения
C language lect_20_advanced
C language lect_19_basics
C language lect_18_basics
Ad

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
master seminar digital applications in india
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Cell Structure & Organelles in detailed.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Institutional Correction lecture only . . .
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
VCE English Exam - Section C Student Revision Booklet
Sports Quiz easy sports quiz sports quiz
master seminar digital applications in india
Abdominal Access Techniques with Prof. Dr. R K Mishra
Cell Structure & Organelles in detailed.
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Institutional Correction lecture only . . .
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Microbial diseases, their pathogenesis and prophylaxis
TR - Agricultural Crops Production NC III.pdf
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf

Individual task Networking

  • 1. 1
  • 2. 2 C/Embedded Base Camp Individual Task: UDP Server Extension Petro Shevchenko November 2021
  • 3. UDP Server Extension ● Due to the UDP server was implemented on the second practical lesson, there is no sense to estimate this solution. Therefore, implement the UDP server extension instead ● Apply patch 0001-add-UDP-server-implementation.patch to the tcp_socket_client project to add the UDP server implementation: $ git apply 0001-add-UDP-server-implementation.patch ● Implement the UDP server extension, that creates one more UDP socket, receives commands to read GPIO pins states of LEDs. Use select() and tips marked with TODO comments ● The UDP server extension must accept and execute the following command from the UDP client : ○ read gpio<PORT> <PIN> : read GPIO status, where PORT=d PIN = 12, 13, 14, 15 ○ Example: read gpiod 13 ● The reply should be the following: ○ GPIOD.<PIN>=<STATE>, where PIN = 12, 13, 14, 15 STATE = 0 or 1 ○ Example: GPIOD.15=1
  • 4. UDP Server Extension (Cont.) ● LED pinout table: ○ LED3 GPIOD 13 ○ LED4 GPIOD 12 ○ LED5 GPIOD 14 ○ LED6 GPIOD 15 ● Use ncat utility as the first UDP client to manage LEDs : ● $ ncat -u <IP of the board> 5678 led6 off OK ● Use ncat utility as the second UDP client to get statuses of LEDs: $ ncat -u <IP of the board> 1234 read gpiod 15 GPIOD.15=0 ● Use Wireshark, output through USB-UART to debug your application ● Provide a link to your solution