• No results found

REAL TIME OPERATING SYSTEM PROGRAMMING-II: Real time Linux, Windows CE and OSEK

N/A
N/A
Protected

Academic year: 2021

Share "REAL TIME OPERATING SYSTEM PROGRAMMING-II: Real time Linux, Windows CE and OSEK"

Copied!
49
0
0

Loading.... (view fulltext now)

Full text

(1)

REAL TIME OPERATING SYSTEM

PROGRAMMING-II: Real time Linux,

Windows CE and OSEK

Lesson-3:

Windows Embedded Compact 13 and

Windows CE Programming Features

and Basics

(2)
(3)

Windows Embedded 8

Four versions are Windows 8

Embedded Standard, Pro, Industry and

Automotive

Windows 8 Embedded features small

footprint, rich touch- enabled

experiences, device management,

security and analysing functions

(4)

Windows Embedded Compact 2013

Supports rich touch-and gesture

enabled inputs, and Visual Studio 2012

and hard real-time support, small

footprint devices that require flexible

hardware, the use of touch- and

(5)

Windows Programming

• Window class an instance of which defines

a Window (object).

• Basic coordinates x and y, and z-parameter.

• z ─ specifies whether window is over and

below other windows

• Specification for visibility (show or hide or

no activate).

(6)

Windows procedures

• Share the attributes, for example,

Commandshow.

(7)

Windows Controls

Windows Controls─ functions of

command, menu, toolbar bars

(8)

Notifications to Windows

• Windows based application program

(API) is written to respond or activate

on changes from the current state on

pushing of notification (s) from the

OS.

• OS monitors all input sources (for

example, stylus tap, virtual (on touch

screen or physical key press).

(9)

Notifications to Windows

• A notification occurs on an event

• All notifications are sent to the

Windows

• A notification sends the message to a

API

• Messages are placed in queue for the

Windows APIs

(10)

Examples of OS Notifications to

Windows

• The OS notifies that a key has been

pressed or a button has been clicked or

command has been received for

redrawing the Windows screen.

• Differs from Unix, where it is other

way round. The application program

asks for the input(s) from the OS for a

character or commands or inputs from

the keyboard.

(11)

Windows Programming

Win32 APIs

Windows uses handle in many

procedures (functions)

Handle─ a reference to an interface,

for example for a Window, file or

thread or port. [ An interface is an

unimplemented procedure (function or

method) the codes for which are

(12)

Windows Handle

Handle example is INSTANCE of a

Window.

INSTANCE is an object, which is used as a

Handle

Handle is also used as a pointer, called

option pointer.

The option pointer is pointer which points

to a pointer of one of the several sets of the

codes, which run on selecting the option

(13)

Windows Handle Inheritance

Windows support (WCE does not)

Handle inheritance

Handle inheritance─ a Handle can be

extended to create a new Handle,

which inherits the variables, properties

and procedures of parent handle and

adds, overrides and overloads new

variables, properties and procedures

(14)

2. Windows CE and CE.NET

Programming

(15)

Windows CE

• An operating system for handheld

computers and mobile systems,

developed by Microsoft

• Microsoft perception─ compact,

connectable, compatible, companion,

and efficient

• Can also be perceived as Windows for

consumer electronics systems

(16)

Windows CE…

• Applications don’t limit to consumer

electronics systems

• One of the most popular OSes for the

handheld systems

• A Windows platform for the systems,

which have resource constraints of

power, memory, touch screen or

display screen size and processing

speeds

(17)

Windows CE.NET

Dot NET framework provides for

compiling the managed code

Managed code─ one that is compiled

in CIL (common Intermediate

Language)

CIL gives platform independent CPU

neutral compilation as the byte codes

(18)

Windows CE.NET…

A runtime environment converts the

byte code instructions into the native

machine and platform instruction

• Bytes code─ can run on different

platforms and be distributed.

(19)

Windows CE.NET…

• .NET at runtime verifies the executing

native environment, data source and

destination types, within range array

indices and other functionalities.

(20)
(21)

CE Main Features Similar to Windows

A Windows based application program is

written to respond or activate or changes

from the current state on pushing of

notification(s) from the OS.

A notification occurs on an event.

The notification sends the message to the

Windows application program.

Messages are placed in queue for the

(22)
(23)

Enables a user to feel, look and interact

with the system using GUIs (graphic

user interfaces) in a manner similar to a

PC running on Windows

Unicode 16-bit characters for

International characters and languages

Functionalities for hard real time

scheduling

(24)

Windows CE Threads

Support to 256 levels of thread

priorities

Provides for the adjustable time

quantum for the threads

Provides for the equal time slice for

the threads of equal priority

(25)

Use of ISRs and ISTs

ISTs (interrupt service threads) in

addition to ISRs.

ISTs─ are put in priority queue of

threads waiting for execution.

IST ─ the slow-level interrupt-service

thread of a fast-level ISR

(26)

Interrupt latencies

Low interrupt latencies for ISRs and

ISTs

(27)

Power Manager

Software to reduce the power

dissipation by reducing clock speed or

running Wait or Stop instruction or

optimizing use of caches or stopping

screen or reduced intensity displays

after limited wait for user input.

(28)

Virtual Memory

Virtual memory addresses allocated for

stored programs which may be of size

more than physical memory size.

(29)

File-based registry and

several file systems

Flash memory based file system

UDF 2.5 and exFAT file system

(30)

Shared source and source code access

Componentization─ two software layers.

One sublayer consists of Microsoft

developed source codes of WCE kernel and

is shared with the system or device

manufacturer. Then the manufacturer adds

the remaining part of the kernel according

to the system hardware.

The remaining part is the hardware

(31)

Kernel level objects modifications

Freedom to modify without sharing

(32)

4. Windows CE 6.0, Windows Mobile 6

and Automotive 5.0

(33)

For home as well as office systems

Cellular networks connectivity .

(34)
(35)
(36)
(37)

Processes and VM

Number of processes 2

16

up to lower 2

GB virtual memory addresses per

process

Upper 2GB kernel VM space

Supports device drivers running in user

mode and kernel mode both

(38)

Threads

256 levels of thread priorities

Adjustable time quantum for the

threads

Equal time slice for the threads of

equal priority

(39)

Windows CE Programming

Use of Win32 APIs subset only [for

example, no environment related

functions and environment blocks, no

current directory information at the

(40)

Windows CE Programming…

Support small screen system Windows

Support touch screen system Windows

Support no hard-disk, low RAM

memory and use of ROM and flash

memory in the system

Support System -processor─ x86 or

ARM or SuperH, or any other

Support Unicode 16-bit unsigned short

characters

(41)

Windows CE Windows controls

Reduced number of Windows

controls compared to personal

computer

New format Windows controls

(functions of command, menu,

toolbar bars provided in one line due

to small screen)

(42)

Windows CE Windows controls…

New controls (for example, date and

time picker controls, calendar picker

control, edit control to auto capitalize

first character of a word when keying

in and virtual keyboard) and a

(43)

Windows CE Programming

WCE device drivers imported as the

DLLs at runtime

WCE does not support Handle

inheritance and certain security

attributes.

(44)

Windows CE.NET Programming…

A runtime environment converts the

byte code instructions into the native

machine and platform instruction

• Bytes code─ can run on different

platforms and be distributed.

(45)
(46)

We learnt

Subset of Win32 APIs

• Windows based application program

(API) written to respond or activate on

changes from the current state on

pushing of notification (s) from the

OS.

• OS monitors all input sources (for

example, stylus tap, virtual (on touch

screen) or physical key press).

(47)

We learnt

WCE supports the ISRs which pass

the messages to ISTs, which run as

lower priority threads than the ISRs

and ISTs run as priority queue of

threads.

Windows uses handle in many

procedures (functions). WCE does

not support inheritance of Handles

(48)

We learnt

New Windows Controls

New format and reduced number of

Windows controls

No support to Handle Inheritance and

certain security attributes

Windows for Small screen , touch screen

system

No hard-disk, low RAM memory and use

(49)

End of Lesson-3 of chapter 12 on

Windows and

Windows CE

References

Related documents

ĞǀĞůŽƉŵĞŶƚŽĨĂŽŶĞ ͻ ĐŽŶĞ ĐĂŶ ďĞ ƌŝŐŚƚ ĐŽŶĞ ;ƚŚĂƚ ŵĂŬĞƐ ĂŶ ĂŶŐůĞ ϵϬŽ ǁŝƚŚ ƚŚĞ ŚŽƌŝnjŽŶƚĂůͿ Žƌ ŽďůŝƋƵĞ ;ƚŚĂƚ ŵĂŬĞƐ ĂŶ ĂŶŐůĞ ĚŝĨĨĞƌĞŶƚ ĨƌŽŵ ϵϬŽ ǁŝƚŚ

Each term, the Program Director and Advisor will work in coordination to insure that students complete the declaration of program and capstone proposal; to gather responses;

WebSphere Application Server Architecture Detailed View D.. Components of

The objective of this study was to map the peat bogs of the northern part of SdEM, to estimate the pool of organic matter and the volume of water stored therein.. MATERIAL AND

This document provides customers with a native Real-Time Linux OS solution by porting various key features from ECI-B to Ubuntu, including Preempt RT Linux, Xenomai Linux,

The configuration allows users to monitor, in real time, the operating statuses of system resources and processes on Windows, UNIX, and Linux servers, as well as the operating

New Features for Windows, Mac OS and Linux Operating Systems SMART Board software 9.7 includes many new features for Windows, Mac OS and Linux operating systems.. Expanded

Server+ (ITE II) will provide students with an introduction to UNIX/Linux and Windows 2000 OS (operating system) technologies. The course will focus on the two major OS