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.

zstack cc2530

Other Parts Discussed in Thread: CC2530, Z-STACK

hi;

im doing a small project using TI cc2530.my project needs transfer of data(say few bytes) from ZED to ZC without binding or match description.i.e whenever ZED comes into the range of ZC data should me transmitted from ZED to ZC within a fraction of second automatically and a different data should be transmitted from ZC to ZED.since time of staying in the network maybe very less binding and match description is not possible for data transmission.so what changes should i make in the zstack of generic_app sample project to achieve the above mentioned. broadcasting method might help me do something i guess. ur help would let me finish my project on time.

i would be immensely pleased if someone help me out.

thanx;

pruthvi srinivas.

  • Hi,

    The recognition of a potential nearby parent (coordinator, or router) by the end device

    can take some time (~4 seconds). Once new parent detected and ZED joined to this

    parent, the data transfer can be initiated (data transfer itself will take less then a second).

    The problematic thing here is to detect "whenever ZED comes into the range of ZC".

  • are you serious??? broadcasting method i.e sending data packets ota(over the air) periodically with no destination address wouldn't help to reduce the time???

    there got to be some way to resolve this i guess..i hav seen lot of projects using zigbee on moving vehicles...if that is so how can their projects be successful...

    i'm worried now..

    someone can help me????

    thanx

  • Hi,

    Please, don't panic...

    You can set your ZED to broadcast, let's say, every 100mSec,

    but in order to receive a message from coordinator you must

    turn on ZED's receiver, which draws power, a lot of power.

    For unicast messages ZED must have parent. Joining, or rejoning

    process takes some time, therefore you must take several things

    into consideration:

    1. Power consumption of ZED
    2. Handshaking protocol (how ZED detects it's a parent)
    3. How much information to be transmitted in a single event
  • so what al changes do i need to  make in my ZED to send broadcast msg periodically in genericApp sample projct without match description or binding.

    i tried different ways to send msg to ZC ,i hav only succeeded aftr binding both devices.precisely wenever i switch on my ZED it should broadcast msg continuously and ZC should take the msg.

    regarding your points, leave power consumption as of now,i don't have much knowledge of protocol,info to be transmitted is around 25 bytes.

    please help me complete my project.

    Dirty harry..i need ur help too.

    thanx

    ps.

  • Hey,

    You seems kinnda desperate.

    For a future reference I recommend you to read "Z-Stack Sample Applications.pdf" and "Z-Stack Developer's Guide.pdf"

    Anyhow, attached is a slightly modified generic application .c and .h files.

    Compile it for Coordinator, set a breakpoint somewhere inside GenericApp_MessageMSGCB(),

    then debug it (Ctrl+d, F5). Open another IAR EW, compile the same project for End Device and start

    debugging.

    In the modified program, once End device joins a network, it starts a timer which invokes

    GENERICAPP_SEND_MSG_EVT every 1Sec (later you can change it to 100mSec if you want to).

    This event will call to GenericApp_SendTheMessage(), which broadcasts a packet (length=1)

    to nearby ZRs/ZC.

    Several visual checkpoints were added to the code, to help you "visually" understand what's going on.

    Once message received on Coordinator side, the breakpoint should be triggered, however, if you let the coordinator

    program to run without breaks, it should generate (in application layer) a broadcast as a response to received packet.

    Two important assumptions were made here:

    1. Once ZED is powered up, it's able to join to coordinator.
    2. There is only one Coordinator/router in the area of broadcast.
    Try to understand what's going on before you actually try to run it.

    0743.genericApp.zip

  • hey Igor;

    thanx alot. your  suggestion helped me alot.

    cheers man.u r really genious and a man with lot of mettle.

    thanx

     pruthvi srinivas

  • Hi Igor

    I am a university student doing a project on smart grid applications like turning off the devices in peak hours and so on and i am using CC2530DK for the same i have run the basic 3 tests like the PER, light switch and spectrum analyser but I am not able to figure what to do next. Coluld you help.

     

    Thanks

    Pratibha

  • Hi,

    The next step is to download Z-stack 2.5.1 and play with examples. I think that the home automation

    profile is what are you looking for. You can find home automation example project within the installation.

  • jus download the ZStack and get acquainted with the zsatck sample applications. if met with doubts get bac..we wud love to help pratibha.. 

  • Thankyou Igor...I will try that ..and you are right I am looking for home automation only...tahks again for your help.

    I much apriciate it.

     

    Tah

    Pratibha

  • Thanks Pruthvi..I will try the software examples and get back to you.....if there is a need..Thanks for reassuring.

     

    Regards

    Pratibha

  • Hello Igor

    Could you please come on some sort of chat or something like facebook...I am not able to install z stack on my laptop. If you could please help

     

    Thanks

  • Hi,

    I have no facebook. You can always write me a private message, it should work.

    Now, to Z-stack issue, what supposed to be the prob;em, is it something specific?

  • Hi

     

    the thing is I am not able to run the example program in IAR workbench on my computer. it sAys some sort of linker file missing error.

     

    Thanks!!

  • also how can i send yu a private message?

  • Hi,

    What is the error message can you write it down?