QNX Training Modules

header-teaser, header-teaser-item-box-color-dark
QNX Training Modules

Customize Your QNX Training Experience

Design your own course by selecting from over 30 modules. Training is available at the QNX University in Ottawa, Canada, or can be delivered at your location.

1
1
Module Name
--clr-nb-sand
start
middle
1
1
Module Description
--clr-nb-sand
start
middle
1
1
Prerequisites
--clr-nb-sand
start
middle
1
1
Duration
--clr-nb-sand
start
middle
1
1
A Few Important QNX Concepts
--clr-b-light
start
middle
1
1
Gives a light overview of the QNX OS architecture including basic features such as message passing, microkernel services, scheduling, roles and responsibilities of the process manager and resource managers.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
0.5 hours
--clr-b-light
start
middle
1
1
Adaptive Partitioning Scheduler
(QNX SDP 7.x only)
--clr-b-light
start
middle
1
1
Learn how to use the QNX® Adaptive Partitioning Scheduler, or APS, to group threads and/or processes into partitions according to their CPU requirements and/or to protect them from CPU starvation. APS is useful for safety and/or hypervisor related products or any product where partitioning the CPU may be needed. We will discuss the architecture of APS, how to add APS to an image, define and understand partitions, critical priorities and bankruptcy. There are hands-on exercises to explore administering APS from both the command line and with the APS API.
--clr-b-light
start
middle
1
1
QNX® OS Architecture, Building a Boot Image
--clr-b-light
start
middle
1
1
3.5 hours
--clr-b-light
start
middle
1
1
Application Profiling
--clr-b-light
start
middle
1
1
Learn how to use the application profiler in the QNX® Momentics® Tool Suite to profile a single process. Using the profiler, you can pinpoint which parts of your code are consuming the most CPU, at both the function level and the source-line level. You can then use that information to make your code more efficient. Both live and post-mortem profiling are covered.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
start
middle
1
1
1 hour
--clr-b-light
start
middle
1
1
Building a QNX Boot/OS Image
--clr-b-light
start
middle
1
1
A detailed look at building boot images, which contain the binaries that run just after the reset vector. Boot images typically include components such as startup code, the process manager, the kernel, drivers, and a startup script. We also explore various ways to load a boot image onto your target.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
start
middle
1
1
1 hour
--clr-b-light
start
middle
1
1
Code Coverage
--clr-b-light
start
middle
1
1
Determining the effectiveness of a test suite takes work. In this section, we'll see the IDE tools determining how much of your code has actually been executed, broken down to the source line, by your testing.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
start
middle
1
1
1 hour
--clr-b-light
start
middle
1
1
Comparing QNX IPC Methods
--clr-b-light
start
middle
1
1
A quick look at the relative advantages and disadvantages of the various IPC methods supported by QNX with a view to choosing which method(s) to use in your system.
--clr-b-light
start
middle
1
1
Inter-Process Communication
--clr-b-light
start
middle
1
1
0.5 hour
--clr-b-light
start
middle
1
1
Debugging Memory Problems
--clr-b-light
start
middle
1
1
Memory problems, such as memory corruption, can often be subtle and uncaught by testing. In this section, we explore the powerful Momentics IDE tools for finding memory corruption, leaks, and excessive memory consumption.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
Developing with the QNX Toolkit for VS Code
--clr-b-light
start
middle
1
1
This section provides a quick introduction to editing, compiling, running, and debugging your application from the Visual Studio Code with the QNX Toolkit extension, giving the minimum needed to do the programming exercises in the programming sections.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
Editing and Compiling
--clr-b-light
start
middle
1
1
This section will focus on the code editor in the Momentics IDE, including the many powerful, time-saving features. In addition, we look at how to build code and how the IDE identifies problems with the build.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
center
middle
1
1
1.5 hours
--clr-b-light
start
middle
1
1
File System Resource Managers
--clr-b-light
start
middle
1
1
A discussion on how to write file system resource managers, which are processes that represent data in the form of files or file systems. You will learn to write a resource manager that presents a tar file as a file system.
--clr-b-light
start
middle
1
1
Writing a Resource Manager
--clr-b-light
start
middle
1
1
3.5 hours
--clr-b-light
start
middle
1
1
Further Topics for Resource Managers
--clr-b-light
start
middle
1
1
Explores the various ways to return from handlers, manage access and modification times, leave clients blocked, use multi-threaded resource managers, implement combine messages, perform unblock handling, receive pulses, and make poll() (or select()) and ionotify() work. Resource manager concepts are reinforced through a variety of hands-on exercises.
--clr-b-light
start
middle
1
1
Processes, Threads and Synchronization, Introduction to Resource Managers or Writing a Resource Manager
--clr-b-light
start
middle
1
1
6 hours
--clr-b-light
start
middle
1
1
High Availability
--clr-b-light
start
middle
1
1
We start with how QNX architecture lends itself to high availability, then look at how to design applications that take advantage of that architecture. Next, we explore the high availability toolkit in detail, starting with how to use the high availability manager for doing process restart and multistage restart. We then cover the client recovery library, also included in the toolkit, which helps clients to restore broken connections.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
3.5 hours
--clr-b-light
start
middle
1
1
IDE Basics
--clr-b-light
start
middle
1
1
Focusing on Eclipse fundamentals, this section provides necessary background for anyone working with the IDE in the QNX® Momentics® Tool Suite. Starting with the central concepts of the IDE, you‘ll become adept at navigation in the IDE and configuring it to suit your personal needs and likes. We then talk about projects, workspaces and the host-target model, introducing various ways to interface to your target. We end with pointing out several preference settings that can make your work easier.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
Inter-Process Communication
--clr-b-light
start
middle
1
1
Explores the various methods that the QNX OS provides for allowing two or more processes to exchange information and control. We focus on the QNX message passing that is fundamental to how the QNX OS works, but also examine pulses and shared memory.
--clr-b-light
start
middle
1
1
Processes, Threads and Synchronization
--clr-b-light
start
middle
1
1
9 hours
--clr-b-light
start
middle
1
1
Interrupts
--clr-b-light
start
middle
1
1
Explores how the QNX OS makes it relatively easy to handle hardware interrupts. We present several approaches to handling interrupts.
--clr-b-light
start
middle
1
1
Inter-Process Communication (recommended)
--clr-b-light
start
middle
1
1
2.5 hours
--clr-b-light
start
middle
1
1
Introduction to Hardware Programming
--clr-b-light
start
middle
1
1
An introduction to hardware access methods including IO-mapped and memory-mapped IO, allocating DMA-safe memory, and interrupt handling.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
1.5 hours
--clr-b-light
start
middle
1
1
Introduction to Security Policies
(QNX SDP 8.x only)
--clr-b-light
start
middle
1
1
A short introduction to the use of security policies in securing a QNX system.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
0.5 hours
--clr-b-light
start
middle
1
1
Introduction to Resource Managers
--clr-b-light
start
middle
1
1
Any process can be a resource manager, and drivers usually are. This section looks at the capabilities of resource managers, including pathname-space resolution, IPC message formats, and general structure. Through a set of exercises we‘ll look at the initialization of a simple resource manager and the handling of read() and write() operations.
--clr-b-light
start
middle
1
1
Inter-Process Communication
--clr-b-light
start
middle
1
1
3 hours
--clr-b-light
start
middle
1
1
I/O
--clr-b-light
start
middle
1
1
Covers in detail the I/O aspects of a driver, including how to do port I/O and memory-mapped I/O, how to perform DMA memory configuration, and how to use the PCI API.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
1.5 hours
--clr-b-light
start
middle
1
1
I/O Exercises
--clr-b-light
start
middle
1
1

A collection of challenging exercises that are a must for anyone learning to write device drivers. The exercises used depend on the hardware available. You can choose from:

  • VGA Text Mode driver exercise (2.5 hours) You‘ll write an I/O manager that does read()s from, write()s to, and devctl()s for changing the configuration of VGA text mode memory.
  • Keyboard driver exercise (1.5 hours) You will write a simple driver that handles x86 keyboard input.
--clr-b-light
start
middle
1
1
I/O, Introduction to Resource Managers or Writing a Resource Manager
--clr-b-light
start
middle
1
1
1.5 to 4 hours (depends on depth of exercises, to be agreed with instructor)
--clr-b-light
start
middle
1
1
Managing C/C++ Projects
(QNX SDP 7.x only)
--clr-b-light
start
middle
1
1
The basic container for code in the IDE is a project. We cover the two types of projects for C/C++ code: a project where the entire contents and build structure are up to you, and a project with a predefined structure that supports multiple platforms. We cover both header file and project dependencies and discuss how to get code from elsewhere and place it into your projects.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
Migrating from QNX 7 to QNX 8
--clr-b-light
start
middle
1
1
This section will examine the changes between QNX Neutrino 7.x RTOS and QNX 8.0 OS. We will look at the core design changes to the QNX Neutrino microkernel including multi-threading the kernel, and the changes to time and interrupt handling, and what this means for the developer. We will also examine application programming and system integration level changes, and discuss ways of maintaining common code. Several hands-on porting exercises are included.
--clr-b-light
start
middle
1
1
Real-Time Programming for QNX OS course
--clr-b-light
start
middle
1
1
4 hours
--clr-b-light
start
middle
1
1
Momentics Development Basics (formerly named Compiling and Debugging in QNX SDP 7.x)
--clr-b-light
start
middle
1
1
This section provides a quick introduction to editing, compiling, running, and debugging your application from the QNX Momentics IDE, giving the minimum needed to do the programming exercises in the programming sections.
Note: This module is a light replacement for the Editing and Compiling and Running and Debugging modules. If you take one of those modules, it isn‘t necessary to take this one.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
More on Threads and Synchronization
--clr-b-light
start
middle
1
1
Covers additional issues for anyone who wants to know a lot about threads, including reader/writer locks, once control, and thread local storage.
--clr-b-light
start
middle
1
1
Processes, Threads and Synchronization
--clr-b-light
start
middle
1
1
1.5 hours
--clr-b-light
start
middle
1
1
Multicore Processing
(QNX SDP 7.x only)
--clr-b-light
start
middle
1
1
Discusses how to configure your application for Multicore, how scheduling works, where ISRs run, and processor affinity. Also examines how to perform synchronization among threads and between threads and ISRs.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
1 hour
--clr-b-light
start
middle
1
1
POSIX IPC in QNX
--clr-b-light
start
middle
1
1
QNX supplies a rich set of POSIX IPC methods. This section looks at signals, shared memory, pipes, POSIX message queues, and TCP/IP.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
2 hours
--clr-b-light
start
middle
1
1
Processes, Threads and Synchronization
--clr-b-light
start
middle
1
1
Unlike many common legacy RTOSs, the QNX OS executes programs in separate, memory protected, processes. This section touches on how a system design problem can be broken down into separate processes, and how processes are started and terminated. In addition, in this section we‘ll discuss what a thread is, how to start and stop a thread, and how to synchronize resource access via QNX OS and POSIX function calls. Several hands-on lab exercises form a significant component of this section.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
4 hours
--clr-b-light
start
middle
1
1
QNX® Hypervisor Overview
--clr-b-light
start
middle
1
1
An overview of the QNX Hypervisor and of how your applications make use of it. We cover the types of devices available to your guest OSes, where your guests run, their virtual CPUs, privileges and priorities. We then touch on how guests communicate with each other and/or with the QNX Hypervisor host, and how they can share devices. Next, we introduce how time and interrupts work. Thick and thin designs are then compared, and we finish with safety issues and an overview of the QNX Hypervisor for Safety.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
5.5 hours
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
Gives an overview of the QNX OS architecture, covering what the microkernel and the process manager do. We talk about standards, protected address spaces, process/thread model, timing, and scheduling. We also introduce various types of IPC, synchronization, what a resource manager is and where shared objects fit in.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
4.5 hours
--clr-b-light
start
middle
1
1
QNX OS Programming Basics
--clr-b-light
start
middle
1
1
A review of basic programming topics for the QNX OS, such as threads, mutexes, message passing, pulses, and timing. This module provides a refresher course to students familiar with QNX programming and offers a good background for other course material. Note: You shouldn’t select this module if you‘re taking other modules that cover the same topics in more detail.
--clr-b-light
start
middle
1
1
None
--clr-b-light
start
middle
1
1
3 hours
--clr-b-light
start
middle
1
1
QNX Security
--clr-b-light
start
middle
1
1
We discuss a variety of security topics for the QNX OS, starting with the basics of a microkernel architecture and Unix file permissions. We look at how QNX breaks down root abilities using procmgr abilities, discovering needed abilities, and using security policy to specify these. We delve into specific security features of the QNX OS, including Pathspace Control. And we look at various new optional subsystems such as hashed and encrypted filesystems, and Pathtrust. Several hands-on exercises are included.
--clr-b-light
start
middle
1
1
QNX OS Architecture
--clr-b-light
start
middle
1
1
8 hours
--clr-b-light
start
middle
1
1
Running and Debugging
--clr-b-light
start
middle
1
1
A look at launching programs with either "run" or from the debugger. We explain the fundamental debugging features, including stepping through code; setting breakpoints; performing post-mortem debugging; attaching to a running process; debugging shared libraries; and examining data.
--clr-b-light
start
middle
1
1
IDE Basics or Momentics Development Basics
--clr-b-light
start
middle
1
1
2.5 hours
--clr-b-light
start
middle
1
1
System Profiling
--clr-b-light
start
middle
1
1
With system profiling, you can examine your system as a whole to see what‘s going on. Detail is available down to the kernel level. We start by covering what is happening on the kernel side and how to do the necessary setup. Next, we look at how to log the activity through the QNX Momentics IDE, from the command line, or under program control. Then, we look at how to use the IDE‘s system profiling perspective to analyze the resulting data. We finish off with how to insert your own data into logs.
--clr-b-light
start
middle
1
1
QNX Neutrino OS Architecture,
Inter-Process Communication,
A Few Important QNX Concepts
--clr-b-light
start
middle
1
1
3.5 to 6 hours (depends on depth of exercises, to be agreed with instructor)
--clr-b-light
start
middle
1
1
Time
--clr-b-light
start
middle
1
1
An explanation of how to meet deterministic timing requirements. We discuss timing architecture and how to handle periodic timing, one-shot timing, time-stamping, benchmarking, and timeouts.
--clr-b-light
start
middle
1
1
Inter-Process Communication (recommended)
--clr-b-light
start
middle
1
1
3 hours
--clr-b-light
start
middle
1
1
Writing a character (e.g. serial) driver
--clr-b-light
start
middle
1
1
We‘ll look at using the QNX io-char library to write a driver for character devices such as serial chipsets that support the RS-232 protocol.
--clr-b-light
start
middle
1
1
Introduction to Resource Managers
--clr-b-light
start
middle
1
1
1 hour
--clr-b-light
start
middle
1
1
Writing a Resource Manager
--clr-b-light
start
middle
1
1
A look at the capabilities of resource managers, including pathname-space resolution, IPC message formats, and general structure. We provide several exercises, from a very simple resource manager that implements /dev/null to more complex examples that support multiple devices. This module is a superset of Introduction to Resource Managers, and both modules should not be selected together.
--clr-b-light
start
middle
1
1
QNX OS Architecture, Inter-Process Communication
--clr-b-light
start
middle
1
1
7 hours
--clr-b-light
start
middle