Download presentation
Presentation is loading. Please wait.
Published byElmer Boone Modified over 8 years ago
1
AT91SAM7X256 Board and FreeRTOS Overview Real-Time Systems Lab Dae Don Jeon xpeedholic@ee.knu.ac.kr
2
내 용 AT91SAM7X256 Board Overview FreeRTOS Overview Gateway Middleware Network Initializing and Update
3
System Boundary
4
Hardware Block Diagram(AT91SAM7X256) USBEthernet UART
5
FreeRTOS Overview Main Features Choice of RTOS scheduling policy Pre-emptive : Always runs the highest available task. Tasks of identical priority share CPU time (fully pre-emptive with round robin time slicing). Cooperative : Context switches only occur if a task blocks, or explicitly calls taskYIELD(). Co-routines (light weight tasks that utilize very little RAM). Message queues Semaphores [ via macros ] Trace visualization ability (requires more RAM) Majority of source code common to all supported development tools Wide range of ports and examples
6
FreeRTOS Overview (cont’) Basic directory structure Demo : Contains the demo application. Source : Contains the real time kernel source code. ※ The Majority of the real time kernel code in three files that are common to every processor architecture.(tasks.c, queue.c list.c) (croutine.c if co-routines are used) Demo Common : The demo application files that are used by all the ports. Dir x : The demo application build files for port x Dir y : The demo application build files for port y Source Portable : Processor specific code.
7
FreeRTOS Overview (cont’) Demo Application Test FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/
8
Gateway Middleware Network Initializing
9
192.168.0.1 - - - … Start Standalone Network Starting #Gateway node-1 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 1
10
Gateway Middleware Network Initializing 192.168.0.1 - - - … Network Joining #Gateway node-2 [192.168.0.1] 192.168.0.1 ’ s Sync list tables - - - - … Join to 192.168.0.1 [192.168.0.2] 192.168.0.2 ’ s Sync list tables Join Request 12
11
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-2 [192.168.0.1] 192.168.0.1 ’ s Sync list tables - - - - … Join Accept [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12
12
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Sync Request [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 - - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables Join Response : Sync list tables 12
13
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Sync Request [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 - - … Sync Request to All Gateway node in Sync list table. (Except Parent and Local address) In this case, no target to sync. [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12
14
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 - - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 - - - - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 2 OR 1 Join Request Join to 192.168.0.2
15
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 155.230.15.28 - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 - - - - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 Join Accept
16
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 155.230.15.28 - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 192.168.0.1 192.168.0.2 155.230.15.28 - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 Join Response : Sync list tables
17
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 155.230.15.28 - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 192.168.0.1 192.168.0.2 155.230.15.28 - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 Sync Request to All Gateway node in Sync list table. (Except Parent and Local address) In this case, Except parent Gateway(192.168.0.2), local(155.230.15.28) Sync target is 192.168.0.1
18
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 - - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 155.230.15.28 - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 192.168.0.1 192.168.0.2 155.230.15.28 - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 Update Request : Sync list tables
19
Gateway Middleware Network Initializing 192.168.0.1 192.168.0.2 155.230.15.28 - … Network Joining #Gateway node-3 [192.168.0.1] 192.168.0.1 ’ s Sync list tables 192.168.0.1 192.168.0.2 155.230.15.28 - … [192.168.0.2] 192.168.0.2 ’ s Sync list tables 12 192.168.0.1 192.168.0.2 155.230.15.28 - … [155.230.15.28] 155.230.15.28 ’ s Sync list tables 3 Initializing Complete.
20
Further works FreeRTOS Ethernet and UART application Test. ZigBee Coordinator Node Application Test.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.