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 mesh 1.0.0 generic app is not working for cc2538

Other Parts Discussed in Thread: CC2538, Z-STACK

Hello sir,

i am using zstack mesh 1.0.0 and cc2538... i am using generic app example for testing but after flashing code in cc2538 it is not working.... i did following steps --->

1) when i made one device as ZC and other as ZR it is working and i am able to see data msg on both the screen

2)  but when i made one device as ZC and other as ZED it is not working and i am not getting any data msg...

anyone can tell me how can i solve this problem.... how can i made it to work fro ZED also ?

1) and i want to transmit int array instead of string then how can i do it ? how can i print int array on lcd screen ?

say i hav array like this ->

int arr[] = {1,2,3,4,5,6,7,8,9 };

then how can i send  it in generic app? and how can i print all the element of array on the lcd screen like this

a[0] = 1

a[1] = 2

........

a[8] = 9

any help ?

any pseudo code will be more helpful for me.......

plz reply...

Thanks & Regards,

Maneesh singh

  • hello,

    is anyone can tell me plz how can i transmit int array instead of char string and how can i print int array on lcd screen ?

    say i hav array like this ->

    int arr[] = {1,2,3,4,5,6,7,8,9 };

    then how can i send  it in generic app? and how can i print all the element of array on the lcd screen like this

    a[0] = 1

    a[1] = 2

    ........

    a[8] = 9

    any help ?

    any pseudo code will be more helpful for me.......

    plz reply...

    Maneesh singh

  • is there anyone who can reply to my post.....

    i am trying this becoz i hav some 100 bytes of data in int array and i want to send this data over the air from one node to other node through zigbee and i know that for sending such a bulk amount of data i need to use AF_DataRequest API...... and this API is implemented in generic app for sending string data......thats why for my testing purpose i want to use generic app and want to test it by sending int data...... so that once it works i can implement this in my project......

    but as i said in my previous post i am not able to send int data through this in generic app......so anyone,  any TI employee, any Guru, YiKai Chen sir.... anyone plz reply..... plz tell me how can i do this.....what changes i need to do....

    plz reply sir...

  • i tried something like this but it didnt work ->

    1) static void GenericApp_SendTheMessage( void )
    {
      char theMessageData[] = {3,2,0,0,7,2,5,3,0,3,1,1,1,6,0,2,7,6,0,0,7,1,1};

     ........

    }

    and in other side in callback fn i did like this ->

    HalLcdWriteString( (char*)pkt->cmd.Data, HAL_LCD_LINE_1 );


    HalLcdWriteValue( (int8)(pkt->cmd.Data[0]), 10, HAL_LCD_LINE_2 );
    HalLcdWriteValue( (int8)(pkt->cmd.Data[9]), 20, HAL_LCD_LINE_2 );


    HalLcdWriteString( (char*)pkt->cmd.Data[0], HAL_LCD_LINE_1 );
    HalLcdWriteString( (char*)pkt->cmd.Data[9], HAL_LCD_LINE_1 );
    HalLcdWriteString( (char*)pkt->cmd.Data[13], HAL_LCD_LINE_1 );

    but it didnt work..... i am not able to see data which i am transmitting... it showing some weird symbol and some garbage values....

    now anyone can check and plz tell me what i am doing wrong or how can i received my data ?

    2) when i tried to send int data instead of char then it is giving error saying :- 

    static void GenericApp_SendTheMessage( void )
    {
      int theMessageData[] = {3,2,0,0,7,2,5,3,0,3,1,1,1,6,0,2,7,6,0,0,7,1,1};

     ........

    }

    Error[Pe167]: argument of type "int *" is incompatible with parameter of type "char *" C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\Source\GenericApp.c 554

    anyone plz help me to solve this issue...... how can i accomplished my task.... plz help me...

    Thanks & Regards,

    Maneesh

  • After I check zcl.c, I see there is no implementation to send array type using ZCL API. If you insist to do it, I suppose you have to implement this part by yourself.