Swordfish --> Web Server

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
TonyR
Posts: 75
Joined: Fri Jan 14, 2011 11:49 pm
Location: Sydney
Contact:

Swordfish --> Web Server

Post by TonyR » Wed Feb 24, 2016 1:35 am

I've got a few working Swordfish projects now that gather all kinds of data that's accessible to the user by GSM. I mostly used the PIC18FK22 and Quectel M35 for that.

The question is, whats the shortest way to connect my projects to the net instead of GSM? ie. Is there a tiny Swordfish web server project somewhere?

I noticed that Jerry Messina had kindly posted an Ethernet interface module which (I think) was tested on an Olimex PIC-WEB.

Does this mean in theory I could use Jerrys code in a second PIC on one of my project PCBs to connect to the Olimex and hence the net?

Sorry if this is a dumb question, I haven't ventured into the Internet area before the code all looked too big and complex. Advice appreciated.

User avatar
octal
Registered User
Registered User
Posts: 584
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Re: Swordfish --> Web Server

Post by octal » Wed Feb 24, 2016 10:16 am

You can merge your code directly in the same chip used for ethernet. Your firmware can use the SF ethernet library as any other library.

http://www.sfcompiler.co.uk/wiki/pmwiki ... r.Ethernet

User avatar
David Barker
Swordfish Developer
Posts: 1194
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: Swordfish --> Web Server

Post by David Barker » Wed Feb 24, 2016 10:35 am

This is also worth checking out

http://www.sfcompiler.co.uk/wiki/pmwiki ... User.W5500

I've also worked with the ESP8266 WiFi chip with Firewing with good results. Depends what you want to do I guess...

TonyR
Posts: 75
Joined: Fri Jan 14, 2011 11:49 pm
Location: Sydney
Contact:

Re: Swordfish --> Web Server

Post by TonyR » Wed Feb 24, 2016 6:28 pm

Thanks for advice, will investigate further.

User avatar
Coccoliso
Posts: 152
Joined: Mon Feb 17, 2014 10:34 am

Re: Swordfish --> Web Server

Post by Coccoliso » Wed Feb 24, 2016 7:23 pm

Hi,
Then there is also the W5100 chip with its module WIZ811MJ here http://www.sfcompiler.co.uk/wiki/pmwiki ... User.W5100

TonyR
Posts: 75
Joined: Fri Jan 14, 2011 11:49 pm
Location: Sydney
Contact:

Re: Swordfish --> Web Server

Post by TonyR » Wed Feb 24, 2016 10:23 pm

Well Ive dived in and bought some WIZ550io from Digikey since they're next day delivery.

If you have time - whats the difference between using the WIZ550io which sounds like it will work OK and the WIZ5100 ? In beginners language :-)

User avatar
Coccoliso
Posts: 152
Joined: Mon Feb 17, 2014 10:34 am

Re: Swordfish --> Web Server

Post by Coccoliso » Thu Feb 25, 2016 6:28 am

Hi,
surely the W5500 is the best choice.
The W5500 allows you to not use a local buffer because it has a better memory management.
The W5100 is more popular and the price (from China) is more convenient.

W5500
- RAM 32KB ( 16 RX & 16 TX)
- 8 sockets
- Only SPI
- Few pins
- a more simplified management of buffer compared to W5100

W5100
- RAM 16KB ( 8 RX & 8 TX )
- 4 sockets.
- SPI and paralell
- Many many pins
- there is a difference in the operations to do when there is a buffer RX overrun

Post Reply