Go Down

Topic: discussion on supporting the TI CC3000 WiFi module (Read 59 times) previous topic - next topic

TheCon

These are both very informative documents on the use of termination resistors:

http://www.ti.com/lit/an/scaa045a/scaa045a.pdf

http://www.fairchildsemi.com/an/AN/AN-610.pdf

My circuit did not work with the CC3000 until I installed a thevenin termination scheme...

TheCon

Any updates on the library magagna? Waiting patiently...  :)

KwameOA


These are both very informative documents on the use of termination resistors:

http://www.ti.com/lit/an/scaa045a/scaa045a.pdf

http://www.fairchildsemi.com/an/AN/AN-610.pdf

My circuit did not work with the CC3000 until I installed a thevenin termination scheme...


Thanks! Funny enough, the chip is communicating just fine with the MCU so i think i'll hold off with the termination for now. I took everything apart and put in all together starting with the CC3000 and adding on the other peripherals. Didn't really do anything different in terms of connections other than adding the voltage regulator. Has anyone tried to get it to run commands similar to the WiFi shield? I.e. things like setting up a client and/or server etc. I know it's come up on the thread once or twice, but i'm not sure if anyone has resolved the issue yet. I'm having a go at it right now. Most of the socket commands seem to be available in the library though.

TheCon

Your welcome! Give it a shot and let us know if you get it to work...

KwameOA

So no luck so far with getting it to connect with a server over the network. I tried setting up the socket for communication following the bit of sample code posted on the thread from TI, which works fine, except the "connect()" command fails. I tried another approach:
Code: [Select]

if ((sockfd = socket (AF_INET, SOCK_STREAM, 0)) < 0) {
          Serial.println ("Problem creating socket!");
        }
       
        Serial.print ("Sockfd = ");
        Serial.println (sockfd);
       
        servaddr.sin_family = AF_INET;
        inet_aton ("127.0.0.1", &servaddr.sin_addr);
        servaddr.sin_port = htons (SERV_PORT);
       
        Serial.println("Connecting to server...");
       
        if (CCconnect (sockfd, (sockaddr *)&servaddr, sizeof (servaddr)) < 0) {
          Serial.println ("Could not connect to server!");
        }
        else {
          Serial.println ("Connection made!");
        }


but I still ended up with the same results. It connects fine to the network, but just doesn't seem to be able to connect to the server.

Note: I copied the 'inet_aton' function from one of the files in the 'firmware' folder of the WiFi library to the 'socket.c' file because there isn't any definition of it in the CC3000 library.I also renamed 'connect()' to 'CCconnect()' because there seemed to be some kind of conflict.

Go Up