Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.

Slides:



Advertisements
Similar presentations
SE3910 Week 2, Class 2 Today Real-Time Systems Embedded Systems Other ??? Week 3 Tuesday Lab Lab start TBA SE-2811 Slide design: Dr. Mark L. Hornick Content:
Advertisements

CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
SE3910 Week 2, Class 1 Today Basic Circuits Other ??? Tomorrow Lab 2, S365 (Complete prelab BEFORE) Thursday See ScheduleSchedule SE-2811 Slide design:
SE-3910 Real-time Systems Week 3, Class 1 – Beaglebone Documentation (cont.) – Review/Basic Circuits (cont.) Switches & Pull-up resistors How to burn up.
SE-3910 Real-time Systems Week 7, Class 3 – Announcement – Estimating rates Uncompressed Video Size Compression Ratio Frame rate – the Stroboscope effect.
Today TBA Tomorrow Good Friday SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 5, Class 3.
CS2852 Week 2, Class 1 Today Generics (Section 051) Big-O runtime analysis Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See.
SE-3910 Real-time Systems Week 2, Class 2 – Return stuff, New HW Assignment! – Quiz! (Possibly with review) Ohm’s Law Kirkhoff’s Current Law Switches Using/reading.
SE3910 Week 1, Class 3 Today – Introductions Safety Review Policy The course Tomorrow Lab 1, S365 (Purchase Beaglebone black kit BEFORE) Thursday Class.
Today Quiz Multithreading Options Qt socket buffers between threads Quiz today & Tuesday in lab SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
SE-3910 Real-time Systems Week 5, Class 1 – Quick-Quiz (Ungraded) – Lab 4 turn-in up - due Tuesday, Week 5 – Select when to use Polling or Interrupts –
CS2910 Week 1, Class 2 Today Announce Prof. Michael Vieau’s S-341 6p Thurs Wk 2 Assignment for tomorrow Data Encoding, Part 1 Parsing Data Muddiest Point.
CS2910 Week 1, Class 1 Today Introductions Class/Lab Layout Safety Review - Note about Lab Safety Review Announce Prof. Michael Vieau’s S-341 6p Thurs.
SE3910 Week 1, Class 2 Today – Introductions Safety Review Policy The course Tomorrow Lab 1, S365 (Purchase Beaglebone black kit BEFORE) Thursday Class.
Today C/C++:.h/.cpp; compiling and linking Fourier Transform (corrected) Nyquist Theorem Audio sampling rates SE-2811 Slide design: Dr. Mark L. Hornick.
SE-3910 Real-time Systems Week 2, Class 3 – Return Quiz, Q’s on HW Assignment? – Signals – Audio! – Review/Basic Circuits Kirkhoff’s Current & Voltage.
SE-3910 Real-time Systems Week 5, Class 2 – Lab turn-in page is up! – Use interrupts in a Linux/C environment – Scheduling – Watchdog follow-up Watchdog.
CS2852 Week 3, Class 2 Today Stacks Queues SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
Today Nervous System Response Time SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 3, Class 2.
Today Return Quiz Class Climate Survey Review SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 10, Class.
SE-3910 Real-time Systems Week 1, Class 2 – Fine Print – Web page available – Review Quiz 0 – What is a Real-Time Embedded System? Embedded & Real-Time.
CS2852 Week 6, Class 1 Today The run-time stack Writing and proving recursive methods SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2852 Week 5, Class 2 Today Queue Applications Circular Queue Implementation Testing SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2852 Week 7, Class 1 Today Binary Search Tree Implementing add Implementing find Return Quiz 4 (second attempt) Both sections are graded SE-2811 Slide.
Today Return Quiz First release of final project template Multithreading Options Qt socket buffers between threads Tomorrow: Quiz Interthread communication.
Today Final Project “Preview” Real-time concurrency Multithreading Options pthreads qthreads GPIO.h & GPIO.cpp Quiz tomorrow & Tuesday in lab SE-2811 Slide.
CS2852 Week 6, Class 2 Today Class exercise: Implementing a recursive method Binary Search Trees Tomorrow: Quiz at start of lab Implementing a recursive.
Today Return Quiz First true release of final project (Lab 8) Multithreading Options Qt socket buffers between threads SE-2811 Slide design: Dr. Mark L.
Today Quiz not yet graded Final report requirements posted More on Multithreading Happens-Before in Java SE-2811 Slide design: Dr. Mark L. Hornick Content:
CS2852 Week 3, Class 2 Today Big-O runtime analysis Linked Lists Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See next slide)
Today Signals Nyquist Theorem (revisited) Audio Sampling Latency and Bandwidth Scheduling Theory SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
CE1901 Week 6, Class 3 Week 6 Mini-Exam Review Muddiest Point Timing Diagrams (See this slide and Outcomes on course webpage – link now available)Outcomes.
CS2852 Week 2, Class 2 Today Big-O runtime analysis Linked Lists Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See next slide)
Week 7, Class 1: The Command Pattern (cont.) Get Ready for Poll Everywhere Labs 2 & 3 returned Lab 7 due this evening at 11pm Quiz tomorrow at start of.
CS2910 Week 4, Class 2 Today Sit by someone you have not yet worked with this quarter. Learn his/her name if unknown. Turn on your laptop and start Wireshark.
Today (or Thursday) Qt Thursday Quiz SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Lab.
CS2910 Week 8, Class 2 Today Return Quiz Look at Schedule TCP implementation! Week 8, Monday Quiz on SMTP May include some questions requiring you to interpret.
Today Quiz not yet graded (Sorry!) More on Multithreading Happens-Before in Java Other langauges with Happens-Before Happens-Before in C++ SE-2811 Slide.
CS2910 Week 7, Class 1 Today Capturing SMTP with Thunderbird Tomorrow Extra office hour at 11 am (right after lab) Friday Office hour cancelled SE-2811.
SE3910 Week 6, Class 1 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Bring Calculator!! Qt GUI Design Analog and Digital Datarates.
CS2910 Week 6, Lab Today Dictionaries in Python SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
SE3910 Week 5, Class 3 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Analog and Digital Datarates SE-2811 Slide design: Dr.
SE3910 Week 4, Class 3 Notes on Lab 5 Code to write! Next week Monday Afternoon OH (after class) cancelled Ask questions before class if possible Week.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
SE3910 Week 1, Class 1 Today – Introductions The students (informally) The instructor Safety Review Policy The course Tomorrow (If you are in that section)
SE3910 Week 8, Class 3 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 9 Lab: Individual demos of working sub-modules.
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 10, Class 3 Loop jamming
Slide design: Dr. Mark L. Hornick
Polling vs. Interrupts CS2852 7/20/2018
Slide design: Dr. Mark L. Hornick
Polling vs. Interrupts CS2852 9/18/2018
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
Polling vs. Interrupts CS2852 4/9/2019
Slide design: Dr. Mark L. Hornick
Polling vs. Interrupts CS2852 4/21/2019
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
Presentation transcript:

Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response Network transmission SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 3, Class 3

Ex: What is the resistance of this resistor? 2

Ex: GPIO safety Considering the resistor on the previous slide, is it large enough to not damage a GPIO pin configured as output, if the resistor ties the output to 3.3V? Sourcing limit: 4mA Sinking limit: 8mA Voltage: 3.3 V SE-2811 Dr.Yoder 3

Real-time and Embedded (Review) Real-Time responding as rapidly as required by the user or the process being controlled. - Random House Dictionary (Abbrev.) Embedded System A combination of hardware & software to perform a specific function -Dr. Schilling’s slides Often real-time SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick 4

PC SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 5 Contains separate Microprocessor(s) Memory Peripheral (I/O) device HW serial port parallel port USB port Bluetooth port IR port AGP port WiFi port,…

Beaglebone SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 6

Expansion SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 7

 Our Favorites 8

A Cape SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 9

SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 10

Finding GPIO Port SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 11

The breadboard cape SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 12

SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 13 ITMQTYREFPARTDESCRIPTIONDISTRPART # 11 PCB2-LAYER 3.4" x 2.15" 22P1, P22x23 HDR FEDUAL - STRAIGHT SOCKET STRIP.025" SQ. PINSMLESSHQ-123-D-08-F-LF 31P38 PIN HDR FECONN HEADER FEMALE 8 POS 0.1" GOLDDKPPPC081LFBN-RC 42S1, S2BUTTONSSWITCH TACT SPST-NO.05A 24VDKB3F D1, D2LEDSLED GREEN 3MM 568NM 20mA 2.12VDKWP7104SGC 62R1, R2RESISTORRES 470 OHM 1/4W 5% CF MINIDKCFM14JT470R 71BR1BREADBOARDWHT ADHSV SLDRLSS BRDBRD 170 TIE PT 1.8" x 1.37"PLU JMPR WIRE KIT10 x 14 LNGTH.1".2".3".4".5".6".7".8".9" 1" 2" 3" 4" 5"SQR

Some Technical Goals How does one control the speed of a motor? How does one change the brightness of a light-bulb? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 14

Pulse-Width-Modulation … in traffic SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 15

Pulse-width modulation terminology SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 16 Determine the duty cycle (D) Multiply the duty cycle by the peak volta ge (V p )

In-class exercise How can you control the brightness of an LED, using tools we have discussed so far? How would you accomplish this if you went into lab right now? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 17

Advantages of Pulse-Width Modulation Can’t control brightness of LED (easily) Can use same hardware More power efficient Motors: Avoid stalling Easier to replicate Meet minimum voltage to turn on light SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 18

Muddiest Point Wait for the slides, or follow this link to answer both questions at once: SE-2811 Dr.Yoder 19

Muddiest Point Wait for the slides, or follow this link to answer both questions at once: SE-2811 Dr.Yoder 20

SE-2811 Dr. Josiah Yoder 21

SE-2811 Dr. Josiah Yoder 22

References EB: Derek Malloy, Exploring Beaglebone, Wiley, 2015 SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 23