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.

CC3000 Email Demo Application

Other Parts Discussed in Thread: MSP-EXP430FR5739

I can't get the CC3000 Email Demo Application to work.

I have the MSP-EXP430FR5739 with the CC3000 installed.

I can get past SmartConfig. My router shows the IP address 255.255.255.255 which comes across on the HyperTerminal window at the start of the program simplemail.

I can get past steps 2-4. On step 5, sending an email, it takes a long time to get past smtpConnect function. I'm not sure that it is working. In smtpSend, the first if statement checking for a 220 from smtpcorp.com always fails. the variable array buf is filled with '.'. If I bypass this first if statement by setting buf[0] = '2'; buf[1] = '2'; buf[2] = '0';, the next if statement after HELO also fails. buf is again filled with '.' by the function sendSMTPCommand.

I am able to send emails with smtpcorp.com using Microsoft's telnet.

I made the suggested changes in the known issues on the Wiki page so that serverloc, serverport, serveruser, emailto, emailsubject, and emailmessage are correct. I have verified them.

smtpSocket always seems to be 0. Is that right?

smtpServerIP always seems to be 0. Is that right?

Any suggestions on what variables to look at next?

Thanks

  • Hi,

    Can you please let me know about the Host Driver version and the Service Pack version that you are using?

    Can you please explain a bit more about the IP address? Is it the IP address acquired by the CC3000? Or do you mean, the subnet mask?

    Thanks & Regards,
    Raghavendra

  • Raghavendra,

    Thanks for responding.

    Code Composer:  Version: 5.5.0.00077

    From host_driver_version.h: DRIVER_VERSION_NUMBER   13

    From SimpleMail's version.h: EMAIL_APP_VERSION "v1.0.11"

    From spi_version.h: SPI_VERSION_NUMBER   7

    Okay, for the Service Pack, I had a hard time finding this so I did a little research and assume you are talking about the CC3000 chip specifically. I have not used the Patch Programmer to update the firmware. I didn't have a clue what the Service Pack number was, but found out to use nvmem_read_sp_version from a TI wiki and it is:

    patchVer = 0x1CEA "\001\030". Is that what you are looking for?

    For the IP, variable cc3000IP = 255.255.255.255. This is what is displayed over HyperTerminal when I start the simplemail program:

    IP:255.255.255.255
    Email App Version 1.2.7.13
    01,to start Smartconfig
    02,<server>,<port>,<user>
    03,<to>,<subject>
    04,<message>
    05 to send message

  • Hi,

    Yes, I am loking for the patch version obtained from 'nvmem_read_sp_version'. The first and the second byte of patchVer forms the SP version.

    Pass the patchVer[2] array to the above API as nvmem_read_sp_version(patchVer);

    Also, your IP address does not look correct. What is the default gateway IP address of your Access Point?
    CC3000's IP address should be similar to this series.

    Can you just try setting the IP configuration to use DHCP using 'netapp_dhcp'? Set the first argument's value to 0 (aucIP = 0). And pass its address.

    Thanks & Regards,
    Raghavendra

  • patchVer[0] = 0x01

    patchVer[1] = 0x18

    IPv4 Default Gateway 192.168.1.1

    IPv4 Subnet Mask says 255.255.255.0 (if that helps)

    I will try setting IP configuration to use DHCP tomorrow. However, netapp_dhcp has other arguments besides aucIP:

    netapp_dhcp(unsigned long *aucIP, unsigned long *aucSubnetMask,unsigned long *aucDefaultGateway, unsigned long *aucDNSServer)

    Thank you for your help.

  • Where did you want me to call netapp_dhcp?

    I called it after initialization in main and now I'm getting an error stating that the program will not fit. Yikes! I'm going to eventually want to program an application.

  • Hi,

    Please add netapp_dhcp before you call wlan_connect and after InitDriver function call.  Did you add any space consuming array or structure in the global space? Or any similar changes?

    If you are facing more issues, as an alternative, first try to reflash the patches to the CC3000 using patch programmer.

    Thanks & Regards,
    Raghavendra

  • Raghavendra,

    Thank you so much for your help! We got it working!

    I did not have to use the dhcp function. I simply had to perform the patch programmer correctly. I think I may have done it incorrectly when I first got the product a couple of months ago because the version is still 1.18.

    Now I have an IP address like my router's: 192.168.1.127.

    The size issue did come when I introduced a structure that I was going to use for the dhcp function.

    Woo hoo!