cnvogelg / plipbox

The plipbox Arduino HW Adapter to bridge Amiga PLIP to Ethernet
GNU General Public License v2.0
90 stars 22 forks source link

Compatibility Issue : ENC28J60 from aliexpress #18

Open youenchene opened 7 months ago

youenchene commented 7 months ago

Hello,

Got some issue on making my DIY plipbox.

After hours of digging it looks like it's the Ethernet module I boughts from aliexpress : https://fr.aliexpress.com/item/1956963721.html

I checked both module are microchip version with a /SS at the end.

Case 1 :

Ethernet Nano module connect to the arduino to the amiga or not.

image

Welcome to plipbox 0.6 20150117 by lallafa (http://www.lallafa.de/blog)

m: mac address 1A:11:AF:A0:47:11

fd: full duplex 00 fc: flow control 00

tl: packet len 05EA tt: packet type FFFD ti: ip address 192.168.002.222 tp: udp port 1A90 tm: test mode 00

Press to enter command mode or <?> for key help 000000.0581 [BRIDGE] on 000000.0624 pio: init: enc28j60

Looks like the software is frozen. Impossible to send a key command or go in command mode.

On amiga side, everything looks ok, except it doesn't work.

Case 2 :

Arduino nano connected with the mini version (tested with 3.3v from arduino and from external supply)

image

CS as SS pin.

Serail logs :

Welcome to plipbox 0.6 20150117 by lallafa (http://www.lallafa.de/blog)

m: mac address 1A:11:AF:A0:47:11

fd: full duplex 00 fc: flow control 00

tl: packet len 05EA tt: packet type FFFD ti: ip address 192.168.002.222 tp: udp port 1A90 tm: test mode 00

Press to enter command mode or <?> for key help 000000.0581 [BRIDGE] on 000000.0624 pio: init: enc28j60ERROR:01

You can interact with the plipbox software, go in command mode etc ...

youenchene commented 7 months ago

Just tested case 1 in à 5 version.

Same behavior but different logs :

Welcome to plipbox 0.5 20131129 by lallafa (http://www.lallafa.de/blog)

fd: full duplex 00 fc: ETH flow ctl 01 fe: filter ETH 01 fp: filter PLIP 01

dd: dump dirs 00 de: dump ETH 00 di: dump IP 00 da: dump ARP 00 dp: dump proto 00 dl: dump plip 00

la: log all cmds 00

geosone commented 6 months ago

i have the same problem

ByteMavericks commented 5 months ago

Same problem here as post #1. Red board, has /SS at the end of the chip onboard. Not sure if that's the issue or not but it hangs at the same place, just after pio init... and then does not respond to anything. This was from Amazon, I believe.

ByteMavericks commented 5 months ago

Well, it's not a problem with Plipbox at all - there's an error on some shields. Basically D12 is connected via a via to the ground of the voltage regulator, and it shouldn't be: it's the MISO line! https://arduino.stackexchange.com/questions/68144/nano-cant-get-reply-from-enc28j60-ethernet-shield

I've confirmed this is the case with mine - D12 is linked to the ground tab of the regulator :( .

There's a video on youtube how to fix it.

youenchene commented 5 months ago

Tx @ByteMavericks !

would be great if you remember the youtube link.

geosone commented 5 months ago

i thonk its this video https://www.youtube.com/watch?v=o3N4AXD6fn8

ByteMavericks commented 5 months ago

That's exactly it, thanks @geosone :) . Of course, I've soldered the thing to a PCB now so tonight's job is desoldering it... :)

geosone commented 5 months ago

me too the comming weekend. or a week later depends on do i need a desoldering gun that i have to buy.

youenchene commented 5 months ago

Ok got some progress on my side.

Behavior after having destroyed the miso/ground connection.

0.5

Welcome to plipbox 0.5 20131129
by lallafa (http://www.lallafa.de/blog)

fd: full duplex  00
fc: ETH flow ctl 01
fe: filter ETH   01
fp: filter PLIP  01

dd: dump dirs    00
de: dump ETH     00
di: dump IP      00
da: dump ARP     00
dp: dump proto   00
dl: dump plip    00

la: log all cmds 00

enc28j60: ERROR SETTING UP!!

After trying a connection from the amiga: Error (3,1) trying to configure SANA-II Device.

0.6

Welcome to plipbox 0.6 20150117
by lallafa (http://www.lallafa.de/blog)

m: mac address   1A:11:AF:A0:47:11

fd: full duplex  00
fc: flow control 00

tl: packet len   05EA
tt: packet type  FFFD
ti: ip address   192.168.002.222
tp: udp port     1A90
tm: test mode    00

Press <return> to enter command mode or <?> for key help
000000.0581 [BRIDGE] on
000000.0624 pio: init: enc28j60: ok! mac=1A:11:AF:A0:47:11 flags=04 rev=00
000004.0178 FIRST INCOMING!
000004.0229 OFFLINE DROP: FFFC
000004.0375 OFFLINE DROP: FFFC
000004.0565 OFFLINE DROP: FFFC
000004.0621 OFFLINE DROP: FFFC
000004.0737 OFFLINE DROP: FFFC
000004.0825 OFFLINE DROP: FFFB
000004.0928 OFFLINE DROP: FFFC
000004.1017 OFFLINE DROP: FFFB
000004.1121 OFFLINE DROP: FFFC
000004.1210 OFFLINE DROP: FFFB
000004.1266 OFFLINE DROP: FFFC
000004.1323 OFFLINE DROP: FFFC
000004.1411 OFFLINE DROP: FFFB
...
000056.3935 OFFLINE DROP: FFFB
000056.3992 [MAGIC] online
000056.4077 FIRST TRANSFER!

Then impossible to interact to the terminal once I actviate Online on MiamiDX

Basically network is not working.

Command p (before connexion)

m: mac address   1A:11:AF:A0:47:11

fd: full duplex  00
fc: flow control 00

tl: packet len   05EA
tt: packet type  FFFD
ti: ip address   192.168.002.222
tp: udp port     1A90
tm: test mode    00
00 OK

Weird behavior on ping :

 ping 192.168.0.34                                                                                2 ↵ ──(Dim,fév04)─┘
PING 192.168.0.34 (192.168.0.34): 56 data bytes
Request timeout for icmp_seq 0
ping: sendto: No route to host
Request timeout for icmp_seq 1
ping: sendto: Host is down
Request timeout for icmp_seq 2
ping: sendto: Host is down
Request timeout for icmp_seq 3

(no ping on amiga side)

dev_test -d plipbox.device

On amiga side

[plipbox 0.6 (17.01.2025)
 (0,0)]
Waiting for incoming packets…

On Terminal side

000132.1136 [MAGIC] online
000132.1330 FIRST TRANSFER!
youenchene commented 5 months ago

May be I have destroyed a bit too much (and link between D12 and MISO)

ByteMavericks commented 5 months ago

I would say you've probably damaged the connection that is supposed to be there, but it's unreliable. The other question is where did you get your Arduino from...?

I gave up with repairing mine, and bought a new load of adapters from aliexpress. Have built one up and now about to test...

youenchene commented 5 months ago

One official from europe and one cheap from ali.

I am stuck in the desoldering. (It's a pain in the a...)

So keep me updated with your new adapters.

ByteMavericks commented 3 months ago

Well, with the new adaptors I'm still getting no joy. PIO_TEST just times out despite setting the IP address and port on the parameters and matching on pio_test... and in bridge mode I keep seeing OFFLINE DROP 003C and 00E6. Nothing on the Amiga, it fails to configure.

ByteMavericks commented 3 months ago

I've also tried different Arduino Nano v3, including ones from arduino themselves. Exactly the same. I am suspecting the ethernet modules... again!

youenchene commented 2 months ago

ok... can you share the references of the ethernet modules which gave no results.