Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Beta-testing the W5100 Ethernet library.
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sun Apr 08, 2012 3:32 pm    Post subject: Beta-testing the W5100 Ethernet library. Reply with quote

Beta-testing the W5100 Ethernet library. Works great!!
Testing it on the Arduino and Arduino Mega.



Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 531

germany.gif
PostPosted: Mon Apr 09, 2012 8:48 am    Post subject: Reply with quote

so, this is a great step forward! I'm waiting for testing W5200/300 include! Cool
_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
Amino

Bascom Member



Joined: 16 Nov 2009
Posts: 4

poland.gif
PostPosted: Mon Apr 09, 2012 8:56 pm    Post subject: Reply with quote

Very nice!

Where is this library?
Back to top
View user's profile
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 531

germany.gif
PostPosted: Mon Apr 09, 2012 9:27 pm    Post subject: Reply with quote

library is Beta and will be published in coming Bascom Version, so Ben is giving you a preview Wink
_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Mon Apr 09, 2012 9:33 pm    Post subject: AND > 1 post Reply with quote

AND you got to have more than 1 post Wink

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1111
Location: SYDNEY

australia.gif
PostPosted: Tue Apr 10, 2012 12:07 am    Post subject: Reply with quote

There is so much good stuff on the forum its probably taken till now to read it Laughing

Regards Paul
Back to top
View user's profile
Amino

Bascom Member



Joined: 16 Nov 2009
Posts: 4

poland.gif
PostPosted: Tue Apr 10, 2012 6:02 am    Post subject: Re: AND > 1 post Reply with quote

bzijlstra wrote:
AND you got to have more than 1 post Wink

Have fun
Ben Zijlstra

OK Smile

Now, I use software from Your site. Thanks!
Better for me is library for WIZ812 Smile

Regards, and sorry for my bad english Smile
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Apr 10, 2012 6:20 am    Post subject: W5100, W5200 and W5300... Reply with quote

If I understand correctly there will be one library with options for W5100, W5200 and W5300 ethernetchips.

Think the WIZ810MJ, WIZ811MJ and WIZ812MJ all have the W5100 chip.
The WIZ830MJ has the W5300.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
Amino

Bascom Member



Joined: 16 Nov 2009
Posts: 4

poland.gif
PostPosted: Tue Apr 10, 2012 6:24 am    Post subject: Reply with quote

Yes, I'm understand.

Better for me is a library than write "step by step" a driver for W5100. Smile

Regards
Back to top
View user's profile
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 531

germany.gif
PostPosted: Tue Apr 10, 2012 7:46 am    Post subject: Reply with quote

Amino wrote:
Yes, I'm understand.

Better for me is a library than write "step by step" a driver for W5100. Smile

Regards


Laughing


A man must build a house, plant a tree an, of course, had to write a driver for W5xx Device Laughing

_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
Amino

Bascom Member



Joined: 16 Nov 2009
Posts: 4

poland.gif
PostPosted: Tue Apr 10, 2012 10:14 am    Post subject: Reply with quote

six1 wrote:


Laughing


A man must build a house, plant a tree an, of course, had to write a driver for W5xx Device Laughing


Laughing Laughing

Good joke, life is brutal with bascom Smile
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4747
Location: Holland

blank.gif
PostPosted: Wed Apr 11, 2012 1:07 pm    Post subject: Reply with quote

there will be lib for 5100, and one for 5200/5300. the last one will be one lib which supports spi only for 5200 and bus mode for 5300.
_________________
Mark
Back to top
View user's profile Visit poster's website
rossfl

Bascom Member



Joined: 06 Jul 2008
Posts: 20

usa.gif
PostPosted: Wed Apr 11, 2012 8:34 pm    Post subject: Reply with quote

The 5100/5200/5300 is an great way to provide ethernet communications. I know a lot of work was down around the 3100 (i2C) chip, but it looks like Wiznet is embracing the SPI interface.

I am working on a data collection terminal and having a library for W5100 SPI chips is essential. I have been using the Arduino Mega 2560 and the ethernet shield with the W5100 SPI chip. I prefer using Bascom and have replace the arduino boot loader with your sample MCS bootloader and that works great.

The ethernet communimciation is an area i am struggling with at the moment. Ultimately I would like to temporarily store data on a local SD card and forward data records over eithernet to a central PC. that way if the network goes down, transactions can be saved locally, until communications resume. I also like the idea of configuring the terminal as a webserver, so it can be easily setup or reset.

The main features I need, keypad, text display, realtime clock, serial ports for scanner, magstripe port for HID reader, buzzer and leds for status, SD storage are all good, some I/O , but struggling with W5100 communications. So please keep us posted on your efforts. this is a great addition. thank you your dedication and efforts are truely appreciated.
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Apr 11, 2012 8:42 pm    Post subject: wiz810mj routines... Reply with quote

The library will replace the routines from this place

http://members.home.nl/bzijlstra/software/examples/wiz810mj.htm

But I understand Mark has used this info to create his library. Have been testing on the 'small Arduino' and on the Arduino Mega, with an option you can give the SPI SS pin you are using. On the Arduino Mega it is PORTB.4

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4747
Location: Holland

blank.gif
PostPosted: Wed Apr 11, 2012 9:10 pm    Post subject: Reply with quote

Writing the tcplib for the W3100A was a lot of work. it had various shadow registers you need to read/write.
And the NM7010A module had many pins to connect. So i designed a converter board. It is still available in the MCS web shop.
But since the W3100A chip is phased out and so are the derived modules, nm7010A can still be bought in small qty) , some customers asked for the w5100.

I have the wiz810MJ and it also had many pins. It will be available in the MCS webshop. And there will be a converter board too for this module.

With new chips/hardware it is always a matter of reading the datasheet, comparing with the old one. And then hookup things. But this can take a lot of your time.
Ben had sorted out the spi and connections and he also had a file with all registers and their new address. And his bascom sample made it easy for me to test the hardware.
The w5100 lib is based on the w3100 lib but it was build (copied/modded) from scratch. there were simply to many differences.
I use the wiznet api files as a guideline. (i remove the bugs and maybe add some?)
Ben was also helpful with hardware and testing. Now the soft is finished and all i need to do is a simple web server for a load test and updating the help.

The w5200 lib will be based on the w5100 lib. And as i understand it, the w5300 is the same as the w5200 but without SPI, only bus mode.

_________________
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 -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Goto page 1, 2, 3, 4  Next
Page 1 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