CSE 520S
Real-Time Systems
- Prof. Chenyang Lu
Real-Time Systems Prof. Chenyang Lu TAs: Ruixuan Dai, Jiangnan Liu - - PowerPoint PPT Presentation
CSE 520S Real-Time Systems Prof. Chenyang Lu TAs: Ruixuan Dai, Jiangnan Liu Real-Time Systems Systems operating under timing constraints Safety-critical systems q Automobiles. q Airplanes. q Mars rovers. q Factory automation. q Air traffic
Ø Systems operating under timing constraints Ø Safety-critical systems
q Automobiles. q Airplanes. q Mars rovers. q Factory automation. q Air traffic control.
Ø Time-sensitive systems
q Game console, Google Stadia. q Stock trading.
Ø >95% of microprocessors are used for embedded systems.
2
3
4
brake sensor brake sensor brake sensor brake sensor ABS hydraulic pump
5
6
ECU A
Microcontroller 1
Core 1 Core 2
Microcontroller 2
Core 1 Core 2
ECU B
Microcontroller 1
Core 1 Core 2
Microcontroller 2
Core 1 Core 2
FlexRay Channel A FlexRay Channel B
Radar Radar Camera Radar Radar Camera Brake Controller Steering Controller Engine Controller Transmission Controller
CAN Bus #1 CAN Bus #2
Courtesy: GM
7
1/14/20 8 Source: http://www.edn.com/design/automotive/4399434/Multicore-and-virtualization-in-automotive-environments
9
Cyber-Physical Boundary
river, different ground motions on each end)
q Miniaturized devices: processor+sensors+radio, embedded OS. q Low-power wireless: connect millions of devices to the Internet. q Data analytics: make sense of sensor data. q Cloud and edge computing: scalable real-time data processing.
q Smart manufacturing, transportation, power grid, healthcare… q Closed-loop control requires real-time performance!
11
Experiences with an End-To-End Wireless Clinical Monitoring System, Conference on Wireless Health (WH'12), October 2012.
WirelessHART in Process Industries
[Courtesy: Emerson Process Management]
sensor data
Senso r Actuato r
control command
Controlle r
13
q Smart manufacturing, smart transportation, smart grid… q Feedback control demands real-time performance guarantees.
q Cloud collects data from cameras and roadside detectors. q Control the traffic signals and message signs in real-time. q Transportation information feed to drivers. q SCATS @ Sydney: controlling 3,400 signals at 1s round-trip latency.
q URL: https://youtu.be/CluvnRaVhqA
14
q Latency guarantees for tasks running in virtual machines (VMs). q Real-time performance isolation between
VMs.
q Resource sharing between real-time and non-real-time
VMs.
q RT
VM scheduling
q VATC à real-time network I/O on a virtualized host. q RT
15
VATC: RT Network I/O RT
Cyber-Physical Event Processing RT Cilk Plus
16
RT-Xen
Scheduling in Xen, ACM International Conference on Embedded Software (EMSOFT'14), October 2014.
17
q Playback 30 video frames per second
q Anti-lock brake must start within 10 ms after skidding starts
18
q Automobile: active safety features, autonomous driving q Air traffic control
q Video q Audio (“harder” than video) q Stock trading
19
q Based on Amazon Web Services (AWS)
20
q Cloud warm-up homework: 1% q Proposal and presentation: 10% q Demo 1: 5% q Demo 2: 5% q Final demo & report: 39%
21
q http://www.cs.wustl.edu/%7Elu/cse521s/critique.html
22
q Front end: smart watch, wristband, Raspberry Pi q Cloud backend: storage, analytics, Alexa, notification q Write a paper q Demo to the class
23
12/19/2019
T wo-way communication ecological momentary assessments Open, programmable platform
Wear OS, Research Kit,
Continuous, passive measurements
activity, heart rate, sleep, location…
Chenyang Lu 24
25
https://cse.wustl.edu/Pages/default.aspx
1/14/20 26
United: Connect + Communication Smart: Other Cloud Service Data Storage Machine Learning
Source: https://aws.amazon.com/iot-platform/
12/19/2019
Ø Watch app
q Remind participants to take the assessment q Automatically upload the data to the cloud for analysis q Analyze gait and motion features q Feedback to physicians and participants
Joint work with Matthew Spraker (Radiation Oncology), Ruixuan Dai (CSE)
Chenyang Lu 27
https://www.cse.wustl.edu/~lu/TUG.mp4
Ø Assess physical health and fall risk during prehabilitation.
q 20 participants undergoing neoadjuvant radiotherapy followed by surgery q Patients will complete TUG at home with the smartwatch for 90 days.
28
https://www.cse.wustl.edu/~lu/cse521s/Videos/medicine_dispenser.mp4
29
30
q Chenyang (Jolley 213) q Ruixuan Dai (Jolley 219A): Projects q Jiangnan Liu (Jolley 219A): Critiques
31