Page 1 of 1

wifi, webserver??

Posted: Wed Apr 23, 2014 3:14 pm
by cobra1
Hi

I am looking into creating a wifi webserver. The webserver would display sensor data on a webpage in an internet browser.

I would like to use the hi link RM04 for the wifi.
I have never used wifi before so can i ask for some pointers on how such a system would work. I can then go and research based on that info.

Also just one other question. Is a webserver a physical object or is it a program running on the PIC??

Re: wifi, webserver??

Posted: Mon Apr 28, 2014 8:44 pm
by acestu
Hi Cobra,

I think you would be better using modules that Flowcode supports such as the wiz610wi for your wifi like this:

http://www.digikey.com/catalog/en/partg ... 10wi/34098

and the wiz5100 webserver

The webserver is hardware and you would put your html files on an sd card onboard the module.

Hope this helps
acestu

Re: wifi, webserver??

Posted: Mon Apr 28, 2014 11:24 pm
by Rudi
cobra1 wrote:Hi

I am looking into creating a wifi webserver. The webserver would display sensor data on a webpage in an internet browser.

I would like to use the hi link RM04 for the wifi.
I have never used wifi before so can i ask for some pointers on how such a system would work. I can then go and research based on that info.

Also just one other question. Is a webserver a physical object or is it a program running on the PIC??

Hi Cobra,

like acestu give you the tip with wiz5100... this will work perfect with the compo..

if you will test a alternate, please have a look to this wifi modul from "shuncom"

This is a transparent RS232 / Rs485 / TTL UART . You can use only one UART at same Time.

This Uart connect to your PIC, example TTL ..
Rx --> Tx Pin of your PIC
Tx --> Rx Pin of your PIC

Choice Yoúr Baudrate for the UART - example 9600 ... ( 115200 )
all you send out from PIC over the UART - it will forward out over the wifi
all you send to the wifi - will forward to the UART in your PIC

The configuration of the Wifi you can make over a setup routine in AT Commands ( you can build your own COBRA WIFI Component like the Webserver Component )
you can also Config the Wifi with a Web Browser
and you can config the Wifi with a "Windows" Config Prog.
The Wifi support AdHoc and Infrastructure
Also can it be a "Server" or a Client.

If you config the Wifi as a Server...
you connect the Wifi with a Browser like "http://yourWifi_IP"
the Http Command will be example a "Get"
this command you can sort out in a Routine in Mikrocontroller,
example
http://192.168.11.20/?TempSensor

Then you can sort out the /?TempSensor in

RS232
ReadString
"Commands"
if Commands == '?TempSensor"
...manage your Temp Sensor for Data..
..and send this return with a "HTML" Code likewise this...
<html>
<title>
my-pic-sensor-over-wifi
</title>
<head>
</head>
<body>
<h3>
Actually Temp is: #yourReplaceValueFromCodeForDataFromYourSensor#
<br>
</h3>
</body>
</html>

you can save the standard html in a variable..
and write over the TTL / RS232...

The Wifi Datasheet

http://www.matrixmultimedia.com/mmforum ... p?id=14291

At Time 17,50 EUR only Wifi Shield ( at this Board a PIC32 is included for managing all with the Wifi - you do not need write code for TCP Stack .. all manage the PÌC32 -- and the PIC32 has Firmware fix ;-) ... )
optional antenna + pigtail 5,26 EUR..

http://www.mikrocontroller.net/topic/332040#new


Have a look :
http://www.matrixmultimedia.com/mmforum ... =7&t=14720

I make with this wifi shield a WIfi-MIDi... Wifi-OTG ( if your phone have no OTG for a USB Seriall you can connect over Wifi-Uart a Mikrocontroller... look at the videos... )
and possible, you can connect a MySQL Database.. and so on...

i am the user from mikrocontroller.net ( R.W. ) and allways look for good hardware tools..
i give you the tip for this wifi shield from shuncom - you will love it ;-)
all my works - i will start with this modul - its transparent.

Best wishes from Germany
Rudi
;-)

..
where are you from?

edit:
sorry for my bad english,
i would say ;-
where are you come from?

I think this is right ;-)

Re: wifi, webserver??

Posted: Thu May 01, 2014 9:00 pm
by cobra1
Thanks for your replies.

How would i go about retrieving the HTML files from the SD card?

I would also like to use pictures in the webpage. Is this possible. If so any pointers on how to do it?