cnvogelg / plipbox

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

MiamiDX: Error (3,1) trying to configure the SANA-II device. #6

Open salocinx opened 7 years ago

salocinx commented 7 years ago

MiamiDX throws the following exception when the Plipbox is powered on after the Amiga is powered on (tested with firmware v0.5, not yet tested with firmware v0.6):

Miami Deluxe Request Error(3,1) trying to configure the SANA-II device.

The Plipbox works fine if you power on the Plipbox first then power on the Amiga. If you reset the Amiga after the Plipbox has been working normally, MiamiDX complains that it doesn't get a response to the DHCP request. Appears that the Plipbox is in some undetermined state when the Amiga gets reset and it doesn't get reset unless you power things off then on again in the right order.

This seems to be a kind of reset issue. Is there there some separate software which will do a Plipbox reset prior to trying to connect with MiamiDX ?

cnvogelg commented 7 years ago

well, actually this is not a supported use case. always power on the plipbox first and before launching the device driver.

I admit that having a reset command for the device would be a good idea. I am currently reworking the protocol and I'll keep this in mind.

salocinx commented 7 years ago

Great, some kind of software reset would be lovely. Many thanks for your efforts!

salocinx commented 6 years ago

Connecting the Amiga _RESET signal (pin 25 on A1000 and pin 16 on all other Amiga models) with the Arduino reset pin resolves the problem. Also connect the Arduino reset pin with the ENC28J60 reset pin. This way, the Plipbox will always reset as soon as the Amiga is reset.

Lotusshaney commented 6 years ago

Can you detail where the reset pins are on the Arduino and the ENC28J60 ?

salocinx commented 6 years ago

These are labeled with "RST" on both devices, the Arduino and the ENC28J60 modules. Just make a connection from Amiga Parallel (_RESET) -> Arduino (RST) -> Ethernet (RST). For the connection between Amiga _RESET and Arduino RST you might want to use a standard diode (e.g. a 1N4148) to protect your Amiga additionally.

Lotusshaney commented 6 years ago

Anode or cathode to the Amiga plug ?

Sent from my iPhone

On 11 Oct 2017, at 11:32, Nicolas Baumgardt notifications@github.com wrote:

These are labeled with "RST" on both devices, the Arduino and the ENC28J60 modules. Just make a connection from Amiga Parallel (_RESET) -> Arduino (RST) -> Ethernet (RST). For the connection between Amiga _RESET and Arduino RST you might want to use a standard diode (e.g. a 1N4148) to protect your Amiga additionally.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

salocinx commented 6 years ago

Cathode to Amiga and anode to Arduino.