Hi,
I am currently in the middle of writing my own firmware for the CC3000 on an Xmega mcu. I started by trying to port the generic program, but gave up after too many timing issues with the initialization process. I then moved on to writing all my own software for it and have been moving smoothly ever since. Until I tried to bind to my open TCP socket that is.
So to be clear I have to module working very well on the init and smart config. I am able to join my ap using the smart config process via the app and can set my profiles so that it quickly rejoins my ap upon reboot. I correctly get the connected response and then the dhcp response with my ip address and then I try to open a TCP socket as a server.
I send (equivelant of socket(af_inet, sock_stream,ipproto_tcp))01 00 11 00 00 01 01 10 0c 02 00 00 00 01 00 00 00 06 00 00 00 00
and receive 02 00 00 00 09 04 01 10 05 00 00 00 00 00 which should be correct.
I then send (equivalent of bind(sd,&sockaddr,(sizeof(sockaddr))))01 00 19 00 00 01 02 10 14 00 00 00 00 08 00 00 00 08 00 00 00 02 00 1f 90 c0 a8 00 10 00
but i get an error in response 02 00 00 00 09 04 02 10 05 00 ff ff ff ff.
I am trying to bind my tcp socket (sd=0) to port 8080(1f90) to ip address 192.168.0.16(c0a80010). Does anyone have any idea how my bind packet is incorrect?
FYI: As suggested by someone on the forum, in response to the problem of not having an full command set document for the CC3000, I am stepping thru the provide software to generate my packets to send and thus far that has worked. I still dont fully understand why TI will not release a Command Set document for the CC3000. If they had I would be done already and would be buying lots of cc3000 mods so i so could sell my product. Instead I am stuck in development creaping along slowly. TI PLEASE RELEASE A COMMAND SET PDF ASAP.
For the others struggling with no command set I will be putting my command set on the wiki once it is complete and if nothing else maybe TI will check it for us. I will post what I have now if anyone is interested.
Thanks in advance,
Chad