Help for building a driver and newbie questions in the area.

Hello,
i�m currently needing to develop a driver for a usb device, a link cable. I allready know (at least i think i know) the process to depevelop such driver.
The process would be something link this (dind put any arguments in functions to be faster):
- usb_client_attach (dev_info_t * dip, USB_DRIVER_VERSION, FLAGS); - for system reconiction of device
- usb_get_dev_data (); - for having the main/control pipe
- usb_lookup_ep_data(); - for get endpoint
- usb_open_pipe(); - opening the pipe (can be done several times for several pipes)
- read/write/bulk transfers(); - exchanging data throuh input/output pipes if such exists
- usb_close_pipe(); - closing all pipes other than the main one
- usb_client_dettach () - dettaching device from system
i think this is the general order of events/routines.
My problem is in the first routine, the usb_client_attach(). How do i know that i�m connecting the right device. (let�s say i�d like to connect a USB PEN for example), the dev_info_t * dip is an empty structure, how do i fill it with the device information for the device i�d like to connect? For example how come do i know if the device info in the "DIP" structure belongs to the USB PEN i�d like to connect and not to any other USB device connected?
I searched all documentation (the online one) and could not find an example of how could i do such a thing.
Is there any way to do that?
Thanks in advance for any help, i�m really needing to have some clarification in this matter.
Miguel

well just a quick update, i changed the way of programing and stated using the /dev/usb/xxx.xxx/0 pipes and allready can get the device information.

Similar Messages

  • How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7

    How do I have itunes use/detect my external hard drive and place music on the external drive from the itunes store? There are no music files on my pc yet.  I will like to do this after installing itunes 11 on my pc for the first time. I am using windows 7.  HP computer intel Dual Core.  Thanks for any help!

    Hey idw3,
    Welcome to Apple Support Communities, and thanks for the question. Follow the instructions on this article to move your iTunes Media folder to an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Regards,
    David

  • Good book for Building a Driver?

    I'm looking for a book that focuses on JDBC from the point of view that will help with building a driver. How about JDBC API Tutorial and Reference, Third Edition? I would just like one that explains the API in a manner that will help understand how to implement the many methods which need to be subclassed for a Connection, Statement, and ResultSet.
    Any ideas on any good books?

    I have vague recollections that one of the mainstream Java book series had a title on JDBC a few years ago that sold itself as being for driver writers rather than users.
    Presumably it was from either O'Reilly, or the Sun Java series from Addison Wesley, but I 've been wracking my brains but can't remember the title. Unfortunately I didn't buy it whichever it was.
    Any idea what I'm talking about? Did it exist, and if so, did it not live up to its backjacket claims? It would have been JDBC 1.0 oriented if it did exist, but if it's still available (even if not in print) it might make a good starting point.
    Hopefully I'm not talking complete rubbish here...
    Dave.

  • Can i use time capsule for external h drive and also for time machine?

    Can i use time capsule for external h drive and also for time machine?

    Hello, vascocaco.
    If I understand correctly, you're wondering if you can use your Time Capsule's internal hard disk both for Time Machine backups and as an ordinary drive. Is this your question?
    You can, but Time Machine backups may take longer.
    To do it, you should partition your Time Capsule's hard disk to create one volume for the backups and one for other files.

  • Hello. So I have used my iPod touch 4g for 2 years now and need to change the battery. My question is: will I lose everything I have on my iPod like my music,pictures and apps if I change the battery on my iPod touch 4g?

    hello. So I have used my iPod touch 4g for 2 years now and need to change the battery. My question is: will I lose everything I have on my iPod like my music,pictures and apps if I change the battery on my iPod touch 4g?
    Thanks for answer

    If you go to Apple, they will not replace your battery, but exchange your iPod for a refurbished iPod of the same model with a new battery.  Therefore you will lose everything that is not backed up.  If you change it yourself or have a third party change it, you will most likely not lose anything (but still best to make a backup as lllaass suggested).

  • Is it OK to use USB 2.0 connection for Glyph external drive and Mac Pro as project drive?

    Is it OK to use a USB 2.0 connection for Glyph external drive and Mac Pro as project drive? I was told by Sweetwater tech support to use Firewire, but both the FW400 and FW800 connections crash my audio interface software mixer (Presonus' "Universal Control" software).
    Both Firewire connections also create a 10 second hang for each Command-Save that I do.
    USB 2.0 for the external drive seems to be working so far, but is there some reason I should be wary of using this as my go-to project drive? In other words, I am imagining that there was probably some definite reason that the tech support guy mentioned not to use it. But maybe not. It's a brand new Glyph. In any event, it's nice to have the 10 second hang eliminated, and I was just looking for some advice, since digging into the Presonus software issue could take some time.

    If you have a mac pro, why not stick the external HDD inside via one of your many SATA cables & have it run 9 times faster than your USB?
    Or stick a HDD CADDY in your mac pro, so you can slot in a full sized 3TB HDD for recording, and when you are done, pull it out & slip it in an external enclosure if you need to take it places?

  • How to create Import format for building  version Hirerarchy and Node

    Hi
    i Want to know  how to create  Import format for building version  Hirerarchy and Nodes.Can anyone  show me with example  or format  for version  Hierarchy  with few nodes for the hierarchy
    i Want to Build   this   1. Version1 (Version)
                                     2.Account (Hirerarchy)
                                     3. Balancesheet (Limb)
                                     4. Assets (Limb)
                                     5. Cash (Leaf)
    Thanks,

    Please follow the DRM User Guide,
    http://docs.oracle.com/cd/E17236_01/epm.1112/drm_user.pdf
    Below is my preferred approach, by selecting only relation and Hierarchy sections,
    The relation section contains the Node Name and Parent Name ( you can include any other properties, but as a best practice keep the Parent Node as the last column).
    The Hierarchy ( Hier ) section contains the Hierarchy Name, Top Node and Hierarchy description
    Follow the Import steps and provide a Name for the version.
    ++++++++++++++++++++++++++++++++
    [relation]
    AC_BalanceSheet AC_Account
    AC_Asset AC_Account
    AC_Cash AC_Account
    [hier]
    Account AC_Account AccountHier
    ++++++++++++++++++++++
    Note: Please delete all the special characters (TAB) created at the end of  [relation] and [hier] sections while you copy the content from an Excel sheet to a Notepad.

  • Hi, I need help for my notebook Macbook Pro - I turned on the notebook and the screen look like start but did not start nothing, the screen froze and continuing load, load and never stop.

    Hi, I need help for my notebook Macbook Pro - I turned on the notebook and the screen look like start but did not start nothing, the screen froze and continuing load, load and never stop

    screen look on

  • Why I receive started 2 hours the message that I must put my password on Iclod for my apple id and when I put the password I receive the message that the paswor is not god!What can I make in this case?Please help me

    why I receive started 2 hours the message that I must put my password on Iclod for my apple id and when I put the password I receive the message that the password is not god!What can I make in this case?Please help me

    Hi it sounds like a scam delete Email
    bsydd uk

  • My ipod warranty ran out a few months ago I have a nano 5th gen. The problem is that if I want to play a song it would show the album artwork for about 3 seconds and go back to the main menu with no music playing. It'snot the head phones or ear jack. help

    My ipod warranty ran out a few months ago I have a nano 5th gen. The problem is that if I want to play a song it would show the album artwork for about 3 seconds and go back to the main menu with no music playing. It'snot the head phones or ear jack. Please I Need Help

    See this Troubleshooting Assistant
    http://www.apple.com/support/ipod/five_rs/nano5gen/
    Reset
    How to reset iPod

  • I'm looking to buy a new Macbook Pro, and have questions about the Applecare extended warranty?

    I'm looking to buy a new Macbook Pro, and have questions about the Applecare extended warranty? I want to know if the 3 year extended warranty covers what damage. Like water damage, accidental damage, lost or stolen macbook, manufactory defects, or any other kind of damage, maybe be even cosmetic damage. Can anyone help me?

    If you are talking about features of the MBP itself, as long as you are not looking at  the Retina models, then the memory you can upgrade yourself for a lot less than Apple charges, and that does not affect the warranty as Apple considers memory a user permitted upgrade.  Great sources are Crucial and OWC, both are Mac specialists and have on-line videos on how to do the install.
    If the 15" is what you are looking at, a good upgrade is the 7200 rpm hard drive, gives a little better performance over the standard 5400 rpm drive.
    The Hi Res screen is good if you do a lot of graphics work.
    Comparing the 13" amd 15" you will notice the 15" has a second, discrete graphic processor...helps when you get into heavy duty videos, games, graphics...but keep in mind that kicking in the second processor uses a lot of power and will run the battery down faster.
    If you are looking at the Retina models, then keep in mind there are no post-purchase upgrade options...you have to buy with everything you want at the start.
    Just some thoughts.

  • TS2446 I just got my iPad,  I have an iPod. When I go to put apps on it says my apple I'd Is disabled. I have reset the passwords. Somehow I have two id's?  I've gone into settings for apps signed out and back in with the new p.w.  I can't think of what e

    I just got my iPad,  I have an iPod. When I go to put apps on my new ipad it says my apple ID Is disabled. I have reset the passwords. Somehow I have two id's?  I've gone into settings for apps signed out and back in with the new p.w.  I can't think of what else to do to get the disabled block off.  Any ideas?? Thanks

    See this Apple document for help...
    http://support.apple.com/kb/ts2446

  • I am replacing my existing SATA hard drive to a Solid State hard drive and want to image the drive, is this possible?

    I am replacing my existing 320 GB SATA hard drive that clicks and makes weird noises to a Solid State hard drive and want to image the drive, is this possible?  I then want to replace the DVD with a secondary large drive for storage.
    So I am looking for any "gotchas" that I may be unaware of.
    Thanks!

    Put the Old drive in an external notebook drive enclosure. Install the SSD in your computer. Boot from your Old drive's Recovery HD:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Clone Lion/Mountain Lion using Restore Option of Disk Utility
         1. Select Disk Utility from the main menu then press the Continue
             button.
         2. Select the destination volume from the left side list.
         3. Click on the Restore tab in the DU main window.
         4. Select the destination volume from the left side list and drag it
             to the Destination entry field.
         5. Select the source volume from the left side list and drag it to
             the Source entry field.
         6. Double-check you got it right, then click on the Restore button.
    Destination means the New SSD. Source means the external Old hard drive.
    Set the new Startup Disk to the SSD and restart the computer.
    This process clones both your old OS X volume and the Recovery HD volume to the SSD. You can use a similar process to clone the SSD to the new hard drive you will install.

  • Installed new hard drive and windows 7 at the same time. Left old hard drives in computer but unable to get bookmarks from old drives to new.

    Installed new hard drive and windows 7 at the same time. Left old hard drives in computer, installed firefox however I have no idea in which file the old bookmarks are located. I still have the old files for firefox in the old drives.

    Your "Firefox personal data", like bookmarks, are stored in your Profile folder in Firefox. See this support article about how to recover that data from that old hard drive and transfer it your your new Profile.
    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • Problem Please help me.....Let me know the area to look for it I am a DBA..

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
    Server Error in '/' Application.
    Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [SoapException: Problem with SAP/BAPI.
    SAP.Connector.RfcCommunicationException: Connect to message server failed
    Connect_PM  MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       service 'sapmsPRD' unknown
    TIME        Wed May 04 08:59:06 2005
    RELEASE     620
    COMPONENT   NI (network interface)
    VERSION     36
    RC          -3
    MODULE      ninti.c
    LINE        428
    DETAIL      NiPServToNo
    SYSTEM CALL getservbyname
    COUNTER     1
       at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
       at SAP.Connector.SAPConnection.Open()
       at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
       at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
       at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type)
       at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
       SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.search.LoadRegionDetails()
       SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
       System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
       System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
       System.Web.UI.Page.RaiseChangedEvents() +115
       System.Web.UI.Page.ProcessRequestMain() +1099

    The error is a very basic one - the sapmsPRD service is not known. You will have to go to <NT_ROOT>\system32\drivers\etc and add the entry sapmsPRD 3600 to this file.
    This is basically telling the requester at what port to look for the message server.
    C

Maybe you are looking for

  • I think that my cable modem is OEMist

    hi, i just mooved  into my new house, and i got a new cable  modem, i have 2 computers, a dell laptop, and a  hp  pavillion,  both were on my network in my apartment, using the same router and same rc.conf, but the probalem  is now,  my laptop will c

  • Specify Remote Folder - The specified path is not a remote shared folder

    I'm getting this error when I try to check a backup stored on a NAS.  When I attempt to recover from it, I pick "A backup stored on another location" then "Remote shared folder".  I put in the path: \\192.168.16.17\public\server\2014-01-24 And what I

  • Supplier Self Registration

    Hi, I am trying to develop a supplier self registration portal using SAP Sourcing (Wave 9). I am unable to edit the product categories on the supplier self registration portal. How can this be done? Is it possible to add / remove product categories f

  • Best way to handle audio and video?

    Can someone give me suggestions on best way to handle audio and video clips. 2 issues: Audio- I want to avoid problems for visitors who may need to install something to listen, and would like them to be able to remain viewing page while listening. I

  • Group Chat Issue

    For some reason, I cannot change the picture or kick people out, even if I'm the creator of the group chat. Whether I was the group creator or not, I used to be able to change the icon and kick out people, now I can't do neither. D: Why is that? Plea