07-16-2008 10:58 AM
Shane posted
"so.... "Would a parent class for all USB devices allow adaptation of mouse implementation to other classes of devices?""
Yes that is what I was getting at. It sounded like you were talking about branching the HID class to allow for multiple HIDs. By putting the class HID in a parent class of USB other non-HID devices could be added as children of the USB class at a later time. A suspect very little code would be implemented in the USB class methods but it seems reading the device desriptor would be at that level and the results of that would require casting it as a HID class to be able to access the HID specific stuff like buttons.
Ben
07-16-2008 11:09 AM
In that case, yes, if the HID class inherited from a base USB class you could have other USB Device Classes inherit from that base class. You could probably reuse some of the HID class code while creating a sibling class for other USB Device Classes, (Gah! Too much class!) but it couldn't be inherited from the HID class. If this were to become a community supported long-term project that would be the way to go.
07-17-2008 05:34 AM
09-13-2008 06:07 AM
Hi all,
Strangely I get the error 0xBFFF003E using USB raw with a microcontroler from Freescale.
In fact, I can ask for the USB descriptors fine using the MAX and the control in function. Hhowever if I press the command to read them constantly (say 10x very quickly), I receive this error. 🙂
And the error goes to the point of needing to deleting the driver and reinstalling the whole thing again (inf file), so that VISA can recognize it again (in fact, in the system folder it remains there with the exclamation sign).
Not need to say that the I can read the PID and VID from the uC.
Is it maybe a configuration from the firmware and somehow it freezes if I request it many times? I don't think there would be a problem in the pipe0 in terms of bandwidth... 🙂
Does anyone have any idea?
And something else: I have four pipes of communication (except for the default one). EP1_Out (bulk) - command pipe, EP2_IN (bulk) - status pipe, EP3_Out (bulk) - data out pipe and EP5_IN (int) - data in pipe. I'd just like to send a command through the pipe1 to start an AD conversion. Which exactly block should I use?
I am trying to use the VISA write with the string of commands to do that in hex (dependant on my firmware naturally) and trying to read the interrupt frmo EP5 with the data. But doesn't say a word back. 🙂
Any information is highly appreciated.
Thx!
09-13-2008 06:13 AM
Sorry!
I forgot to mention: how do I select which endpoint I want to send data to? With the bulk-out pipe property node and then just use the VISA write?
Just to confirm and not doing dummy errors..
Thx!
Edgar Charry
09-13-2008 06:20 AM
09-13-2008 06:27 AM
Ops...
However I thought that posting it in different threads, more people might have an idea about it and answer it.
Just a question of probability mate. That's it.
09-14-2008 06:12 AM
echarry a écrit:Ops...
However I thought that posting it in different threads, more people might have an idea about it and answer it.
Just a question of probability mate. That's it.
Wrong...
That's not the way the forums work : a question posted in a new thread will always receive more attention than when appended to an already long discussion. In this later case, if the original posters are not listening (and this is usually the case when the thread is a few weeks old), the post may soon disappear from the front page, pushed down by incoming questions, without any possibility to know if a reply was given. While it is possible to sort threads looking specifically for unanswered questions.
So, post multiplication is not only impolite, it is also counterproductive 😉
09-14-2008 08:17 AM
Chilly,
Way better explanation than "it's not polite".
Well, I started another thread anyway. Let's see what happens..
Thx!
09-14-2008 09:12 AM
Just for the record (i thought it was obvious) :
The forum is a treasury. If someone has a question, first will search the forum if someone else has make that question and got an answer.
If you post multiple times one question, you also multiply the work someone needs to find that answer.
I believe 80% of questions people have, are answered that way. Only 20%, or less are questions that will be posted in a new thread.