HI,
I have been working with the CC3000 and like many others I have been bothered by the inconsistencies in the mdns to simply advertise as it should. I understand all the other issues folks are having and would like to keep them out of this discussion since there are numerous threads on the other issues recently.
I would like to try to troubleshoot the simple fact that calling mdns advertise does not continue to work even though the CC3000 returns a satisfactory response each time even if the advertisement was not actually broadcast.
Some things I have noticed and info:
1. When sniffing with Wireshark I notice the source port is incrementing by one every time and starts at different values and gets hung up on different values. When looking at all other packets from other vendors with mdns the source port is always the same as the destination port - 5353. TI - why is this not hard coded to 5353. This could easily be the problem if every time mdns broadcasts it opens a new port to do so.
2. The point where the CC3000 quits sending mdns packets varies but for me seems to be around 7-8 minutes when calling mdns every 6 secs. Sometimes it will start sending again and sometimes it does not.
3. I am not using "CC3000" as my mdns name and I hope TI is not in there testing as I feel most are not using the default string. My name is one word no spaces 15 characters including numbers.
4. I have had this issue for the last few updates so it was not just introduced in 1.11.1 which I am running along with 1.11.0.
5. Maybe by coincidence or maybe not, sometimes when other devices on my network do their mdns routines the CC3000 will quit broadcasting.
6. When the CC3000 stops broadcasting I tried to stop and restart the mdns, so to speak, by calling mdns advertise with it disabled and I get the same response back but the next call to mdns returns with a different code, it goes from 0xc6 to 0xd9. I am not able to get mdns to broadcast again until I reboot the CC3000 and it appears that I may have to restart the CC3000 after my 5 minute mdns timeout to be able to broadcast again in the future, which would obviously suck.
Any information anyone else has that they can contribute to this would be greatly appreciated. And for those who keep thinking they are doing something wrong and the issue is not in the CC3000, think of it like this, if you can call mdns advertise once and it works it should work everytime there after also correct? If nothing on my device changes from call to call to the function then I should get the same result which is a packet not returning zero and a packet sent to my router which I can see sniffing my network.
Nothing the router does should impact other wifi devices seeing this packet either, but maybe there is something there I am missing.
Also if anyone other than TI can get their CC3000 to consistently broadcast I would like to here from you also, even if to say it does work all the time for you. At present TI cannot reproduce this issue even though it seems to affect a large number of people, so any info would help.
Thanks to all who try to help,
Chad