![]() |
|
#21
|
|||
|
|||
|
Quote:
(bulk would be #2). Actually I don't know whether there is access in libusb to these attributes at all?Anyroad, if something is strange, it's that bulk does work somewhere (perhaps some concrete releases of libusb/underlying drivers are smart enough to silently change the access type if they find it does not match the pipe kind? Dunno.) By the way, I'm glad to be able to say that my backend problems indeed were only in not knowing details of the device: far as one quick try could say, my backend seems to read the device all right now. So -- depending on how quickly will Joe be able to test -- the application should be out very soon. Actually, anyone daring enough to try can download it and play. If anyone does and it doesn't work -- which is well possible, without testing a small typo could cause that easily -- do please send me the application log (from Console, or you can run it from a Terminal window, if you prefer, in which case the log would stay there).May I ask a few questions... well, to Steve or Mike or whomever who understands the device protocol: First, I've got a configuration block of 15 bytes only... not sure whether it might be some artifact, or whether it can occur sometimes? The block looked like this: 44 15 58 02 F4 01 00 00 1E 00 28 00 5F 01 00 Further, there seems to be a strange inconsistence in that I can switch on/off primary, secondary, and P5V separately, but there seems not to be any way to enquire the current state? Even though the primary and secondary state could be probably determined indirectly from the voltage and current and perhaps also from the soft-LEDs 0x0200 and 0x0400, I see no way at all to enquire for the P5V state? Also, perhaps I've just missed some important part of documentation, but I am not quite sure of the proper interpretation of - LED_PS_ON / 0x0040 - ctxParams.lowTemp Finally -- this is very definitely a question for Mike -- in the long run, I would very much like to allow firmware upload, too. Can you perhaps point me to some documentation where I would find the protocol, or would I ask too much? ![]() (Oh, speaking of asking too much reminds me... please, Mike, could you publish the memory locations for P1900 2.8? Or are you perhaps just letting me know this gentle way I should buy me a 2140 instead asap? )Thanks a lot, OC |
|
#22
|
|||||
|
|||||
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|
#23
|
|||||||
|
|||||||
|
Quote:
This sounds like "bulk or isochronous" (in IOKit the latter'd be #1), and that just does not sound right. Not speaking of the fact they are interrupt -- it's proven by the fact your backend runs with interrupt all right (not speaking of mine, but I don't set up the transfer type, IOkit just uses whatever the pipe does support automatically). Quote:
-- return the release number ![]() Quote:
- 10 minutes of shutdown delay (why not) - 50 hours DMT (sounds reasonable) - zero DLYON? Hmmm.... - just three seconds boot lockout? Suspicious! (Or did it perhaps not be in tenths of second previously? Who knows...) - four seconds of shutdown lockout? Same as above... - 11.27 low battery threshold sounds reasonable. Quote:
![]() Quote:
Quote:
Quote:
![]() Thanks again and best, OC |
|
#24
|
|||
|
|||
|
Oh, and one more question for Mike (or Steve, if you happen to know, of course): I am terribly sorry if this is documented somewhere (must have missed that), but what exactly is the "USB shutdown control" does, if I set the appropriate soft-jumper?
Supposing it sends some concrete code (to be catched by PSUmoni which then would go sleep)? Which code it is? Or is it implemented in a different way? Thanks! |
|
#25
|
|||
|
|||
|
Oh, just in case someone interested before Joe's allowed to test
![]() Hopefully the last alpha -- if it works well, the next release would be a complete beta, including a version check, help, and such amenities, published along with the sources -- can be downloaded from my site. It should more or less fully support P2140 (with "new enough" firmware, alas it is, far as I know, nowhere documented which "new enough" means, but 1.8.3 should be definitely all right) -- including configuration settings, soft jumpers, etc.; it is not tested at all though. If there is a special USB command which should trigger sleep, it is not supported, for the reason it is not documented (or perhaps I've missed the documentation, see my previous question). It does not support firmware upload either for obvious reasons (see the discussion above for details). |
|
#26
|
|||
|
|||
|
Very cool OCS I will check this out when I get the chance.
|
|
#27
|
|||
|
|||
|
The newest release, 1.3 beta, is available along with the sources.
Compared with the previous version, there are only slight improvements like something remotely similar to a help, verbose logs by default switched off, etc. Unless someone finds a bug there (or unless some documentation occurs which would allow me e.g., to implement the USB shutdown -- see 05-22-2007 02:12 AM) I guess it would also be the final release for some time
|
|
#28
|
|||
|
|||
|
Quote:
1.4 beta is fixed along with the sources |
|
#29
|
|||
|
|||
|
OCS do you think it would be possible to give Steve a mention for reverse engineering the P2140 protcol and providing a reference implementation for OS X and Linux? I know you put a lot of work into making the Objective-C event loop compatible/IOKit api, but this would of never got off the ground without all of his hard work.
(Steve is to modest to ask for any himself, so I am going ahead ). Maybe he will even post his full name for yah.(Sorry if I missed this in the source or the App, I am not on a OS X machine right now) Last edited by Game_Ender; 05-24-2007 at 10:34 PM. |
|
#30
|
||||
|
||||
|
Quote:
"About PSUmoni" says, in my personal opinion, very explicitly: USB P2140 Connector: All the hard work by Steve, we just turned it to IOKit, bringing new bugs and problems and have done that from the very first alpha. Also, there's another short one in "PSUmoni Help" (in beta releases): ... the information available were determined using reverse engineering by Steve ... Not enough? Of course, Steve, if you want me to change the mentions, replace "Steve" by any other name, use a different URL, add another one somewhere, or perhaps add e-mail or whatever, just let me know: there's no problem in that at all. Quote:
Quote:
Quote:
Well guess I'm just a bit continental this morning feeling touchy, terribly sorry for that... guess it'll be better when I get a shower and some breakfast
Last edited by OCS; 05-25-2007 at 03:15 AM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|