Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC3220: Continuesly mDNS advertising

$
0
0

Part Number:CC3220

Tool/software: TI-RTOS

Hi guys,

I saw that mDNS advertising stops after few seconds and the board does not respond to the queryes. There is a way to start a continues mDNS advertising?

I start the advertising using the following API:

sl_NetAppMDNSRegisterService(
                            (const signed char *)"Me._test-xx._tcp.local",
                            strlen("Me._test-xx._tcp.local"),
                            (const signed char *)"AAA=-1;BBB=hello;",
                            strlen("AAA=-1;BBB=hello;"),
                            2525,
                            10,
                            SL_NETAPP_MDNS_IPV4_ONLY_SERVICE
 );

and with another board I execute continues query using the following API:

sl_NetAppSet(
            SL_NETAPP_MDNS_ID,
            SL_NETAPP_MDNS_CONT_QUERY_OPT,
            (unsigned char)strlen((const char *)"_test-xx._tcp.local"),
            (const unsigned char *)"_test-xx._tcp.local"
);

I also tryied to set timing with the following code before to start advertising:

SlNetAppServiceAdvertiseTimingParameters_t Timing;

Timing.t = 100;                                           //initial advertising period (100 ticks = 1 second)
Timing.p = 1;                                               //Number of repetitions
Timing.k = 1;                                               //Telescopic factor
Timing.RetransInterval = 1;                     //Announcing retransmission interval    <--- what is this?
Timing.Maxinterval = (0xFFFFFFFF);    //Announcing max period interval           <--- what is this?
Timing.max_time = 3;                               //Announcing max time                             <--- what is this? 

ret = sl_NetAppSet(
        SL_NETAPP_MDNS_ID,
       SL_NETAPP_MDNS_TIMING_PARAMS_OPT,
       sizeof(Timing),
       (const unsigned char *)(&Timing)
);

but I did not understand what those timing parameters means, can someone explain better? I see the Programmer's guide (swru455e) to chapter 9, but it does not solve my questions.

Regards, Lorenzo


Viewing all articles
Browse latest Browse all 262198

Trending Articles