Apple2Card icon indicating copy to clipboard operation
Apple2Card copied to clipboard

A2osX Ethernet Driver

Open burniouf opened this issue 2 years ago • 17 comments

Where could i find documentation to add an ETH driver to support this board ?

https://github.com/A2osX/A2osX

actually supporting, U1, U2, LANCEGS, SSC/PPP...

https://github.com/A2osX/A2osX/tree/master/DRV

burniouf avatar Dec 31 '22 13:12 burniouf

Support for ethernet on this board has already been implement on IP65. It is based on plugging a W5500 Wiznet module into the board via SPI into the ATMEGA328P. A picture of the board with the ethernet module attached:

https://github.com/profdc9/Apple2Card/blob/main/pics/picver11-with-ethernet.jpg

This is a commonly available W5500 ethernet module. The IP65 version patched to use the Dan ][ controller with W5500 attached is here:

https://github.com/profdc9/ip65

The file that shows how to communicate with the ATMEGA328P to exchange packets is this one:

https://github.com/profdc9/ip65/blob/main/drivers/dan2d.s

It is pretty simple, as most of the logic to actually control the W5500 is implemented by the ATMEGA328P. You can ignore the stuff for "ATARI" as it doesn't really apply here.

A command is sending bytes to the 82C55 port A (wrbt) and receiving them (rdbt).

Initialize: Send $AC,$10,$XX,$XX,$XX,$XX,$XX,$XX (six bytes of MAC addr to initialize W5500) receive $00 as confirmation

Poll: (read packet) Send $AC,$11,packet buf size low byte,packet buf size high byte Receive two bytes which is length of packet. If $00 $00, no packet is available. Otherwise is low byte, high byte of length of packet Then receive that number of bytes as the packet

Send:(transmit packet) Send $AC,$12,packet size low byte,packet size high byte Send exact number of packet bytes Read one byte of result, zero if no error

Hopefully that will get you started.

profdc9 avatar Jan 01 '23 22:01 profdc9

Ok, Perfect! i can quickly write something... as i have no HW yet to test, could you send me one of your team able to test at :

https://join.slack.com/t/a2osx/shared_invite/zt-ens62cl0-xeAFLjlRfUSMtzdc6o~Xew

is Dan2eth.drv a proper name for this driver ?

burniouf avatar Jan 02 '23 07:01 burniouf

Dan2eth.drv is just fine as a name for the driver.

profdc9 avatar Jan 02 '23 12:01 profdc9

I don't have any spare cards right now, but I could build one up. I am quite busy right now so it might be a little while. You could get them faster because there is someone selling them on ebay out of Ireland:

https://www.ebay.com/itm/125663287867

You will also need a W5500 card, this one (available from many vendors):

https://www.ebay.com/itm/311590216566

And a 10 pin IDC (2 rows X 5) 2.54 mm pitch cable to connect the two.

On Mon, Jan 2, 2023 at 1:14 AM Rémy GIBERT @.***> wrote:

Ok, Perfect! i can quickly write something... as i have no HW yet to test, could you send me one of your team able to test at :

https://join.slack.com/t/a2osx/shared_invite/zt-ens62cl0-xeAFLjlRfUSMtzdc6o~Xew

is Dan2eth.drv a proper name for this driver ?

— Reply to this email directly, view it on GitHub https://github.com/profdc9/Apple2Card/issues/11#issuecomment-1368702783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFIJZB4WQ6YUJRI64WRAY3WQJ543ANCNFSM6AAAAAATNRSAAE . You are receiving this because you commented.Message ID: @.***>

profdc9 avatar Jan 02 '23 14:01 profdc9

Ok, thanks... maybe i will order from that guy....

i m almost done writing the DRV.

Any "CLOSE" or "SHUTDOWN" command ? Any way to get Link Status and 10/100 or HD/FD ?

if someone can test, i will probably get it done today or tomorrow....

burniouf avatar Jan 02 '23 14:01 burniouf

I would also need a way to detect if WIZ is plugged in....or not....for auto-detection routine.

burniouf avatar Jan 02 '23 15:01 burniouf

When the initialization occurs, if you do not get a $00, there is an error initializing.

I don't at present have any close or shutdown commands or link status, I only implemented what is needed for IP65.

I could look into adding these if it is necessary for A2osX.

On Mon, Jan 2, 2023 at 9:03 AM Rémy GIBERT @.***> wrote:

I would also need a way to detect if WIZ is plugged in....or not....for auto-detection routine.

— Reply to this email directly, view it on GitHub https://github.com/profdc9/Apple2Card/issues/11#issuecomment-1369015817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFIJZCIUB6WNQRJGXZ7PXDWQLU3XANCNFSM6AAAAAATNRSAAE . You are receiving this because you commented.Message ID: @.***>

profdc9 avatar Jan 02 '23 15:01 profdc9

it is not mandatory, but other drivers are written like this : image image

burniouf avatar Jan 02 '23 15:01 burniouf

DRV done.... image image

meet me at SLACK if you want a TEST media

burniouf avatar Jan 02 '23 15:01 burniouf

Hi, I’m Daniel from Ireland , Happy New Year!!! I seen “you’re talking about me “ 😉 if you need one or more Dan II cards you can always contact me directly at @.*** for a better price. Regards Daniel 

Sent from Yahoo Mail for iPhone

On Monday, January 2, 2023, 3:23 p.m., Rémy GIBERT @.***> wrote:

DRV done....

meet me at SLACK if you want a TEST media

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Daniel102010 avatar Jan 02 '23 19:01 Daniel102010

Sure !!

Happy new year!!!

i will contact you at "@.***" with no delay ;-)

Remy

burniouf avatar Jan 02 '23 19:01 burniouf

Guys, any chance i get a test report about code submitted to Daniel Marks at our SLACK place ?

burniouf avatar Jan 04 '23 15:01 burniouf

Sorry, I have been very busy the past few days.

I was working on getting the AosX you sent me working. Unfortunately I can not use the 800k image you send as I do not have a drive emulator. It would be easier if you could send me a zipped 32 MB image file with the driver to test on it.

Also, having nothing to do with your code, I need to get my wireless gateway to work in my new location so I can test the ethernet, which I haven't been able to do yet. It just won't connect to by router, I need to figure this out.

On Wed, Jan 4, 2023 at 9:39 AM Rémy GIBERT @.***> wrote:

Guys, any chance i get a test report about code submitted to Daniel Marks at our SLACK place ?

— Reply to this email directly, view it on GitHub https://github.com/profdc9/Apple2Card/issues/11#issuecomment-1371086302, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFIJZDCVKAYMQBMUEX4D2DWQWKRXANCNFSM6AAAAAATNRSAAE . You are receiving this because you commented.Message ID: @.***>

profdc9 avatar Jan 06 '23 03:01 profdc9

ZIP file & instructions to use it posted at SLACK. enjoy.

burniouf avatar Jan 06 '23 06:01 burniouf

By the way, how does AosX figure out which slot the Dan ][ card is in? Does it look for a signature of the ROM?

Dan

On Fri, Jan 6, 2023 at 12:45 AM Rémy GIBERT @.***> wrote:

ZIP file & instructions to use it posted at SLACK. enjoy.

— Reply to this email directly, view it on GitHub https://github.com/profdc9/Apple2Card/issues/11#issuecomment-1373206606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFIJZF6BK34H5KMFF3W3G3WQ65QZANCNFSM6AAAAAATNRSAAE . You are receiving this because you commented.Message ID: @.***>

profdc9 avatar Jan 06 '23 12:01 profdc9

Hey @burniouf and @profdc9 , I have a card assembled by @Daniel102010 and I am very curious about the A2osX driver, since I am waiting for a W5500 module from China. Is it available somewhere? I am wondering also if building a driver for the IIGS could be complicated...

Micheledipaola avatar Feb 20 '23 19:02 Micheledipaola

hoy @Micheledipaola ! dan2eth.drv Driver is included in most of available A2osX STABLE medias. An timing issue may be still present when running A2osX on IIgs with this driver....still awaiting test reports.... About driver for other TCP/IP stacks, feel free to get the code from A2osX, and of course you can point any other developer to A2osX team if additional information required about supporting this W5500 eth device.

burniouf avatar Feb 20 '23 19:02 burniouf