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.

AT command on CC2530

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

Hi,

I'd like to support AT or API command interface for TIMAC and Z-Stack on my board which is based on CC2530 without buttons and switches. I have no idea how to implement AT command interface. 

Doesn't  Z-stack support AT commands?  Otherwise, does Z-stack support a command interface similar to AT command?

 Please help me. 

Thanks.

  • yes , TI do have Monitor and Test API (Document Number :SWRA198). Install the ztool and play with it.

     

    Thanks and Regards

    Lakshman,PMP


     

  • Thanks, Lakshman

    In Serial APP sample program,  the Key handler function will be called when I press switch 2 or 4. However, my board does not have any button or switch.  I put  the key handler codes into  UART callback function .

    
    
    static void SerialApp_CallBack(uint8 port, uint8 event)
    {
    .....
    HalUARTRead( SERIAL_APP_PORT, SerialApp_TxBuf, 1);

    switch (SerialApp_TxBuf[0]) {
    case '2':
    // HalUARTWriteString(SERIAL_APP_PORT, "'2' Selected\r\n");
    txAddr.addrMode = Addr16Bit;
    txAddr.addr.shortAddr = 0x0000; // Coordinator
    ZDP_EndDeviceBindReq( &txAddr, NLME_GetShortAddr(),
    SerialApp_epDesc.endPoint,
    SERIALAPP_PROFID,
    SERIALAPP_MAX_CLUSTERS, (cId_t *)SerialApp_ClusterList,
    SERIALAPP_MAX_CLUSTERS, (cId_t *)SerialApp_ClusterList,
    FALSE );

    break;

    case '4':

    // Initiate a Match Description Request (Service Discovery)
    txAddr.addrMode = AddrBroadcast;
    txAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR;
    ZDP_MatchDescReq( &txAddr, NWK_BROADCAST_SHORTADDR,
    SERIALAPP_PROFID,
    SERIALAPP_MAX_CLUSTERS, (cId_t *)SerialApp_ClusterList,
    SERIALAPP_MAX_CLUSTERS, (cId_t *)SerialApp_ClusterList,
    FALSE );

    break;
    default:
    break;
    }
    ...
    
    
    Is there another method ?  
    
    
    In regard to z-tool, the program can output  text strings on terminal. However, when Z-tool scans devices, it  shows  "no devices found".
      I compiled with MT_TASK option and killed the terminal program in order to Z-tool can connect.
    
    
    Thanks.
  • Is there a command interface  for TIMAC like API command?  If TIMAC doesn't have it, could you tell me how to implement ? 

    Thanks.

  • did you set the option

     Tools--->Settings---->Serial Devices ------> Double Click the Com Port (The com port connected to the RS232 Cable)--->Select the option for the handshake to RTS/CTS.

    in Z-tool ?

    Regards

    Lakshman,PMP