wifi, webserver??

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
cobra1
Posts: 175
Joined: Thu Feb 04, 2010 7:44 am
Contact:

wifi, webserver??

Post 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??

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Contact:

Re: wifi, webserver??

Post 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
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am

Re: wifi, webserver??

Post 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 ;-)

cobra1
Posts: 175
Joined: Thu Feb 04, 2010 7:44 am
Contact:

Re: wifi, webserver??

Post 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?

Post Reply