NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

CC3200 mDNS

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc32xx return sample apps.png

Overview[edit]

mDNS(multicast domain name system) is a host name resolution service. Mdns host can multicast messages containing information about its services, ip address, text on mDNS port. An Mdns client on the same subnet shall be able to listen to those messages. CC3200 device can make use of these services.

Application Details[edit]

This application can either be used as a Advertise(Mdns host) application or as a listen(Mdns client) application. One can switch between the two using a predefined symbol "MDNS_ADVERTISE". First step for each case is to connect to an AP. one can change the AP name by modifying the "SSID_NAME" macro (common.h). The advertise application registers and multicasts one service(CC3200._uart._tcp.local) at mDNS port. The Listen application tries to get the IP, port and text of a service multicasted by another device(mdns host).

This mDNS sample application registers services as 'unique services'. .i.e. if a service w/ the same name is already registered in the n/w, the new service registration will fail

Source Files briefly explained[edit]

  • main.c - Initializes the device, connects to an AP, registers service for broadcast and tries to get IP, port and text of the service by name.

Supporting Files

  • pinmux.c - Generated by the PinMUX utility.

Common Files

  • startup_ccs.c - CCS related functions
  • startup_ewarm.c - IAR related functions
  • uart_if.c - Interface file for uart communication

Usage[edit]

  • Setup a serial communication application (HyperTerminal/TeraTerm). For detail info visit Terminal setup

    On the host PC. The settings are:
    - Port: Enumerated COM port
    - Baud rate: 115200
    - Data: 8 bit
    - Parity: None
    - Stop: 1 bit
    - Flow control: None

  • Run the reference application as advertise application or listen application.(Flashing the bin/IAR/CCS).
  • If ran as a advertise application, the serial communication will be something like:
CC32xx mDNS Terminal runScreen advt 1.0.0.png
  • If ran as a listen application, one needs to run mdns host on the same subnet(can be a PC, mobile or another CC3200 device running as a advertise). upon receiving the multicast message the serial communication will be as:
CC32xx mDNS Terminal runScreen listen 1.0.0.png

Limitations/Known Issues[edit]

- Trying to get a service broadcasted by the same board is not a valid use case.

Links[edit]

{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3200 mDNS here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3200 mDNS here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article CC3200 mDNS here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3200 mDNS here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3200 mDNS here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 mDNS here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 mDNS here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article CC3200 mDNS here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3200 mDNS here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity