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.

How can i make this custom application?

Other Parts Discussed in Thread: CC2431, CC2430, Z-STACK

Hi, i'm trying to make  a custom application that sends messages from a pc by serial port to a coordinator and i have to send this message to an specific end point node, and then this node have to display this message througt its ports. and i also have to implement the location profile.

i'm very new at this so:

1) what application do you recomend me to use as base: genericapp, simpleapp, serialapp, another?

2) what are these lines on gennericapp means: "This applications doesn't have a profile, so it handles everything directly - itself." ?

3) i'm only using CC2431EM modules so what should i modify from these applications since they are made to use cc2430EB?  or to what pins of the CC2431EM should i connect external switches to simulate the EB ones?

i was reading the zstack docs but i get confused with some of these things so i would really apreciate your help. thanks

 

  • The good news is the migration to the CC2431 should be straightforward considering it is a superset of the CC2430 and the two devices are pin compatible.

    jorge said:

    Hi, i'm trying to make  a custom application that sends messages from a pc by serial port to a coordinator and i have to send this message to an specific end point node, and then this node have to display this message througt its ports. and i also have to implement the location profile.

    i'm very new at this so:

    1) what application do you recomend me to use as base: genericapp, simpleapp, serialapp, another?


    Based on your stated requirements, it seems to me the SerialApp is the application to start from.

    jorge said:

    2) what are these lines on gennericapp means: "This applications doesn't have a profile, so it handles everything directly - itself." ?


    The profile is something that would be provided by the ZigBee Alliance.  As these are example applications, they do not adhere to any specific, official ZigBee Alliance profile.

    jorge said:

    3) i'm only using CC2431EM modules so what should i modify from these applications since they are made to use cc2430EB?  or to what pins of the CC2431EM should i connect external switches to simulate the EB ones?


    As I mentioned, the CC2431 and CC2430 are pin compatible.  Therefore, it should be straightforward to use the CC2431.

    However, just so that I understand your question, are you comparing CC2431EM to CC2430EM boards?

  • thanks for your answer

    1) So if i use the serialapp as base what part of the code should i modify?

    2) How can i add the location profile to serialapp?

    3) No, i know that CC2431EM and CC2430EM are pin compatible. but the example applications use sw1-sw4 or LCD of the CC2430DB(Development Board) so what changes do i need to make in order to use the EM(Evaluation Module) or to what pins should i connect external switches to simulate it?

  • jorge said:

    1) So if i use the serialapp as base what part of the code should i modify?


    With these examples, your application functionality is running in the context of the ZigBee stack as a task which is called by the ZigBee stack when it is not managing the RF portion.
    Meaning, the ZigBee stack calls your functions, not the other way around.
    Given this, you need to communicate, or hook, you functions into the function list that is passed to the ZigBee stack.  This is done in the OSAL_SerialApp.c file.  You will find a structure of function pointers which is processed by the ZigBee stack and an initialization function,
    osalInitTasks() to get things setup.  This can get you started.

    jorge said:

    2) How can i add the location profile to serialapp?


    The Location sample application illustrates how to integrate the Z-Stack Location Profile into a sample application.  I would suggest reviewing that project and make modifications to your own application in the same fashion.  Use it as a guide.
    ZStack-1.4.3-1.2.1\Projects\zstack\Samples\Location

    jorge said:

    3) No, i know that CC2431EM and CC2430EM are pin compatible. but the example applications use sw1-sw4 or LCD of the CC2430DB(Development Board) so what changes do i need to make in order to use the EM(Evaluation Module) or to what pins should i connect external switches to simulate it?


    If you don't need that functionality, I would suggest pruning it.