• Post Reply Bookmark Topic Watch Topic
  • New Topic

USB library  RSS feed

 
R Sriram
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just now started working on a Java USB library. I looked at the JSR80 for the interface specification. But, I am not clear yet. My concern below:
1 - Since the library intends to handle all the device management(device enumeration/send/receive) on its own - do I use JNI wrappers to delegate the call to underlying kernel? If so, can you provide some pointers? I tried to lookup how "Sockets" are implemented, but, I could not narrow it down to a level where the native methods are implemented. I'm Sure, I am missing something here.

Thanks,
Sriram
 
Paul Clapham
Sheriff
Posts: 22507
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
R Sriram wrote:I have just now started working on a Java USB library. I looked at the JSR80 for the interface specification. But, I am not clear yet. My concern below:
1 - Since the library intends to handle all the device management(device enumeration/send/receive) on its own - do I use JNI wrappers to delegate the call to underlying kernel?
Yes. You will have to use native methods here.
If so, can you provide some pointers?
Pointers about what?
I tried to lookup how "Sockets" are implemented, but, I could not narrow it down to a level where the native methods are implemented. I'm Sure, I am missing something here.
I'm sure you are too. It sounds to me like you don't know how to get started, or you don't know what has to be done. But you have the specs at hand, so you should be able to go through them. We really need a specific question here, we can't do much about general incomprehension.
 
R Sriram
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
Thanks.
I would like to know where to look for the native methods implementations. Do I need to look at the OS's socket implementation part?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying you want to look at how java.net.Socket (and related classes) are implemented, so that you can use them as an example? You'll need to download the complete JDK source -- not just the src.jar that comes with the JDK, but for example the source you can download here.

 
R Sriram
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah. Thanks very much Ernest. I will look into it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!