-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Uthernet II and make Uthernet 1 a Card #1047
Conversation
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
They are always set to the same value. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This will allow easier integration of Uthernet II and usage in Linux. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
And fix some corner cases of settings (interface) being lost. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
…lised. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
As it is not a bool any longer. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Make tfe_arch_receive more similar to other "receive" functions. Return length if present or -1 if missing. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
I've not looked at this yet - but it sounds exciting! |
I cloned your branch, and got both U1 and U2 working using Contiki:
So great work! :-) I know save-state isn't fully functional yet, but I created a save-state file at the "Request IP address", but on reloading then when I press RETURN (ie. to request the ip address), then it just sits there saying "Requesting...". If I press TAB and select "Cancel" then re-run IPCONFIG, then I can successfully request an IP addr. Anyway, not a big deal at the moment, as I'm sure it's just that the W5100 state isn't being reset when I load a save-state. A few requests:
|
Save state not done yet. |
One mistake... can you move the GPL comment header from Uthernet1.h to Uthernet1.cpp? Otherwise this all look good to merge. Thanks. |
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
Very comprehensive suite, but so far failed to configure it properly. |
Great @audetto! Really good to get this Uthernet II card finally supported! |
I forgot to try building the old VS2008 solution, and there are a few unsupported C++11 things, which would need fixing if there is really a need to continue to keep the VS2008 support going:
I will raise a new issue and get opinions from other project members, but I've been releasing with VS2019_v141_xp for nearly a year now, so probably time to retire VS2008. |
I think this is a strong reason to drop VS2008. I originally wrote with |
This PR adds support for the Uthernet II card to AppleWin, and at the same time converts the TFE to a Uthernet 1 card.
The Uthernet 1 code has been moved, but it is otherwise unchanged (*).
The AW settings tab has been extended and a few corner cases where settings were lost have been fixed.
Uthernet II emulation: not every single feature is currently supported as I could not find examples to test
Tested on:
(*) the PCAP code has been refactored as a
NetworkBackend
in order to ease alternative implementations (libslirp in Linux)Still TODO
Card
interface really needs to includeDestroy
andReset
as virtual methodsdevice
, but their behaviour is different (former does not require a reboot, latter does) and they should all handle the interface name in theCard
constructorBut I think this is a good milestone and worth merging.