Page 6 of 7

Re: uip-tool

Posted: Wed Mar 28, 2018 4:20 pm
by sqward
I don't know what you mean by "URL list" - it is a thing? I don't know HTML very well...

BTW. you can do much more with commandline. Readme on bitbucket lists the "API". It allows you to upload and run files remotely. I use it for demo coding. This is in fact the primary reason I created this tool. HTML interface was just an add-on for people.

Re: uip-tool

Posted: Wed Mar 28, 2018 4:54 pm
by simonsunnyboy
A simple textfile would do, no HTML required.
Just a list of all files in the directory with complete URLs.
Imagine browsing the directory as shown in my screenshot here:

uiptool-example.png


The textfile would contain line by line URLs like these:

Code: Select all

http://192.168.0.200/d/BACKUP/F030GAME.ZIP
http://192.168.0.200/d/BACKUP/DEMOS.ZIP


So there would only be a button or another link providing this list for download.

Re: uip-tool

Posted: Wed Mar 28, 2018 6:28 pm
by sqward
And then what would you do with that list? Can browsers interpret that and batch download a directory?

Re: uip-tool

Posted: Thu Mar 29, 2018 7:37 am
by simonsunnyboy
Not browsers but a small shell script or Python script would do for me.
But I can also imagine that there are browser extensions out there that can scan lists for bulk downloading.
(I am normally not a leecher so I don't have much experience with such tools)

Jdownlaoder seems to have options to import selected lists of URLs.

Re: uip-tool

Posted: Thu Mar 29, 2018 10:18 am
by simonsunnyboy
As I ran into network problems and had to manually restart uIPTool from time to time, I wrote a small utility that allows to tweak the AUTO boot sequence to run uiptool either once or in a repeating fashion.

In the latter mode, the tool is restarted after crashing or undesired termination (e.q. I accidentally hit SPACE on the Falcon keyboard and the tool stopped amidst in a 50MB download)

At GitHub: https://github.com/simonsunnyboy/startuip

Re: uip-tool

Posted: Thu Mar 29, 2018 1:47 pm
by sqward
Going back to your URL list problem, why don't you use the existing directory listings in JSON format?

Re: uip-tool

Posted: Thu Mar 29, 2018 4:45 pm
by simonsunnyboy
It is not a format of choice :P

Outside of the web world, it is a PITA to parse from what I have tasted. My company implemented a JSON parser in C for an embedded project and the guys invovled were not very happy.

But I can try if I can isolate the interesting information with some grep action in the case of uip-tool as the power on the shell is larger.

Re: uip-tool

Posted: Thu Mar 29, 2018 4:53 pm
by sqward
you've mentioned Python script first so JSON shouldn't be a problem there :P

Re: uip-tool

Posted: Sat Mar 31, 2018 5:54 am
by Moulinaie
Hi Sqward !
Very useful tool.
I used it on my MegaSTE to upload many files. No problem at all.
Just hoping that "drag and drop" could be in both directions, from the ST to the PC to make backups.

Great job,
Guillaume.

Re: uip-tool

Posted: Wed Apr 04, 2018 11:00 pm
by sqward
It's not possible (to my knowledge) to implement universally comaptibile (across all browsers) download of multiple files with one user action.

Re: uip-tool

Posted: Thu Apr 12, 2018 6:56 am
by Moulinaie
sqward wrote:It's not possible (to my knowledge) to implement universally comaptibile (across all browsers) download of multiple files with one user action.


I just compress a whole partition on the MSTE into a single LZH file that I can download easely then.
Fortunately, I have a spare partition on the Atari side that can store the LZH.

Guillaume.

Re: uip-tool

Posted: Thu Apr 12, 2018 3:36 pm
by simonsunnyboy
I tried packing my stuffs with ST-Zip and it took a loong time even with compression deactivated.
Not to mention STZip crashed for me with weird Mint kernel messages, I think directory recursion didn't do it any good.

But basically that is the way to go, bundle stuff in container files and transfer only the containers with uip-tool.

Re: uip-tool

Posted: Thu Apr 12, 2018 4:59 pm
by jonord
simonsunnyboy wrote:I tried packing my stuffs with ST-Zip and it took a loong time even with compression deactivated.
Not to mention STZip crashed for me with weird Mint kernel messages, I think directory recursion didn't do it any good.

But basically that is the way to go, bundle stuff in container files and transfer only the containers with uip-tool.


But if you run mint, why not use tar to make an archive? Or some variant of gzip?

Re: uip-tool

Posted: Fri Apr 13, 2018 3:20 pm
by sqward
Just to be sure: uiptool is not meant to run under MiNT.

Re: uip-tool

Posted: Fri Apr 13, 2018 3:32 pm
by simonsunnyboy
sqward wrote:Just to be sure: uiptool is not meant to run under MiNT.


Yes but packing the stuffs for transfer was done under it.

Regarding tar, the antique versions of tar available for MinT refused to pack directories for me.
As I am not using any unixoid file systems, just plain old FAT, it might matter, it is a VanillaMint look-alike.

The versions of tar I tried all crashed when trying to simply tar an directory like I'D do under Linux (no packing with gzip or anything)

tar cvf backup.tar some_dir

Under Linux this will recurse and process fine, with FreeMint and FAT filesystem I got error messages that it wouldn't access the directory given.

I got tired of looking for suitable tar versions so i simply used something that worked. :P

Re: uip-tool

Posted: Fri Apr 13, 2018 3:38 pm
by Moulinaie
simonsunnyboy wrote:I tried packing my stuffs with ST-Zip and it took a loong time even with compression deactivated.
Not to mention STZip crashed for me with weird Mint kernel messages, I think directory recursion didn't do it any good.

But basically that is the way to go, bundle stuff in container files and transfer only the containers with uip-tool.


If I remember well, ST ZIP crashes when managing empty directories...

Is it the reason?

Guillaume.

Re: uip-tool

Posted: Fri Apr 13, 2018 3:42 pm
by simonsunnyboy
Moulinaie wrote:
simonsunnyboy wrote:I tried packing my stuffs with ST-Zip and it took a loong time even with compression deactivated.
Not to mention STZip crashed for me with weird Mint kernel messages, I think directory recursion didn't do it any good.

But basically that is the way to go, bundle stuff in container files and transfer only the containers with uip-tool.


If I remember well, ST ZIP crashes when managing empty directories...

Is it the reason?

Guillaume.


IIRC I have no completely empty directories. It was more than resource allocation overload for recursion. It was GEMDOS related someway.

Re: uip-tool

Posted: Thu Apr 19, 2018 10:30 pm
by susher
I've been trying to work out why UIP-Tool isn't working on my TT with the NetUSBee-lite and have been investigating the ethernec device driver code, which seems quite hacky to get speed. Does UIP-Tool use parts of the ethernec code internally?

(All the NetUSBee tests pass, as does the ht2nec test program which comes with ethernec. The latter can read the MAC address but neither enec3 not UIP-Tool can. I'm wondering if some of the optimisations don't work one certain revs of the TT motherboard as they assume things which may not be always true. I can't see how tst.b is being used to write by reading for a start (BUSENEC.I).)

Re: uip-tool

Posted: Thu Apr 19, 2018 10:39 pm
by sqward
The code is out there in Bitbucket. I didn't optimize the driver too much because a) I wanted it to also work on ST b) the built-in TCP/IP stack itself is the biggest bottleneck.

Re: uip-tool

Posted: Sat Apr 21, 2018 4:32 pm
by susher
sqward wrote:The code is out there in Bitbucket. I didn't optimize the driver too much because a) I wanted it to also work on ST b) the built-in TCP/IP stack itself is the biggest bottleneck.


I'm guessing that as you include the "etherne" hardware test utilities that you are using that code.

I've been doing some experimentation using the STiNG driver. I built a version which had a far longer delay after the reset and magically STiNG could pick up the MAC address of the NetUSBee. It still didn't send/receive packets correctly but it does suggest that it is a timing issue. (I increased the delay for ADelay from #2 to #20 in ie_probe1 within the file ne.s)

If you are using the same code it may be a good idea to increase the delays also and maybe all the TT users who are having problems will be happy again. :-)

Re: uip-tool

Posted: Sat Jun 02, 2018 8:13 am
by Marsupilami
Hi,

i can't run uip-tool, it crashes at launch without any error message (no bomb, i just get back to TOS/GEM).
My config :
1040 STE (french)
TOS : 1.62
RAM : 1M
Hardware : Netusbee Lite
I tried with uipV43.tos and uip.tos : Same problem (wihch one is the good one ? I guess "43" is for Falcon 30...).
The only other thing plugged in my STE is an Ultrasatan.

Thanks for you help.
Edit : found the reason why : 1MB RAM is too low.

Re: uip-tool

Posted: Sat Jun 02, 2018 8:29 am
by czietz
sqward wrote:The code is out there in Bitbucket.


Can you please write some sentences about rebuilding from source? The atarid application (the web UI) wants to include some files from jqwidgets, which, as I found out, is a commercial HTML and Javascript UI framework. There's an evaluation version available, though; but I wonder which version of jqwidgets is required to compile a working uip-tool.

Re: uip-tool

Posted: Sat Jun 02, 2018 8:42 am
by mikro
czietz wrote:
sqward wrote:The code is out there in Bitbucket.


Can you please write some sentences about rebuilding from source? The atarid application (the web UI) wants to include some files from jqwidgets, which, as I found out, is a commercial HTML and Javascript UI framework. There's an evaluation version available, though; but I wonder which version of jqwidgets is required to compile a working uip-tool.

It's even worse. Not only you have to register for download, in the end it's useless. You need jqwidgets 3.2.0 (maybe some other 3.x will work too but definitely not the latest one) which is quite tricky to find / download.

Fortunately, as I have gone that whole path, you can download it from my fork: https://bitbucket.org/mikro_sk/uip-tools/src/master/

Re: uip-tool

Posted: Sat Jun 02, 2018 9:28 am
by czietz
mikro wrote:Fortunately, as I have gone that whole path, you can download it from my fork: https://bitbucket.org/mikro_sk/uip-tools/src/master/


Thank you! That saves much valuable time that I'd otherwise have needed to find and try different versions of jqwidgets.

Re: uip-tool

Posted: Sat Jun 02, 2018 12:44 pm
by ranix
hey thanks for this utility. I used it a few times and it's been great

It won't work on an STFM with 1 meg of ram and an ultrasatan, out of memory, but it will work with 4 megs