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.

How to receive data from CC3000 on laptop

I am using CC3000 wifi module (along with FRAM kit )in my project. Currently to get familiarized with the wifi module and some networking protocol, I am using the basic sample wifi application provided by the TI (http://processors.wiki.ti.com/index.php/CC3000_Basic_Wi-Fi_example_application_for_MSP430).

I am trying to send the data from cc3000 using the opcode 04 sent from hyperterminal .(getting the DONE message as acknowledgment)

How can I read the same data received at the laptop end?

  • Currently I am using the wireshark software at the laptop end to trace the data packets received. I can see the data packets for pinging the CC3000 from laptop but hoiwever when I try to send the UDP packet from CC3000, the same is not appearing on the wireshark. I am using the port number of the laptop by executing the following command,

    netstat -an -p udp

    This is resulting with the following,

    Proto  Local Address          Foreign Address        State
    UDP    192.168.39.10:138       *:*
    UDP    192.168.39.10:1900      *:*
    UDP    192.168.39.10:5353      *:*

    From the above list I am taking the port number, i.e 138 (my CC3000's ip address is 192.168.39.10) and using it to form the opcode as below,

    opcode to send data: 0405Hello02008ac0a8270c   (laptop's ip is 192.168.39.12 and is using the same default gateway as CC3000 which is ip address of my wifi hotspot 192.168.1.1),

    Please let me know if anything is missing in my steps.. and by the way why does my udp listener state is showing nothing while for tcp it shows LISTENING/ESTABLISHED?

  • I am getting the error as follows,

    "Unknown operation (13) [malformed packet]"

    I have attached the screen shot for the same..

  • The issue is resolved, the problem was with wireshark settings.. I had to select the udp-ipv4-ethernet protocols in the analysis list which was not done correctly,

    now m able to receive the data properly :)

  • Hi Chethu,

    I had a similar problem to parser the packet from CC3000  captured by wireshark. But I'm new to wireshark. 

    Could you let me know the steps how  to set the udp-ipv4-ethernet protocols in wireshark? Thanks.


    Vincent

  • Hi ,

    Once u select the network to be monitored, go to "Analyze" menu in the menu bar above then select "Enabled protocols".

    check whichever protocols you want to analyze.

    If you are receiving the packets from CC3000, select individual packet by clicking it . The packet's detailed structure will be split and shown in the immediate box below the packets window (like Ethernet, TCP , IP etc).

  • Thanks for this guide.

    My problem is the wireshark can capture the packets sent from/to CC3000. But the wireshark cannot parse out the IP, UDP/TCP layer. even for packets sent from the standard "sensor application". Did you ever experience it? Thanks. 

  • Vincent ZHOU said:
    But the wireshark cannot parse out the IP, UDP/TCP layer.

    Assuming that you are capturing UDP packets, the UDP packet is formed in the following way using the protocols on which its built.

    Ethernet protocol(Ex: WLAN) -> IP -> UDP -> <data packet>

    So tell me what exactly u mean by  "wireshark cannot parse out the IP,UDP/TCP"

    Please refer to the attached picture where UDP packet is selected for analysis and let me know which part you are facing the problem at.

  • Sorry, the image was missing

  • Thanks CHethu,

    My problem is the wireshark cannot recognize the UDP packets (and even above protocol). it's only capture the LLC packets.

    the packet is from the "sensor app". the "LsResear_02:0b:a7 (00:25:ca:02:0b:a7)" is the CC3000.

    Do you have any suggestion about this? Thanks a lot.

  • Hi,

    Vincent ZHOU said:
    the packet is from the "sensor app". the "LsResear_02:0b:a7 (00:25:ca:02:0b:a7)" is the CC3000.

    It does not matter from where you are getting the packets.

    Please check your firewall settings.. I guess its the one which is blocking the wireshark from detecting your UDP packets.