This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Create a network with CC243x

Other Parts Discussed in Thread: Z-STACK

Hello,

 

I would like to create a network with sensors, so for the moment I juste want send data (from the temperature sensor for exemple, then from the ADC) between a coodinator and a router or end device and see the result with IAR. I want to do this with the application "Location" or "generic" . I am newbie in Zigbee and C language and I don't know where I can begin...

Maybe it's an error of reasoning but I think there are two ways :

- I have to use the registers in the datasheet and configuring the RADIO registers and DMA controller maybe...(FIFO......)

- I have to use the functions present  in the applications or create another functions...

 

I think that I have to use the second but what have I to configure? If I have to write C code, in which file (application, zmain,...?

What are the steps to follow?

Thank you for your help.

Samuel

 

 

  • Hi,

    have a look at "documents" directory in the z-stack installation path. There you can find some information. Hope it helps.

  • Hello,

    Thank you for your answer.

    Yes I already read these documents but I didn't find anywhere everything who explains how to integrate its own program. There isn't example who shows how developing its own application, or I didn't see him.

    - If I just want to transmit a data, what can I do? Is the adjustment  in the ZMain.c ? or in another application that I have to create?

    - Have I to use the DMA  controller? or just write my data in the FIFO?

    I'm totally new in Zigbee Development, I understood how does Zigbee works in theory but I don't know how I have to begin for the development of my application.

    Thank you

     

     

     

     

  • Your very best place to start is to get the development hardware and software and dig into GenericApp that's delivered with the ZigBee Stack download. Reading the documents will only get you so far.

     

    Scott

  • For the creation of my application, I have to create this?

    - zcl_<appname>.h which should contain the definitions needed for the application

    - zcl_<appname>_data.c which should contain the data definitions and declarations needed for the

    application

    •-

    zcl_<appname>.c which should contain all the functions and callback functions needed for the application

    -•

    OSAL_<AppName>.c where all the tasks needed for the application should be added to the task list

    or this?

    1.2 OSAL Tasks

    1.2.1 Initialization

    OSAL is designed and distributed as source so that the entire OSAL functionality may be modified by the Z-Stack

    user. The goal of the design is that it should not be necessary to modify OSAL in order to use the Z-Stack as

    distributed. The one exception is that the OSAL Task initialization function, osalAddTasks (), must be

    implemented by the user. The sample applications have implemented said function in a dedicated file named

    something like this: OSAL_”Application Name”.c (e.g. OSAL_GenericApp.c). The BSP will invoke

    osalAddTasks() as part of the board power-up and Z-Stack initialization process.

    1.2.2 Organization

    As described in the Z-Stack OSAL API (F8W-2003-0002) document, the OSAL implements a cooperative, roundrobin

    task servicing loop. Each major sub-system of the Z-Stack runs as an OSAL Task. The user must create at

    least one OSAL Task in which their application will run. This is accomplished in the implementation of the

    osalAddTasks()

    function. The sample applications clearly show how the user must add an invocation to

    osalTaskAdd()

    for at least one user task after all of the Z-Stack tasks.

    Sorry for these questions but it's complicated...

    Thank you