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.

Configuration on the fly?

Other Parts Discussed in Thread: CC3200

Hi all,

I'm new to the topic of WiFi modules and I try to get a test system working with a CC3200 Launchpad board. I connected the board via a uart port and I want to set some configurations (for example the SSID) via uart commands. After the configurations I want to open a socket and send some data from the uart to a server.

My question is: Is it possible to do this and is it possible to reconfigure the device on the fly. (How to distinguish between data and configuration commands)

As I told you, I'm new to this area so please explain me everything in small steps ;)


Thanks in forward

  • Jan Oene Krist said:
    Is it possible to do this and is it possible to reconfigure the device on the fly.

    Yes, if you mean passing configuration through UART interface. But, of course you still need to know how to use those configuration information. So, I suggest you to read through the relevant technical documents related to CC3200 to get more understanding.

    - kel

  • Thanks for your answer. I now understand that it is possible to send configuration data via uart. However, I don't understand yet how to send both socket data and configuration data via the uart. How can I distinguish between these?

  • Hi Jan,

         Your question will be best answered by doing a search in the internet of "Parsing UART data" or "Parsing UART strings" or "Parsing in C" or other of similar terms.

         There are also lots of parsing codes in the internet that you can learn from.

    - kel      

  • Hi Kel,

    Thanks again for your answer. Unfortunately, I think my question is not clear. The uart parsing stuff is clear for me and is not a problem at all. I'll try to explain it again.


    The data that comes from the uart is just one single stream of data. I can specify some sort of a protocol that can handle the communication. However, parts of the incoming stream should be send to the socket and parts should be used for other (configuration) stuff. Is there a function for sending the incoming data directly to the socket such that I can call that function from my uart parser? Or is all data directly connected to the socket once this is open?

    I hope that my question is more clear now.

  • Hi Jan,

    The UART peripheral input does not directly control sockets or configurations. In the SDK we do have examples that use the UART to take user input, but the input in this case only indirectly controls the WiFi. What you will need to do is develop your own command structure.

    Regards,

    Aaron

  • Thanks for all your answers, It was really helpful!


    I ran into an other question: It seems that the uart echo's all incoming bytes. I found that there are two lines in uart_if.c in the common folder that seem to echo the incoming bytes. Unfortunately it does not work to comment these lines out.


    How can I turn the echo off?