6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Sep 09, 2024 9:59 am

All times are UTC




Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: 6502 sbc with web
PostPosted: Fri Dec 02, 2011 10:13 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
I hope that this is possible...
Well, i managed to get EhBasic working fine on my sbc, and since i bought the eeprom that is 32k and i use only 16k, i made a switch for enabling me to have 2 systems on my sbc...
On the first part i have EhBasic running , and i would like to have something that has web access also. I've been looking to 8BIT's web server, and how it works. Now first thing i would have to figure out how to compile something with cc65(didn't have much luck here), and after that compile some kind of small os that enables web interface. Of course i will need a ethernet module of some kind, and i have no idea how to make it. Also i am buying some XC9536 cpld's, so they might be useful... Also when i finish my 68000 sbc, i would like to have something similar there too...

(Btw, why only Programmable Logic has polls?)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 03, 2011 9:47 am 
Offline

Joined: Fri Aug 30, 2002 2:05 pm
Posts: 347
Location: UK
Quote:
On the first part i have EhBasic running, and i would like to have something that has web access also.

Try this page.

Lee.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 03, 2011 9:57 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
This is a fairly easy way to get TCP connectivity: the Arduino Ethernet shield. It is based on the WIZnet ethernet chip, which already provides the TCP/IP stack.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 03, 2011 3:04 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Well, i would prefer the W5100, but i see 2 problems. First the chip is smd, and i would need to make it so that it can be soldered on my trough hole boards(if possible without using Arduino bosards)... And second i would need to manage somehow 16k of that address space, i would like to shrink it somehow down to 1k(1k is how much i left for every I/O expansion slot). Also a software would be needed...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 05, 2011 4:40 am 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Well, i have looked at the datasheet and i have no idea how to make this work. You could say i really don't know much when it comes to networks/web...
And what about ENC28J60?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 06, 2011 3:50 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
8BIT's solution for his sbc-3 looks very attractive: http://sbc.rictor.org/io/eth.html .


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 06, 2011 6:50 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1737
Location: Sacramento, CA
Thanks for the comments. I can tell you that TCP/IP and web services are not easy and require a lot of time to research and develop code that is compact and efficient.

The uIP suite created by Adam Dunkels is well documented but requires a C compiler targeted to your hardware. Getting CC65 targeted to my SBC was a major undertaking and took a few months to complete.

I will say the ENC28J60's are nice and you can bit-bang the SPI interface. Bit-banging will be less efficient in terms of speed, but can be made functional.

Good luck!!!

Daryl


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 06, 2011 10:56 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
As first goal, i would like to be able to send/receive data packets.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 07, 2011 2:20 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1737
Location: Sacramento, CA
A good first step would be to test for incoming ICMP (ping) requests and provide a ICMP response.

Here's a good primer on networking in general
http://docwiki.cisco.com/wiki/Internetw ... _Protocols

A list of RFC covering many networking protocols can be found here:
http://www.rfc-editor.org/rfcxx00.html

RFC 792 describes the ICMP protocol
http://www.rfc-editor.org/rfc/rfc792.txt

Of course, there are a plethora of sites and information on the Net that can also provide the information you will need.

Daryl


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Dec 18, 2011 9:13 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
What about Andre's Gecko os?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 27, 2011 11:43 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1041
Location: near Heidelberg, Germany
Dajgoro wrote:
What about Andre's Gecko os?


Thanks for mentioning it :-)

Yes, that would be a possibility. However, the GeckOS TCP/IP stack is far from what I'd call production quality.

Even I have resorted to using uIP for new designs, although not integrated into the OS like my own stack (but that may come).

André


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 30, 2011 10:35 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
It would be nice to have something that can be set up easily on any sbc like EhBasic...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 04, 2012 7:37 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
I've found this: http://www.ebay.com/itm/RS232-serial-TT ... 3f0d4b71fe

It looks quite simple, so now i am interested how useful it really is.
Could a small web server be made using this device(and the sbc of course).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 05, 2012 1:30 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1041
Location: near Heidelberg, Germany
Dajgoro wrote:
It looks quite simple, so now i am interested how useful it really is.
Could a small web server be made using this device(and the sbc of course).


I doubt it. It looks like will get something like a telnet port on the ethernet side onto a serial interface to the host.
Of course, telnet is basically what is TCP, so you can telnet to an HTTP port to download a web page, but I am not sure if it works the other way round.

Especially I am not sure how that would fit with with multiple requests at the same time.

André


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 05, 2012 11:11 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10928
Location: England
You know, I think it might be able to work as a server. The datasheet shows four modes of operation: server and client, udp and tcp. It indicates handling multiple clients when acting as a server. It isn't completely clear how it handles simultaneous clients though, and the configuration table only shows values for setting up 3 of the 4 modes.

There's a more shop-like site here - it's a $29 circuit board module with a 0.1-inch pitch interface and an ARM on board to handle the protocol stack. The serial side isn't handling packets, but a data stream.
Image
Because the datasheet is rudimentary, there's a bit of a risk as to whether or not it can be made to act as a small-scale web server. It's obviously meant for multiplexing simple serial streams, or interrogating remote instruments.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


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 post attachments in this forum

Search for:
Jump to: