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.

PLC G3 network using ADP example

Hi,

I'm working with the TMDSPLCKIT-V3 and I try to set up a PLC network using the ADP example from the G3DevelopmentPackageV5210 package. I have some questions that I already asked to plc_support@list.ti.com but I still do not have any answer... Here are my questions :

Question 1 :
How can I get the IP address of a device attached to the PAN coordinator. I tried :

UINT16 ipv6[8] ;
ADP_NIB_get(ADP_ATTR_ID_adpIPv6Address, 0, ipv6, ADP_NIB_get_size(ADP_ATTR_ID_adpIPv6Address));

But I get "ADP_STAT_UNSUPPORTED_ATTRIBUTE". How can I solve this problem ?

Question 2 :

How can I create a NSDU frame which can be sent using the ADP_TX_packet function ? Should a packet look like a IPv6 packet and should I need BFM API functions to create my packet ? If yes, where can I find the BFM API documentation ?


Thanks, regards.

  • Hi,

    I'm having the same problem. To get ipv6 address I am using 

     ADP_alarmEvent_register(ADP_EVT_ALARM_NETORK_JOIN_INDICATE, function);

    and in the callback function:

    void function(ADP_ev_t id,ADP_cbparams_s *cbData)
    {
    int u;
    for(u=0;u<8;u++) printf("%x.",cbData->joinInd.ipv6Addr[u]);
    }

    Did anybody solve the second problem?

    Regards.