VOGONS


Reply 540 of 558, by mbbrutman

User metadata
Rank Oldbie
Rank
Oldbie
Jules_nerd wrote on 2025-08-28, 14:14:

But even just accessing windows shares over the network seems a little slower than I thought it should be, I mean even a 386 can handle TCP/IP over a network adapter at decent rates, so surely it cant be the processor struggling with TCP/IP.... so 6KB/S seems a bit poor for a 115200 baud rate link, unless the overhead is much higher than I thought?

Let's do some basic math ...

Assuming the serial connection is keeping up and not dropping bytes, 115,200 bits per second (not baud, but bits per second) is 11.25KB/sec maximum. It will never exceed that.

I forget what overhead SLIP adds, but it's minmimal. You still generally have a fake Ethernet header for compatibility with the programs that are expecting a packet driver. And then you have 40 bytes of IP and TCP headers even before you get to your data, but on larger data transfers that cost is amortized.

If your machine is using a 16550 style UART you are getting 16 or 64 bytes at a time on each interrupt. If it is an 8250 style UART it is being interrupted for each byte, and it would be faster to using polling instead of interrupts. After you get the packet it has to be copied to the program, processed, and then something can happen. So unless you are doing a pure speed test, you will never get 11.25KB/sec out of it. Especially if you are writing to storage, as FTP does.

Yep, serial sucks for large transfers.

Reply 541 of 558, by Jules_nerd

User metadata
Rank Newbie
Rank
Newbie

Good to hear a view from someone that knows whats going on under the hood so to speak... Im a hardwre guy & an analogue one at that!
Ahh yes,.... as soon as I think of modems etc the word baud pops into my head....my mistake! and my 14KB/S ish max rate was wrong.. i guess I'd forgotten the start and stop bits? so we have 10 bits per byte of data transfered over the serial port...
I never expected it to be quick, But still.... Im seeing 6KB/S max... just on large file transfers. So we are still loosing something somewhere... I was hoping to get closer to 10KB/S
With 40Bytes I was guestimating say, 10% overhead from the TCP/IP headers?
Its prob as you say down to how fast its managing to deal with all the data from the 16550 UART... This is more or less what I was thinking when it is using a web browser - a lot of processing time is taken up with just rendering the web page... & in those circumstances Im generally seeing less than 1KB/S
I'll do some tests with simple transfers using DOS based utilities & see what that delivers...
If 6KB/S is the best it can do... then I can live with that for the convinience of WiFi... 😀
But Ill dig a bit deeper just to see if I can squeeze a little more out of it... are MTU settings etc likely to help?

Reply 542 of 558, by mbbrutman

User metadata
Rank Oldbie
Rank
Oldbie

It's generally 10 bits per bytes transferred, assuming you are using No parity ,8 data bits, and 1 stop bit.

While Ethernet benefits from large MTU sizes (1500 being the largest possible), I would experiment with cutting the MTU size down on a serial connection. MTU 576 should work for most things, with NetDrive being an exception. (NetDrive expects the MTU to be 1200 or more to avoid fragmentation.) The reasoning is that if you are dropping bytes at the UART or experience corruption, it will be detected more quickly and there is less to retransmit.

At MTU 576 you will be approaching nearly 10% overhead for the fake Ethernet header, IP and TCP headers. But that should still get you to 10KB/sec of throughput. Almost any hard drive should be able to read or write at least 80KB/sec, so if you are doing file transfers you are probably not constrained by the hard drive. You might just have excessive packet retries.

Reply 543 of 558, by Jules_nerd

User metadata
Rank Newbie
Rank
Newbie

Many thanks for your suggestions of course the whole mTCP suite!
Ive done lots of tests now.
Im seeing between 9 & 10KB/sec transfers in Win95 using windows files shares, in both directions - so its flying! (OK, my expectations have been well and truely managed! 😉 ) So obv thats as good as can be expected. Not sure why i was thinking/getting 6KB/sec before. Ive done so many tests etc Im not sure if Ive changed something.... its also possible that late at night after a couple of beers I thought 1min=100secs!! 😁

Ive used the mTCP spdtest & nc (your DOS one) to do some tests from DOS. This machine (pocket 386) has a compact flash instead of a hard drive, it doesnt use it in a way that makes the most of it, but still gets something like 350 -450KB/sec -not 100% sure on the exact figures, its been while since I tested, but fast enough anyway...
I set up a DOS 6.22 test machine to transfer to/from, a 233mmx with a 3com 905b card.

No problem transfering from the pocket386 to the 233mmx, its happy with mtu=1500. and achieves a transfer rate of over 10.2KB/sec!!
Not so transfering the files from the 233mmx to the pocket 386, neither nc or spdtest (at the pocket 386 end, always nc at the 233mmx end) would work with mtu=1500; the nc running on the 233mmx would finish, but nc on the pocke386 would hang and I had to ctrl C & Alt x out of it. With mtu=1500 and spdtest at the pocket 386, it would complete, but had only transfered something like 3/4 of the 1MB test file...
when using mtu=1500, the activity light on the esp-12 modules only flashed sporadically, it would flash once a second 3 or 4 times, then have a brief burst of activity, then go back to flashing once a secend...
if it helps figure it out, there is no hardware flow control on the serial port between the esp-12 and the 16c550 on the pocket386...

Tests with lower mtu like 512 worked fine on nc, files transfered fine a little slower than you would expect from the ratio of 40 bytes to the mtu, but not far off @ 8.2KB/sec. However, the results from sptest had me puzzeled, it gives a warning about the packet size being smaller than expected.
Regardless of how low i set the MTU, spdtest always gave me this warning. Ive attached some outputs from sptest @ a few different mtus.

It does seem that Im gettign the transfer rates that are reasonable now (ok still slow in wfw 311 when web browsing, but it cant process the web page & images much faster anyway...) but what is causing the warning? does it point to something I could set up better?

Ill try some DOS network apps next!
thanks

Reply 544 of 558, by Twiggy

User metadata
Rank Newbie
Rank
Newbie

Hey,

Not sure if it's worth a separate thread, but has anyone else got stuck with "No Signal" error, and when disabling VGA out (seems to have it set to on during each boot) it just shows a blue screen?

I've gone through the manual and can't really find a solution.

Cheers!

Reply 545 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

Hey i just got this device but it just won't read my USB drives, tried formatting an 8gb drive in FAT32 and it just shows up as empty. Then tried an old 256mb drive in FAT16 and it just freezes until I remove it.

I read it's possible to remove the card bundled with the device but I wouldn't know how? Tried pulling but it's not budging.

Reply 546 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

apparently theres a better driver for the usb controller, but how do i get the driver in the pocket386 in the first place? seems like a catch 22 situation

Reply 547 of 558, by javispedro1

User metadata
Rank Member
Rank
Member

You may want to get a compact flash reader, for example. The compact flash card is removable.

Reply 548 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

How do you remove it? I tried pulling and pushing but it won't budge

Reply 549 of 558, by BinaryDemon

User metadata
Rank Oldbie
Rank
Oldbie
kelmer wrote on 2025-11-06, 13:36:

apparently theres a better driver for the usb controller, but how do i get the driver in the pocket386 in the first place? seems like a catch 22 situation

I think most of us used the old driver to mount a USB partition then copy the new one to the Compact Flash. Alternatively you could pull the Compact Flash and copy it directly there using another computer.

There are a few things you should know about the flash drive: it has to be 512mb or less, there can only be 1 partition on it, it has to be fat16 formatted. I dont think formatting as larger size as 512mb works but not sure - I've always used 512mb drives (you can get them super cheap now a days).

Reply 550 of 558, by javispedro1

User metadata
Rank Member
Rank
Member

The "new"(patched?) drivers floating around also do not improve compatibility and just provide a minor speed bump.

Last edited by javispedro1 on 2025-11-06, 13:52. Edited 1 time in total.

Reply 551 of 558, by kagamma

User metadata
Rank Newbie
Rank
Newbie
kelmer wrote on 2025-11-06, 13:40:

How do you remove it? I tried pulling and pushing but it won't budge

I use a keycap puller, tho you should be able to pull it out using your fingers, just a bit harder to do.

Reply 552 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

I used a 512Mb flash drive, tried both Fat16 and FAT32 but it just freezes when i access d: 🙁

Reply 553 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

Problem is also, its not easy to get such small usb sticks anymore

Reply 554 of 558, by kagamma

User metadata
Rank Newbie
Rank
Newbie
kelmer wrote on 2025-11-06, 14:03:

Problem is also, its not easy to get such small usb sticks anymore

China still make those no-brand 512MB USB sticks which work for me. Depend on your location it may hard/take a long time to get one.

Reply 555 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

Do you have a link to get one of those? Min i can find in aliexpress is 2gb.

Reply 557 of 558, by kelmer

User metadata
Rank Newbie
Rank
Newbie

Oops guess I was misled by the title which says only gb sizes first, thanks

Reply 558 of 558, by javispedro1

User metadata
Rank Member
Rank
Member

I do not think it is a matter of the physical size of the pendrive, albeit with a smaller one it is more likely that your partitioning program will put in CHS values that make sense.