15 November 2005, 21:32 | #1 |
Posts: n/a
|
A600HD, 1 meg of ram, AMOS, and networking...
My problem is kinda obscure, but then again, when my problem isn't that obscure, I can usually figure it out myself... So, gentlemen (and ladies, if any) I need advice.
Back in the days of yore, I had an A500 with a 512k ram expansion, which spent most of it's day running an AMOS application, (essentially, a home automation user interface with bells and whistles) connected by null modem to a PC, and regularily exchanging messages. Said AMOS application would suck up most of RAM and resources of the machine. Eventually that A500 died. Now I managed to get my hands on A600HD, with a 512k RAM expansion, giving me 1 meg of RAM total, again. I also happened to have a PCMCIA network card, which works fine in that particular Amiga. I want to modify my AMOS program so that it would exchange messages not over the serial port, but over the net instead, since the backend was written for OS/2 back then and I'd need to rewrite it anyway to resurrect this application. This, however, presented me numerous complex problems: 1) 1 meg of ram is not much. There's no hope whatsoever to get an accelerator or a simple expansion board. I got AmiTCP 2.3 working, however, this leaves me with 512k free memory, leaving me with nothing to debug the program. (the compiled version works fine with AmiTCP loaded, though). There is no way to go back to the non-Pro AMOS to cut back on ram either, cause I need the new instructions. The communication needs are very minor - I just need to send text lines back and forth, and there's no real need for speed at all. Which tcp/ip stack implementation and which version takes up the least ram? 2) I have found at most four ways to make an AMOS program communicate over the net:
|
15 November 2005, 22:05 | #2 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
@Mihara:
The A600 has 1MB chipram as shipped from the factory. You can fit another 1MB in the trapdoor-slot underneath the computer which will give you a total of 2MB chipram. As you have got AmiTCP2.3 working by yourself it seems you are rather handy and should have no problems with AmiTCP3.0b2 which is the latest AmiTCP released under GPL. It is a bit troublesome to install as the install-script creates a bit faulty startnet-script, but it is mentioned in the notes in the archive what it does wrong. Anyhow, this version is much more compatible with TCP/IP apps and should work with rxsocket.library. Last edited by patrik; 16 November 2005 at 04:22. |
15 November 2005, 22:11 | #3 |
Posts: n/a
|
Woo. Thank you for mentioning that. Really, that helped a lot. I found that the memory expansion board I knew it had in the trapdoor slot was turned off! Now have 1.5 megs chip ram after loading AmiTCP 2.3, which means I can probably install something more flexible without it choking.
Any advice on the software problems, though? |
15 November 2005, 22:20 | #4 |
Posts: n/a
|
Oh, and which TCP stack should I install to get most apps working and still not chew up the memory too quickly? Which one is most popular and why?
|
15 November 2005, 22:55 | #5 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
@Mihara:
AmiTCP is a very good choice as long as you have knowledge enough to manage it. It also is the fastest and least memory-eating stack. As far as I know, there is no real difference in memory consumption between AmiTCP 2.3 and the latest AmiTCP 4.3. Though the old AmiTCP 2.x stacks have some compability issues and the best thing would be if you could get hold of the commercial version 4.1, 4.2 or 4.3 of AmiTCP, but they arent sold any longer and are thus hard to come by. Anyhow, 3.0b2 is a big step from 2.3 and works with the majority of the user-apps as it is more or less the same as AmiTCP 4.0, so you should give that one a try. Otherwise as far as compability goes, it is very compatible as it was the first widely spread TCP/IP stack on the Amiga. All modern TCP/IP stacks on the Amiga generally interface with user-apps in the same way - they create bsdsocket.library which the user-app then opens, so except from a few quirks in some versions of some TCP/IP stacks they are the same from the programmers point of view. There is ofcourse also the amigados TCP: handler you can communicate via, but that is also supplied by most TCP/IP stacks. Regarding the AMOS programming, the BSDSocket.lha package sounds like the best concept if you could get it to work. Last edited by patrik; 16 November 2005 at 04:22. |
15 November 2005, 23:16 | #6 | ||
Posts: n/a
|
Quote:
Quote:
If all else fails, I could probably make up some crazy procedure with binary operations and chr$, since speed is not an issue when forming library calls to open sockets, however, finding that extension would be a better solution. |
||
16 November 2005, 03:05 | #7 |
Posts: n/a
|
@patrick
Just in case you're still watching this thread. I got AmiTCP 3.0b2 working just fine, however, it hogs the cli window it starts in, (which is the one opened for startup-sequence) despite being 'run amitcp:amitcp' and whatnot. It's definitely the AmiTCP process itself that's doing it cause once I 'rx "address AMITCP; KILL;" the window closes by itself. Searches don't give me conclisive information on what to do with this, (except one odd advice to run it from WBStartup with IconX, which I'd rather not use, since I'd rather not loadwb at all later on, this thing is meant for unattended startup anyway) neither do the docs. Any clues? |
16 November 2005, 03:25 | #8 |
Registered User
Join Date: Sep 2004
Location: Tacoma, WA USA
Age: 52
Posts: 1,915
|
If you wanna get that underbelly ram expansion to 1MB just go looking for some old ass PC video cards. Like 1MB or 2MB ones and see if you can find the chips in a socket. That is how I found some for my A590 and A601 cards.
|
16 November 2005, 04:19 | #9 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
@Mihara:
Good work! The cli window hogging is solved if you, in the AmiTCP:bin/startnet script redirect both input and output from/to NIL: for the "run AmiTCP:AmiTCP" and "run AmiTCP:bin/inetd" lines by changing them to "run <>NIL: AmiTCP:AmiTCP" and "run <>NIL: AmiTCP:bin/inetd". Btw, you probably already know this, but to run the inetd superserver is optional and if you dont need its functionality, you would save you some precious ram by skipping it. You might already have done so, but to stop it from poping up an extra window for login, you should remove the "AmiTCP:bin/login -f patrik >"con:*/*/*/200/AmiTCP-IP Login/AUTO/CLOSE/WAIT"" line it has added in the "AmiTCP/IP" section of your S:User-Startup script and instead add "AmiTCP:bin/login -f patrik" at the end of your AmiTCP:bin/startnet script. Ofcourse replace "patrik" with your default user . Last edited by patrik; 16 November 2005 at 04:59. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A2000 4.1 ... 1 Meg Chip Ram Mod? | Pioneer500 | support.Hardware | 4 | 10 May 2013 20:05 |
Is it right you can add 32 meg of ram into a 1200? | Kola | New to Emulation or Amiga scene | 17 | 14 September 2012 10:12 |
For sale: Apollo 1240/40Mhz with 32 Meg Ram | dabone | MarketPlace | 1 | 15 December 2010 23:51 |
FOR SALE: A1200 8 meg Ram/FPU A1208 plus A3000 daughter boards | Jimbo | MarketPlace | 2 | 01 September 2010 18:23 |
A500 1 Meg Chip Ram Machine..... | Galahad/FLT | MarketPlace | 10 | 10 September 2003 20:29 |
|
|