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.

CC3220MOD: act as a dynamic webserver

Part Number: CC3220MOD
Other Parts Discussed in Thread: UNIFLASH

Dear Sirs,

We are a manufacturer of electronic items to manage farms.
We were using SPWF01 module from ST to give simple remote control to our device.
This module gave us satisfaction until we learn that ST stops to work with wifi.
Now we are looking for a new supplier, with long lasting product to continue
to provide a remote control to our machines. This solution should be as close
as possible to the existing solution.

We are looking for a 2,4Ghz Wifi module is Station Mode that :
- can embed a webserver with dynamic html pages in Rom/Flash memory  (less than 128kb is needed)
- can be controled by UART (Rx/Tx) for wifi Settings (AT commands or equivalent) : SSID + WPA2 known by host
- can erase/write HTML files by UART (Rx/Tx) to webserver folder in Flash or RAM (AT commands or equivalent) => folder /www
- the webserver has a function to write data from webserver client (javascript) to UART
(our ST module had output.cgi function called by javascript to send a Text to the UART)

Your solution with seems to be close tou our needs.
Q1: Can AT+FileDel / AT+FileWrite overwrite HTML pages in /www/ folder ?

Q2: Can we embed jQuery in ROM (or Flash) /www/ folder ?

Q3: Do you have an example of function that can send an ASCII text string from any Client of the webserver ?

ie a button click calls $.get('output.cgi?text='the text I want to send to UART'&submit=Submit');

Q4: we have only 2 wires RX/Tx, can we use UART with no RTS/CTS flow control

Best regards,

VT

  • Hi VT,

    Thanks for reaching out and your interest in our Wi-Fi solution!

    1. Yes, all of the user files can be manipulated through the AT+File... commands. This includes the files in the /www/ folder which are part of the user space.

    2. Yes you have the ability to do this. I recommend you take a look at our out-of-box application as a reference for how it does it. It uses a version of jQuery as part of the demo. You can see the files it uses by opening the UniFlash project for the out-of-box application and examining all the user files with the "Advanced" view. For example:

    3. I don't think we have shown this exactly in the http resources for our demos, but it is definitely possible. You can use the source for either the out-of-box application or the local_ota example as a reference for adding this type of functionality to your project. Check out chapter 8 of the CC3220 network processor programmer's guide for details on the HTTP server and POST request processing. 

    4. Yes, the AT command application as is does not use HW flow-control when communicating with the UART to USB bridge (which allows testing input from a serial terminal on a PC). It is possible to use it without flow control.

    Best Regards,

    Ben M