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.

CC1310: cc1310 sensor program

Part Number: CC1310

Dear sir,

I am running cc1310 launchpad and the sensor and collector program.

I was able to run as the guide pointing that i get the message in the hyperterminal :

0x0x which i guess this one is the "short address"?

i am now connecting 3 sensor and 1 collector at this moment ,

in which way i can know the OWN ID(mac address?) of each sensor and i can print it out in the terminal?

thanks

Jeff

  • Read IEEE MAC address from CC13xx
    uint32_t * addrPtr1 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_0);
    uint32_t * addrPtr2 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_1);
    to addrPtr1 and addrPtr2
  • Hi YK Chen,

    is that in csf.c
    i changed

    else if (true == newDevice) {
    LCD_WRITE_STRING_VALUE("Joined: 0x", pDevInfo->shortAddress, 16, 4);
    }
    else {
    LCD_WRITE_STRING_VALUE("Re-Joined: 0x", pDevInfo->shortAddress, 16, 4);
    }

    replacing the short address to extAddress will get the thing done?

    or how can i display the

    uint32_t * addrPtr1 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_0);
    uint32_t * addrPtr2 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_1);
    to addrPtr1 and addrPtr2 ?
    thanks

    Jeff
  • If you mean to know IEEE mac address of sensor node on collector, I suppose you should use pDevInfo->extAddress. "addrPtr1 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_0)" and "addrPtr2 = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_15_4_1)" are for getting IEEE mac address locally.