Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Building a Webserver with a Wiznet W5100
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM Project Blog
View previous topic :: View next topic  
Author Message
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1198
Location: SYDNEY

australia.gif
PostPosted: Tue Nov 24, 2015 10:00 am    Post subject: Reply with quote

Great news Very Happy

Note : with the Arduino you need an ISP programmer to set fuse bits and to write to eeprom with bascom.

Regards Paul
Back to top
View user's profile
snow

Bascom Member



Joined: 28 Jun 2005
Posts: 168
Location: Ashburton / Mid Canterbury / New Zealand

newzealand.gif
PostPosted: Tue Nov 24, 2015 5:40 pm    Post subject: Reply with quote

Thanks for the heads up.
I haven't poured over your code with a fine tooth comb yet. But one
question. How does the call back for a button event work. More like how does your
code work to store txtbox value to eram.

Cheers
Back to top
View user's profile
max

Bascom Member



Joined: 29 Jun 2005
Posts: 131

australia.gif
PostPosted: Sun Apr 10, 2016 12:33 pm    Post subject: Basic version Reply with quote

I have moved away from the raspery pi due to reliability issues, for a simple web server.
I have set one up using arduino sketches, however, their libraries are massive. A small script
Uses 41% of the flash RoM on a 32k chip.
As I will be using tablets and phones, flash is out of the question as it is old hat and doesn't work on most tablets and phones.
I am using the arduino w5100 shield with an UNO because they are cheap and easy to work with.

As I am wanting to display various items such as temperature, water levels etc.
I live on a boat in Brisbane waters, and want a basic system.

My question is, which version of all those posted here would be the best one to use? IE, which doesn't have all the flash and extras.

Thanks in advance.
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1198
Location: SYDNEY

australia.gif
PostPosted: Mon Apr 11, 2016 9:47 am    Post subject: Reply with quote

Hello Max

There is no web code in the AVR it resides on the pages on the SD card
The AVR simply replaces special characters in the file with data from its inputs (see previous posts for details)
In fact a file consisting only of the ~ and the hex number of the data can be used in which case pure data will be sent back
So it is up to you how and by what the data is displayed

I am still working on the project as it has grown now with a need to communicate with solar inverter chargers plus monitoring a very large battery bank
I now have a prototype 1284P part surface mount board that accepts the arduino w5100 shield
that has two buffered rs232 ports , 3amp switch mode regulator and headers for the ports that can be used instead of the flimsy arduino ones on the w5100 shield
It is only slightly wider than the shield enough to accommodate the headers.
With a large 64 x 240 back lit LCD it only draws 500ma from an 8volt supply so 4 watts.

Note the shield version that is best to use is version 3 this has provision for Power Over Ethernet and an IC to reset the W5100
This is the one you want https://www.arduino.cc/en/Main/ArduinoEthernetShield
with the others you will need to modify them with a port from the AVR hooked to the reset of the W5100
you may still need the modification to do a soft reset I will not know till I get hold of a revision 3 shield

Regards Paul
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 699

poland.gif
PostPosted: Fri Jun 10, 2016 11:27 pm    Post subject: Reply with quote

Hi Paul. I watch your work and I`m impressed.
I build custom Arduino shield for my friend.
On this shield we have 3x MAX31855 for thermocouples, 1Wire sensor and Bus out for next devices, MAX232 for communication with CP08MHT80, DS1307 RTC and HX711 for weight.
On the top of this shield fit Arduino Ethernet shield so my shield is in the middle Razz
All paramaters are logged to SD CARD as "Log.txt"
Because building is a little bit away from home we want to use LAN cable instead WiFi.

Now i have a question.
If there is a ready solution to generate server/site with button for "download" this "Log.txt" file?
How AVR should handle this? Very Happy Should read line by line and send it or what Very Happy

Better to ask than to sit and re-invent the wheel again, I think Very Happy
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1198
Location: SYDNEY

australia.gif
PostPosted: Sat Jun 11, 2016 7:53 am    Post subject: Reply with quote

Hello EDC

I have not implemented the file transfer protocol but others have
SIX1 has and others so adapting theirs could be done
With what I have implemented you can just type the file name then the server will send it to you
I have also built a couple of boards to plug in the Ethernet shield
these use the m1284p because of its 16K of ram
I think the next version of the board will be a production one
They have inbuilt switch mode regulator , max3232

If possible it would be good if you can post your code
to add to what I have done
Post here in the blog that keeps all the server code together

I try to make my code modular so it can be put together as blocks
you only use the blocks you need.

I have just put together the code to create a DNS request
its not yet tested but it does put the bytes together correctly
and it is a function so you just send it the URL it does the rest
so only need to load the buffer and send it
Now have to handle the return from server.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5093
Location: Holland

blank.gif
PostPosted: Sun Jun 12, 2016 12:23 pm    Post subject: Reply with quote

you can post a txt file.
just include it with a link like you include an image.
then you can use 'save link as'
and when the user click the link, you send the data. have a look at the webserver demo from the tcpip folder.
it works the same for images, txt, html or whatever you send.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM Project Blog All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum