LAUNCHXL-CC3235SF: Send data over UART and WiFi

Part Number: LAUNCHXL-CC3235SF

Dear experts,

I am a new user of LAUNCHXL-CC3235SF, I want to send/ receive data using UART and also send them over WiFi and read these data in another device using wifi (eg. laptop).

I am asking if there are some example (projects) that I can use and modify the source code? 

Could you also please tell me how I can send these data if there are other options?

Thank you !

Best Regards,

Brahim

  • Hi,

    The CC32xx SDK contains (many) examples showing the use of WiFi as well as some that demonstrate the use of UART (see for example the "uartecho" under "drivers" examples). You can refer to both to create your app.

    You can also check the AT command examples which is basically a proxy that provides a UART interface for applications on external host to use wi-fi (the problem with that approach is that the external host will need to control the wi-fi and the uart is not used just for sending data. At the minimum, this example can be referred to show how the app can use the 2 interfaces together.

    Br,

    Kobi

  • Helo Kobi,

    Thank you for your reply.

    I am using AT command example, I am able to connect tp my wifi but still don't know how to read and capture the data I am sending to the target (my laptop).

    I'm using the following commands :

    AT+WlanConnect="MyWiFi",,WPA_WPA2,"myPassword",,,

    AT+Socket=INET, DGRAM, UDP

    AT+Connect=+Socket,INET,1000,80.215.100.60

    AT+SendTo=0,INET,1000,80.215.100.60,0,1,1

    Best regards,

    Brahim

  • Helo Kobi,

    Thank you for your reply.

    I am using AT command example, I am able to connect tp my wifi but still don't know how to read and capture the data I am sending to the target (my laptop).

    I'm using the following commands :

    AT+WlanConnect="MyWiFi",,WPA_WPA2,"myPassword",,,

    AT+Socket=INET, DGRAM, UDP

    AT+Connect=+Socket,INET,1000,80.215.100.60

    AT+SendTo=0,INET,1000,80.215.100.60,0,1,1

    Best regards,

    Brahim

  • With UDP/datagram (SendTo) you don't need to connect (you can just use SendTo).

    If both devices are on the same local net and the app is waiting for a packet on datagram socket on port 1000 - this should work.

    You can try to debug the AT Command code (e.g. put a breakpoint in sl_SendTo and check the parameters), but i believe something is not configured correctly in the environment.

    Br,

    Kobi 

  • Hello Kobi,

    Running the AT Command or the Network terminal example, when I try to send packets using TCP or UDP protocole, How I can make sure that my PC is listenning ? because I got the error -111 ( connection refused)

    How I can make sure that port 1000 for example is ready to use and how to visualize that data sent to PC ?

    Thank you !

    B R,

    Brahim

  • -111 means you are not getting to the remote side. Are you able to connect/send to the server (at port 1000) from another device (not simplelink)?

    If both are at the connected to the same router and have IP addresses in the same subnet - then the messages should get transferred correctly.

    There are many examples (online) for code or app running a UDP server.

    You can use a sniffer to check the traffic.

    Br,

    Kobi