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 to convert cc2531 dongle into coordinator?

Other Parts Discussed in Thread: CC2531, CC2530, Z-STACK, TIMAC, CC2531EMK

hi all,i m doing a final year project...i using a cc2530 chips  program with generic app as a end device.For cc2531 ,i using the sample program cc2531 rf _modem program so i want to know how to configure the cc2531 usb dongle into coordinator and recieve data frm my end device ?teach how to edit the program...as i m a amuter...plz help mi

thank

  • Hi,

     

    The same GenericApp used for your EndDevice can be used for coordinator too.

    When you editing your GenericApp, in Workspace window, you simply have to

    open scroll down menu with currently denoted "EndDeviceEB" and select the

    "CoordinatorEB". Compile it and there you go.

    At this point, if you not interested in USB functionality of the Dongle, you have to

    make no changes in the project, well, you probably must change several things

    for your application.

    Hope this helps.

  • But i need to use CC2531 Usb Dongle...this is what my superviser want...

    is there any way to use GenericApp in cc2531 Usb dongle ?And how to edit the program?

    thank

  • Hi,

     

    So, what I understand is that you (actually your boss) want your USB dongle to be used as 

    a gateway?

    Please refer to this thread, read it carefully and refer to other threads specified in there, at the

    end you should be able to make the changes necessary for GenereicApp that supports USB

    functionality.

  • hi,

    actually My boss want Usb dongle tobe used as a coordinator...By the way,i cant see any thread that u have put on..

     

    thank

  • my boss ask mi to compare the generic app program and rf moderm program...

    can u teach me how to write the program of rf modem for usb dongle and make it able to detect the end device?plz

    how to edit the pan id,dest address and source address in rf modem program?

    i need to do quickly...

    thank

  • Hi,

     

    First of all, excuse me, I forgot to add link to thread I was talking about, my bad, here it is.

     

    You didn't mention it, but I'll be basing my answer assuming that SerialApp is one of the

    examples distributed along with Z-stack.

    Regarding the rf_modem and the generic app, one of the examples in Z-stack is the

    SerialApp, which is a "rf_modem" on top of Z-stack. 

    SerialApp can be found in your "Z-stack installation folder\Projects\zstack\Utilities\"

    For more info about this application please refer to "Z-Stack Sample Applications.pdf"

    document, section 3. This document can be found in your Z-stack installation folder\

    documents.

    You can make some changes to this project and add to it USB functionality, so the USB

    dongle will be used as a coordinator and also will be communicating through USB with

    a PC (UART emulation with CDC class). The changes to be made described in the above

    mentioned thread.

    On the other end you can use an out-of-the-box serialApp for the End Device, connect it to a

    PC with serial cable. 

     

    In case you will be working with serialApp, coordinator will be using NWK address = 0x0000

    and end device's NWK address will be assigned (randomly) by the coordinator.

    You can also easily change the PANID and channel, once you open the serialApp, in the

    project tree find "Tools", expand it and then open and edit "f8wconfig.cfg", choose desired

    channel and/or PANID (or leave it untouched).

  • hi,

    will it applies the same to generic app?

    generic app can add USB functionality? if can,can u teeeach mi how to add?

    coz i don wish to use rf-modem program ,it is so confusing

    btw i alread written de generic app program for my end device and it is working

    so i hope can use or edit cc2530 generic app program to do for cc2531 usb dongle as a coordinator ...

    ty

     

  • Hi,

     

    Of course you can edit the GenericApp to be used with cc2531 USB dongle.

    In abstract, you have to replace all the HAL modules and includes with those

    in HAL USB, just read the thread I was referring you to (Daniel's an mine posts).

    I really can not make it more clear than it already is.

    Also, in the above mentioned thread I had attached two screenshots of the project

    tree (to be more specific, the HAL part) as a zip file. Please take a look at those

    images so you'll have something to compare with and it the rest is pretty

    straight forward.

     

  • i get a error when downloading:

    Error[e46]: Undefined external "macPib" referred in mac_beacon ( D:\BodySensorTag_13092011\Projects\zstack\Libraries\TIMAC\bin\TIMAC-CC2530.lib 
    Error[e46]: Undefined external "MAC_MlmeSetReq::?relay" referred in mac_beacon ( D:\BodySensorTag_13092011\Projects\zstack\Libraries\TIMAC\
    bin\TIMAC-CC2530.lib )
    Error[e46]: Undefined external "macPibReset::?relay" referred in mac_beacon ( D:\BodySensorTag_13092011\Projects\zstack\Libraries\TIMAC\bin\
    TIMAC-CC2530.lib )
    Error[e46]: Undefined external "ReadVdd::?relay" referred in GenericApp ( D:\BodySensorTag_13092011\Projects\zstack\Samples\GenericApp\
    CC2530USB\CoordinatorUSB\Obj\GenericApp.r51 )
    Error[e46]: Undefined external "osalMcuDivide31By16To16" referred in OSAL_Clock ( D:\BodySensorTag_13092011\Projects\zstack\Samples\
    GenericApp\CC2530USB\CoordinatorUSB\Obj\OSAL_Clock.r51 )
    Error[e46]: Undefined external "MAC_MlmeGetReq::?relay" referred in zmac ( D:\BodySensorTag_13092011\Projects\zstack\Samples\GenericApp\
    CC2530USB\CoordinatorUSB\Obj\zmac.r51 )
    Error while running Linker

     

    so what should i do next?

     

    plz help !!!..

    thank

  • Hi,

     

    Can you post a file tree of the project of yours.

    As I can see it, in MAC->High level-> there is no "mac_pib.c" and "mac_pib.h"  source files,

    or you have some sort of older version of these files.

    Also please check if you see "OSAL_Math.s51" file under the OSAL root?

  • btw thank for ur help...my superviser instrusted mi with other thing to do....No longer do de wireless...

    erm...

    do u knw how to write  a program for gyroscope?the gyroscope is L3G4200D(MEMS motion sensor:
    ultra-stable three-axis digital output gyroscope)

    if you wan to see de schematic of the gyroscope,u can see it from my profile list

    plz help

    thank sir

  • Hi,

     

    What you do mean by saying "know how to write a program"?

    Several things are missing in order to answer properly on your question:

    1. This program should be for specific controller, or what?
    2. What is the preferable interface, SPI or I2C?
    3. What is the language (I assume it's embedded "C") and the debugger?
  • sorry abt that...

    basically,i using de generic app to write for gyroscope

    as for interface ,i not that sure u see the above schematic

    language should be C program..

    so plz teach mi =P thank

  • I also am attempting to create a Coordinator USB app and have read through all the threads (and threads reffered to within threads) on subject.  I ran into the same file errors described above.  I thought to post for complicity and those who may find this thread in the future. 

    I downloaded the CC2530USB.zip and unzipped into the GeneriApp directory of Z-stack 2.5.0. The  errors occured while linking "CoordinatorUSB."  Found the above files (mac_pib.c and OSAL_Math.s51) along with Binding Table.c were missing from the project.  Once I added these the project compiled and linked fine.  I'm still waiting on some CC2531EMK dongles from TI to test with.  The original thread  (e2e.ti.com/support/low_power_rf/f/158/p/36068/128864.aspx#128864) built the project under Z-stack 2.3 so perhaps this is why some files were missing from the project.  Thanks for the info, hope this helps.