Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
199 user(s) are online (126 user(s) are browsing Forums)

Members: 0
Guests: 199

more...

Headlines

Forum Index


Board index » All Posts (Gilloo)




Re: detect usb stick
Just popping in
Just popping in


How about intuition events IDCMP_DISKINSERTED and IDCMP_DISKREMOVED ?

http://gega.homelinux.net/AmigaDevDocs/lib_9.html

You can scan your disk if you get at least a IDCMP_DISKINSERTED event...

Go to top


Re: LibNode, iobsoletes, inlines vs protos
Just popping in
Just popping in


in principle, a source code should start like that:

/* structs and constants */
#include <exec/types.h>

/* prototypes */
#include <clib/alib_protos.h>
#include <proto/exec.h>

/* functions */
/* main */

proto directories link pragmas or inlines with the source code.
If you want to make inlines, hide this in proto directory.
For your case, I suggest you to make a
proto/music.h for each system or compiler or architecture.

Go to top


Re: LibNode check and iobsoletes
Just popping in
Just popping in


Same technique: casting! (it works on all C/C++ compilers :) )

strcpy(env->font_name[FONT_DIRS],((struct GfxBase *)GfxBase)->DefaultFont->tf_Message.mn_Node.ln_Name) ;

env->font_size[FONT_DIRS]=((struct GfxBase *)GfxBase)->DefaultFont->tf_YSize ;

Go to top


Re: LibNode check and iobsoletes
Just popping in
Just popping in



if you want a version free working in 1.3/3.1/4.x... just keep in mind that IntuitionBase is now a struct Library* and was a struct IntuitionBase* in ancient times.

main()
{
if(((struct Library*)IntuitionBase)->lib_Version>38) {
printf("version >38n");
}
else {
printf("version <38n");
}
}

Go to top


Re: ANAIIS 1.02
Just popping in
Just popping in


Yes, but what do you expect ? ( transfer rate = 4KB/s :) )

Go to top


ANAIIS 1.02
Just popping in
Just popping in


ANAIIS 1.02 is available sur Aminet (since 2011 august)
http://aminet.net/package/driver/other/anaiis

Now you can mount
- FAT32 disks with fat95
- RDB disk prepared with HDInstTools (or HDToolBox)
- FFS disks
- PFS disks

No very performant on 68000, but better than floppies.

Go to top


Re: USB Printers & OS4.1 on Samflex
Just popping in
Just popping in


@rwo

Great news! (you have PM)

Go to top


Re: ANAIIS 0.98
Just popping in
Just popping in


0.99 version is here.
http://aminet.net/package/driver/other/anaiis

- external .usbhcd can be used (but not full Sirion compabible due to the lack of docs)
- GUI works with wb1.2 and higher (wb1.1 don't crash but is ugly)
- a lot of things in the GUI have been improved (see statistics menu)

still in progress!

Go to top


[USB SDK 53.1] USBCMD_HCDQuery
Just popping in
Just popping in


I suppose that USBHCDQuery points on io_Data of USBIOReqHCD struct when USBCMD_HCDQuery is in io_Command ?


Where to find an HCD sample code ???

Thanks.

Go to top


Re: USB Printer on OS4?
Just popping in
Just popping in


@Chris

Quote:

Chris wrote:
@rwo

How about drivers for a USB-Parallel cable? I will buy you one (or lend you one for as long as necessary) if it makes my printer usable again.

I'm fairly sure the USB-Parallel adapters use Dot4 too.

Let me know.

Chris


ANAIIS_print code is a hack to match a (7,1,1) interface.

USB-Parallel adaptaters like prolific, uses:
(7,1,1) interface with OUT pipe only (classic printers)
(7,1,2) interface with IN and OUT pipes (bidirectional printers)
(255,x,x) a special interface undocumented.

Dot4 and your printer uses
(7,1,3) interface with IN, OUT, INT pipes, so there is work and code to do to make this device working.

Go to top


Re: SUBWAY USB on AmigaOS4.0 (A1200T-PPC)
Just popping in
Just popping in


@Mikey_C

If you are completly crazy you can try this

http://aminet.net/package/driver/other/anaiis

Just copy usbstart in a directory, and launch it.

Go to top


ANAIIS 0.99
Just popping in
Just popping in


Hi all

ANAIIS 0.98 is available on Aminet
http://aminet.net/package/driver/other/anaiis

Now it's a True USB stack, because the user can plug/unplug devices when he wants.
You can use:
Subway on A600,A500,A500+,CDTV,A1000 with a clockport adaptater.
Highway everywhere a ZorroII slot is present.
(And also Highway + Subway :) )

Kickstarts:
version /OS /
31 /1.1
33 /1.2 /expansion bug can be workarounded.
34 /1.3 /reference for tests.
36..38 /2.x
39..4x /3.x / (40) reference for tests.
50 /4.0 /special mousewheel intuition message.

Can some people test 'USBStat' and 'usbprint' on OS4.x for classic, without installing the usbstart, just to see if it's Sirion API compatible. Tell me what it do?

Thanks.


Edited by Gilloo on 2009/3/3 10:03:53
Edited by Gilloo on 2010/3/25 11:47:23
Go to top


Re: showlib and usblist
Just popping in
Just popping in


@Raziel @Valiant
Many Thanks!
Great surprise that old 68000 program still working with the new OS.

I see that USB modem is not taken in account

Go to top


Re: showlib and usblist
Just popping in
Just popping in


Hello,
There is a volunteer to check usbstat on OS4.x ?
(usbstat is in usblist.lha package on aminet)
many thanks.

Go to top


Re: showlib and usblist
Just popping in
Just popping in


@Raziel

Quote:

Raziel wrote:

...
HUB ERROR : can't get interface
...

lots of HUB ERRORs?
Wonder what's causing it, too less juice on the USB bus?

No only software: certainly bad code to obtain such interface...

No idea to obtain 0x29 HUB descriptor with usbsys.device
In this descriptor there are port descriptions.

xenic, rwo help please! what is wrong in my code?

Go to top


Re: showlib and usblist
Just popping in
Just popping in


@Raziel

usblist1 -vv
(the -vv is for Very Verbose )

Go to top


Re: showlib and usblist
Just popping in
Just popping in


usblist 0.05 available on aminet!

Now it can decode some hub and hid descriptors.
Let me know what usblist1 -vv prints on your screen.
Thanks

Go to top


Re: showlib and usblist
Just popping in
Just popping in


@xenic

thanks
I take the remark concerning lvalues in printf.
I wrote this tutorial too late, I was asleep .

Oho, you have a mouse with wheel and there is an HID!
The next will load and decode the HID descriptor (and also load and decode HUB descriptor)

Nice to see that this code compile and work on OS4.

Go to top


Re: showlib and usblist
Just popping in
Just popping in


Hi all!

A new tutorial usblist version 0.04 is available
http://aminet.net/package/dev/c/usblist

This piece of code shows the "how to" ans tests these functions:
USBFindInterface
USBGetRawInterfaceAttrs
USBNextDescriptor
USBFreeDescriptors

Can you send me the output of
usblist1 -vv (or usblist1 -v)
with some devices plugged
Thanks to all eventual testers

Go to top


Re: showlib and usblist
Just popping in
Just popping in


@rwo
I have it, it's my bedside book
(not really a book, let say document)

I which to know if someone has already done some tutorials concerning:
- still image (class=6)
- usbmasstorage (class=8)

Go to top



TopTop
(1) 2 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project