802.15.4를 이해하기위해서 반드시 이해를 해야하는 프리미티브 개념이다.


802.2-1998 표준문서를 참조하면 좀더 자세히 알수가 있다.


보통 통신프로토콜은 계층화되어 하위나 상위계층에서 어떤 정보의 흐름을 만들거나 전달하기위해서는 서비스함수를 거치게 된다. 특히, 오늘 이야기하려는 지그비의 경우 서비스함수(프리미티브)를 Request, Confirm, Indication, Response 4가지를 가진다.


이들 4가지 서비스는 프로토콜 계층화의 설명에 딱 어울리는 형태로 하위에서 상위로, 상위에서 하위로 일련의 동작을 하도록 명령을 하거나 지시받는 서비스로 아래의 그림에 나타나 있다. (수식으로 넣어서 엉망이다..)




어쨌든 위의 그림을 통해서 우리는 Request, Confirm은 하위에서 - 상위 레이어로, Indication, Response는 상위에서 하위레이어로 동작한다는것을 알수가 있다. 각 프리미티브들은 Layer SAP (Service Access Point)를 통해서 전달되며 특정 레이어에서 요구되는 정보나 파라미터를 전달하거나 제공한다는 개념으로 설명될 수 있다. 

(즉, 주거니 받거니의 의미로 분류할수 있다)


프리미티브는 4가지의 형태로 기술할수있다.


1) Request : 서비스 사용자가 상위 레이어에게 특정 기능호출을 요구함


2) Indication :  호출된 서비스에 대해서 상위 레이어는 이를 지시로 받아들인다


3) Response : 지시받은 서비스 (indication)의 완료를 알리는 응답이다


4) Confirm : 처음 서비스 사용자가 호출한 기능이 모두 완료되었음을 확인한다.


I sincerely promise that this paper would be used for purely academic purposes only and not for any commercial applications. this copyright belong to original author.  - from blog owner.


for beginning design of ZigBee system using MC1321X series in FreeScale, first you have to read the  technologies paper below :


각각의 기술문서들은 아래에 정리될것이고, 여기엔 각 문서에대한 간단한 요약을 기술한다.

지극히 개인적으로, 앞으로 진행할 지그비 연구관련에 있어서 후에 참고용으로 보기위해서 작성할 예정이다. 


프리스케일은 반도체 전문업체로써 주로  마이크로컨트롤러, 무선플랫폼, 메모리 등의 제품을 취급하며, 

이번 프로젝트에서 사용할 Zigbee 개발 및 평가 kit인 MC1321X를 공부하기 위해서 관심을 가지게 되었다.


최종목표는 BeeKit software를 통한 Zigbee MAC layer customized 이며, 이를 통하여 현재 연구중인 논문의

Implementation part를 진행할 것이다. 


http://www.freescale.co.kr/





1. Document Number: 13213EVKUG    "13213 Evaluation Kits User’s Guide"


this paper includes 13213 Kits Board Overview, Evaluation Kit Demonstration Application and Solution Development.

보드의 구성과 하드웨어 스펙, 그리고 구성품에 대한 대략적인 소개, 구현 어플리케이션 소개, 솔루션개발에 대한 정보를 제공한다.


13213 Evaluation Kits_User_Guide.pdf



1) Hardware Design and Layout

Before users begin their hardware design and layout, Freescale provides and recommends reading the documents shown in Hardware Design and Layout Recommended Reading. These documents contain reference design information and hardware design guidelines. In addition, a complete reference design package can be provided upon request.


몇종류의 MCU를 써본 결과 MCU는 결국 다 똑같다. 후에  아래의 Datasheet만 보고 사용할 기능이 포함된 Part만 검색하자. 기능적인 어플리케이션만 구현하고, H/W를 새로 디자인 할것이 아니라면 굳이 상세히 보지 않아도 된다. 



2) Software Applications Development

When building applications for the MC13213 transceiver, Freescale recommends using the CodeWarrior Software Development Tools. A trial version is shipped with the BeeKit CD. In addition, Freescale provides and recommends reading the documents shown in Software Applications Recommended Reading. Most notably, Freescale recommends reading the documentation that describes the Embedded Bootloader implementation and the Non-volatile Memory (NVM) area used for storing information in the application.


각 레퍼런스 메뉴얼은 MCU를 사용하기 위한 실질적인 레지스터사용법과 펑션사용에 대한 정보가 들어있다.


3) 802.15.4 Specific Applications

Freescale provides and recommends reading the documents shown in 802.15.4 Specific Applications

Recommended Reading. This documentation helps guide users through development of an application that

sits on top of the 802.15.4 MAC.


802154MSNUG,802154MWAUG 은 802.15.4 MAC application을 사용하기 위한 기초적인 데모와 코드에 대한 대략적인 설명을 포함하는 문서이다. 


4) ZigBee Applications

For development of ZigBee applications, refer to the appropriate Freescale BeeStack documentation.





2. Document Number: MC1321xEVKRM    "MC1321x Evaluation Kit (EVK) Reference Manual" 


MC1321xEVKRM.pdf



앞전 문서의 내용을 좀더 자세하게 설명한 paper이다.

문서의 구성은 아래와 같다.


Chapter 1 Safety Information — This chapter describes the safety guidelines for the MC1321xEVK.

Chapter 2 System Overview — This chapter introduces the basic components, functionality, and power supply options of the MC1321xEVK boards.

Chapter 3 RF Front End — This chapter provides a description of the external analog circuitry required to ensure proper MC1321x operation.

Chapter 4 MC1321xEVK Interfaces and Board Layout — This chapter briefly describes the available interfaces between the EVBs and a personal computer (PC) and provides schematics and component and board layout information.


주로 하드웨어 스펙에 대한 내용이 주된 내용이다.




3. Document Number: CWS-H08-QS     "CodeWarrior™ Development Studio for Freescale™ HC(S)08/RS08 Microcontrollers Quick Start" 



CWS-H08-QS.pdf



프리스케일사의 제품에 주입하는 프로그램 작성 프로그램이다. 코드워리어이며 프리웨어 버전이 존재한다. 하지만 30일 제한이 걸려있기 때문에 인스톨/제거를 반복해야하는 단점이 있다. 옛날의 코드길이 제한성의 프리웨어는 이제 보이지 않는다.

문서의 내용구성은 아래와 같다. 차근차근 코드워리어로 간단한 프로젝트 생성에서 부터 프로그램 주입까지 알려주는 튜토리얼이다.


Section A: Installing CodeWarrior Software

Section B: Creating And Building A Project

Section C: Debugging Your Application

Appendix A: Registering and Obtaining License Key for  Standard Edition or Professional Edition

Appendix B: Manually Installing License Key




4. Document Number: ZAUG     "Freescale ZigBee™ Application User’s Guide"



Freescale ZigBee™ Application.pdf



말그래도 지그비 어플리케이션에 대해서 소개하는 문서이다. 2가지형태의 Beekit 기본적인 examples 를 다룬다.

 1) HALighting solution

 2) Wireless UART solution 

                              의 데모 프로젝트의 설정과 실행에 대해서 간략히 설명한다. 문서의 구성은 아래와 같다.


Chapter 1 Introduction – introduces the Freescale implementation of ZigBee wireless sensor networks.

Chapter 2 Freescale Development Boards – provides detailed installation and device configuration information using the Freescale BeeKit Wireless Connectivity Toolkit tools.

Chapter 3 BeeKit and CodeWarrior – provides a simple home lighting control network to introduce users to simple ZigBee applications.  : 1) 어플리케이션

Chapter 4 Starting and Running a Simple ZigBee Network – provides a quick tutorial to form a Zig-Bee network using code built and loaded into two development boards in previous chapters.

Chapter 5 Creating a Wireless UART Application - shows how to create a Freescale Wireless UART application using the Freescale BeeKit Wireless Connectivity Toolkit.   :2) 어플리케이션

Chapter 6 Example Applications – provides several examples to allow users to configure and run ZigBee wireless home control applications.




5. Document Number: BKWCTKUG      "BeeKit Wireless Connectivity Toolkit User’s Guide"



BeeKit Wireless Connectivity Toolkit User’ Guide.pdf



This document is intended for ZigBee, 802.15.4 and custom software and application developers.

Beekit는 802.15.4 MAC을 Customized 할수있는 소프트웨어이다.그리고 this paper 는 Beekit를 위한 유저 가이드이다.

자세히 천천히 읽어서 모두 숙지하도록 하자. 매우 유용하다.

문서의 구성은 아래를 따른다.

Actually, The Freescale divide the type of ZigBee MAC layer protocl as the common MAC(802.15.4 ), SMAC, BeeStack(which consist of ZigBee 2006/2007/RF4CE).

If you want to make the Zigbee network, you first consider what you will use about MAC. 


Chapter 1 Introduction — This chapter provides an introduction to BeeKit features and guides users through creating a Solution and a adding a Project.

>Beekit 인스톨후 c:\program Files\Freescale\Drivers 의 P&E Diver를 설치해야 된다. -순서 주의.

>Beekit software의 메뉴와 디스플레이 창의 역할과 기능에 대해서 설명한다.

>Creating a Project - Star Network Demo 를 만들어봄으로 설명한다.

Chapter 2 File Menu — This chapter describes how to create a new project, open, save, and close solutions, and select a Codebase.

>코드의 Export와 Import에 대해서 다룸 (코드워리어로 MAC을 넘기는 방법)

>Removing / Creating Solution (Codebase)의 방법에 대해서 설명

Chapter 3 Solution Menu — This chapter explains how to Export a Solution, import and export properties, validate and upgrade solutions, add and import projects and adjust properties.

Chapter 4 Project Menu — This chapter details how to validate a project, add and remove software components and remove a project.


즉, 이 문서는 기본적인 Beekit software의 사용법을 위한 Manual이다. Menu는 크게 File, Solution, Project로 나누어 지며 각 2~4 챕터들은 메뉴에 대한 기능들을 기술했다. 




아래는 Beekit에서 제공하는 전체 기술문서에 대한 구조도를 보여준다.

Beekit 실행시 오른쪽 하단 Document 메뉴에 존재하며, 이들 paper들은 매우 유용하다. 



굳이 읽어야 할 문서들에 대한 순서를 매기자면,

위에서 1.~ 5.에 따라 차례대로 기술한 문서들을 읽고나서, 

위 구조도의 Beekit Documentation의 Beekit Quick Start' Guide / User's Guide 를 읽어라.

그리고 802.15.4 Documentation의 3가지 문서들을(802154MPSRM/ 802154MSNAUG/ 802154MWAUG) 읽으면 

기본적으로 CodeWarrior IDE사용법과 Beekit 사용법과 Freescale사에서 제공하는 MAC software 중에 802.15.4 MAC에 대한 설정/사용법/동작원리/응용 에 대한 감이 잡힌다. 


이제 다음 포스팅부터는 802.15.4 Documentation 문서에 대한 내용을 정리하겠다.


*전제 : MCU사용에 대한 기본적인 방법은 안다는 가정하에 이부분에 대해선 따로 기술하지 않았음.*






'Nobody tells you about.. > FreeScale_MC1321X' 카테고리의 다른 글

[Notation] Concept of Primitives  (0) 2014.06.24

+ Recent posts