Microchip (TM) PICKit 2 USB Driver, HID attachment?

Hunting for resources to program PIC embedded microcontrollers on macs, ran into microchip's way cheap PICKit 2 USB programmer:
http://microchip.com/stellent/idcplg?IdcService=SSGETPAGE&nodeId=1406&dDocName=en023805
They publish the source and Xcode project for an unsupported Mac tool that drives the PICkit 1 usb programmer from userland
http://www.aeria.net/pub/PICkit2dev.zip
however, after building it, changing the usbProduct #define to reflect the new device and tracing the output I'm finding that all writes to the device fail becuase something else claimed the programmer endpoints in exclusive mode usb
usb io trace follows (can provide buckets of debugging on request):
Timestamp Lvl Message
3.822 [1] [0x2e15c00]::start - USB HID Interface #0 of device PICkit 2 Microcontroller Programmer @ 2 (0x19100000)
3.837 [1] IOUSBInterface[0x1a25100]::handleOpen failing because super::handleOpen failed (someone already has it open)
3.837 [1] IOUSBInterface[0x1a25100]::open super::open failed (0x0)
The Questions:
Has someone allready done this? For this device? Which device does it work on?
Why did microchip call a chip programmer a HID device?
Why did the apple HID framework attach the device when it has no HID compliant controls?
Can I get the Apple HID controls to release the programmer or not to attach at all?
(or) I have to write a kext/driver stack to match the vendor/product/model exactly to force the point?
Background:
This project would enable high visibility robotics and educational applications that permit interfacing robotics and telematics with high level programming. (RE: build your own robot to enter a contest or collect your socks). The programmer downloads machine code to little embedded computers (PIC chips) that you can then instruct it to perform neat things that may earn you sex appeal or peer acclaim in the correct circles.
Many Macs   Mac OS X (10.4.3)  

The Questions:
Has someone allready done this? For this device? Which device does it work on?
I don't know.
Why did microchip call a chip programmer a HID device?
It is one of the easiest ways to implement a simple USB device. Whether it has buttons, wheels or indicators on it is irrelevant. It can be something other than a mouse or keyboard.
Why did the apple HID framework attach the device when it has no HID compliant controls?
The device presumably declares itself to be a HID class device. Therefore it gets the HID driver.
Can I get the Apple HID controls to release the programmer or not to attach at all?
(or) I have to write a kext/driver stack to match the vendor/product/model exactly to force the point?
Yes. You need a "codeless kext" to match vid/pid of the device. The basic idea is to make a "driver" with no executable, so the system's kernel HID driver doesn't match against the device. This gives your userland driver a chance.
See lists.apple.com and search the USB development list for more.
hope this helps, Stuart

Similar Messages

  • Seeing properties of USB drive attached to HomeHub...

    I have a powered USB drive (160Gb) attached to USB port on my Home Hub 5.
    This works fine as a network drive, accessible through Windows Explorer on all PC's attached to network. (Win7 and XP, Apple)
    However, when I try to check the properties (free space etc.) using 'Properties' in Windows Explorer, I see 0GB ias size.
    How do I check space used on this drive?

    Have you tried mapping the share to a drive letter, and seeing if the size shows against the drive letter?
    Use "map network drive", and map it to a spare drive letter.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Any issue using Time Machine on USB drive with AirPort?

    Are there any issues using a USB drive attached to an AirPort Extreme with Time Machine? My guess is no, but figured I would ping the forum and see if there's something I have not thought of. I know Time Capsule does this, but I don't have that - I have an AirPort Extreme.
    The drive is within my network and not exposed to anyone unless they can connect
    My password is required to access the Time Machine files
    Any security implications not covered by these two points?
    I'm currently using a USB drive I attach/detach from my MacBook Air and it would be much more convenient to backup to the drive connected to the AirPort. The first backup will probably take a day short of forever being over the air and not the wire, but after that I imagine it would nicely run in the background.
    Thanks for any feedback or suggestions!

    Are there any issues using a USB drive attached to an AirPort Extreme with Time Machine? My guess is no, but figured I would ping the forum and see if there's something I have not thought of.
    The correct answer is yes. First off, Apple does NOT support Time Machine backups to external USB HDDs attached to the AirPort Extreme ... although they do for the Time Capsule.
    Please check out this excellent Pondini article which provides some details on why this would not be a good idea.

  • WRT350N USB Drive Max File Size?

    What is the max. file size for the FAT32 USB Drive when attached to a WRT350N?  When I try to transfer a 11.7 GB file to the Drive, the drive "disconnects" after 3.8GB has been transfered.  [Transfer status window shows 7.9 GB remaining to be transfered a the time of disconnect.]  I've tried both the Mapped Network drive and the FTP Sever approaches and get the same results every time.  All smaller files transfer to the WRT350N USB Drive successfully every time.  I using a Windows Vista Ultimate desktop (Wired connection) and the Router has 1.3.02 frimware.
    The symptoms tend to indicate that the max. file size is limited to 4GB?  Is this correct? 

    You will have to format your disk with the help of the WRT350N and after that you will have creat Share with same "Storage" tab on the linksys router.

  • Sharing a USB drive attached to a Time Capsule

    I attached a USB drive to my Time Capsule and want to share it with both Windows and Mac users on my network while not sharing my TC main drive which I use for backup.  Can someone assist in the setup?
    Thanks

    dougkramer wrote:
    ... if I connect a USB hard drive, can I run Time Machine and then pick either the Time Capsule drive or the USB drive to back up to?
    see this user tip: http://web.me.com/pondini/Time_Machine/2.html
    Will I be able to backup wirelessly from my MacBook Pro?
    yes. however, it is recommended that the initial backup is done using a hardwired connection.
    Can I then also backup wired to my ethernet-connected iMac (at a faster speed) ?
    see above
    In other words, the TIme Capsule is capable of automatically backing up both wired and wirelessly, right?
    yes.
    JGG

  • Can't access the Time Capsule Drive and attached USB drive

    I bought the 3 TB Time capsule a couple of months ago.  I am using it as my wireless router for a cable modem and have attached a USB drive (seagate) to the TC.  I use the TC drive for time machine only.  It worked well at first, for about the first month.   Now I have trouble accessing the TC drive as well as the USB drive.  The router function works perfectly fine.  The drives show up in the Finder under Shared but  cannot connect.  Time machine does not back up because it says the back up drive is not available.  In disc utility, the base station shows with the correct name, but I can't access it. It asks for a pasword but does not respond, so I cannot reboot it from my computer.
    If I restart the TC (power off and on), it works fine, I can access both drives.  However, this problem recurs, sometimes within a few days.  I have also noticed, which may be related, that when I enter time machine (when everything is working fine), some of the back-ups are blank.  There is a date and time but no actual back-up.  Not sure if this is related.
    I'm runing Mavericks 10.9.2 on an older MacBook, 15" late 2008 with 2.4 ghz dual core.

    Hi Bob,
    I updated Mavericks but still had the same problem, so I did a hard reset on TC, although I held the button for over 5 seconds and the amber light was flashing rapidly, it acted like a soft reset.  Still no change so I rebooted my laptop.   Still had an excellent internet connection but in AirPort utility, the TC is grayed out and says device not found.  Light on TC was amber.  So, I tried a hard reset again, but the light wouldn't flash at all.  Unplugged it and after pluggin back in, acted like a hard reset.  I restored previous settings and it is fine for the moment.  Will keep you posted if it recurs.  Hopefully it will not with updated Mavericks, but I get the feeling the problem may be the TC.

  • USB drive attached to Airport Extreme as a time machine backup?

    I have a WD 750gb external USB drive that I was using as a "time machine" with my iMac. My Airport Extreme has a USB port and I want to move the WD over to there, but continue to use it as time machine. Possible to do this? If yes, then how?
    Thanks much

    You can, but Time Machine uses a disk image file for the Time Machine archive (instead of a folder) when a network drive is used. Therefore, you may have to start your Time Machine archive over again.
    If you have one Mac to back up with Time Machine, it is better to leave the drive attached directly to the computer over USB. Your initial and hourly Time Machine backups will complete faster.

  • Will Time Machine backup Time Capsule files to an attached usb drive?

    Hi Everyone,
    I want to put shared media files on my Time Capsule and then have Time Machine backup my imac and all the files on the TC to a usb drive attached to the Capsule. Possible? That way I have a shared media server that is being backup up regularly.
    Thanks for the help!

    No. Time Machine cannot backup any network attached storage device such as TC. TM can only backup a Mac's internal HDD plus and ATTACHED/LOCAL HDD to the external HDD connect to the TC USB port.

  • Transfer speed of USB vs Gigaport attached drive WRT610N

    I know this is a loaded question but here goes:  Assumptions:  eqivalent drive specs but one is connected to the USB port of a 610N and the other is connected to the gigaport of the 610N which drive should have the fastest throughput and approximately by what % margin?
    The reason that I am asking this question is that I did a backup of about 40GB to a Seagate drive attached to the USB port and it TOOK FOR EVER!!!!!!!!!!!!!!
    I have a gig capable drive on order and am praying that the performance will be much better than the USB drive.

    What is the speed you are getting from the USB Port..?
    I think you need to make some changes on your Wireless router, so the Download and upload speed improves.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 Leave username blank & in password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab -
    This settings are for 2.4GHz.
    -Here select manual configuration...Wireless Network mode should be mixed...
    -Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WEP, Encryption should be 64 bits.Leave the passphrase blank, don't type in anything...
    Under WEP Key 1 type in any 10 numbers please(numbers only and no letters eg: your 10 digit phone number) and click on save settings...
    Please make a note of WEP Key 1 as this is the Security Key for the Wireless Network...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect, and after this try Downloading and Uploading on your Storage Drive and check whats the speed you are getting
    Same goes for your 5GHz Wireless Network.
    Wireless Network mode should be mixed...
    -Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network.
    Set the Radio Band to Wide-40MHz and change the Wide channel to159 and Standard Channel to 161-5.805GHz...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WPA, For Encryption, select AES...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your network key whenever you connect to your wireless network. Do NOT give this key to anyone and remember the key.
    NOTE : Passphrase should be more that 8 characters...
    Try and see how is the data transfer speed.

  • Attaching USB drive causes EX4 to become unresponsive.

    Hello, I have tried to setup a usb to nas backup a few times and keep having the same problem. Upon attaching the 4TB usb drive (usb 3.0) to the back of the EX4 the NAS becomes unresponsive. I can no longer access it from the dashboard or the my cloud app on a mobile device. The app says it is offline. The ex4 is on but no drives are spinning. The usb drive is spinning however.
    Once, I was able to see the EX4 and the attached USB drive in my file explorer. It showed the USB drive as a share. It said something like "Share 2_1." However the internal folders were not visible. Then the EX4 froze and went unresponsive - which caused me to try and manually shut it down. It did not power down and after making sure no data was being transferred I had to pull the power (as recommended on this forum).
    Once I was able to get as far as setup up a USB to NAS backup on the dashboard. I set up the source and destination folders, etc. upon saving the job the EX4 is inaccessible, while the USB drive spins.
    What's going on? Is it taking a long time to index the attached drive? Is it not compatible with the USB drive (seagate 4tb external NTFS USB 3.0)?
    Any insight or advice would be great. Thanks!

    By default the EX4 will scan the attached USB share for media.  This process takes all the CPU of the EX4 for long periods of time, and can also lead tot he creation of numerous metadata directories in your attached drive.  You should turn this off. In addition, if you use the USB drive for backups, the DEFAULT option for the EX4 is to commence backups when the drive is connected.  This setting can be turned off in the GUI setup for the backup jobs. In addiiton, in my experience, NTFS drives take more overhead than EXT formatted drives.

  • Problem attaching USB drive to my TC

    Hello all, I have tried searching all over the place and I can't seem to find anything that is helping me.
    I have a 2TB USB drive that I recently attached to my MBP, formatted it Mac OS Extended (Journaled) and then proceeded to copy about 1TB of data to it. All is working great when it is attached to directly to my laptop but when I connect it to the USB port on my TC to try and use it as an additional network file system the TC flashes orange and tells me the "Disk needs repair". I put it back on my MBP and it still works fine.
    Am I missing something here? I should be able to do this right?
    Any help you could offer would be greatly appreciated.

    thxceej, welcome to the discussion area!
    Suggest that you connect the drive directly to your MBP, then open
    Applications > Utilities > Disk Utility.
    Click to select your drive on the left and then click Repair Disk at the lower right of the window and let the process run. It may take 30-60 minutes depending on how much data you have on the disk.
    When the disk has been repaired, power down the complete network...all devices. Connect the drive back to the USB port on the Time Capsule. Then start the modem first, then your router,then devices one at a time until everything is powered back up.
    See if that helps.

  • Sharing an Attached USB drive on Network

    I have an intel Mac Mini on a network. I would like other machines in the same subnet to see the Mini Pal USB drive I have attached to it. All I have managed to access from the other PCs is the main drive via the home folder.
    This is trivially easy to do this on my XP machine. Am I just dense or is it not possible on the Mac?
    Thanks for any guidance you can lend.
    - Dave -

    I hate mysteries, so sooner or later I'd like to find out how to set those attributes "manually".
    Sharepoints is a GUI and you can see how it manipulates the netinfo database when adding new sharepoints.
    You can also see what it writes to the windows sharing config file /etc/smb.conf
    This will give you an understanding of how to this manually. However it is by far easier just to use sharepoints. Or if you invest in professional server software you can use the workgroup manager.
    BTW could you mark this thread as solved as it helps other users who search the forum find specific answers. Thanks.

  • Attach usb drive to time capsule

    I have been attempting to SEE the HD attached to the USB port on the TC.  It DID work previously until I had to factory reset the TC.  Now, it doesn't show.  Any suggestions?
    I've been to the Disks tab and the File Sharing box is checked.
    Stumped.

    Plug the usb drive into the mac.. can you read it??
    Plug it back into the TC.. if it disaapears it can be due to USB drawing too much power.. TC is severely underpowered.. and even a powered disk can have issues.
    It can be firmware update that happened. If the TC is now on 7.6.3, go back to 7.6.1 or even better 7.5.2
    It can be format of the drive.. if it won't show in the airport utility it won't show in the computer.
    Retry with a USB hub.. make sure the disk is formatted HFS+ and partitioned using GUID type.

  • Can I disconnect a bitlocker USB drive that is in a state of Decryption (paused) and attach to another machine?

    Can I disconnect a bitlocker USB drive that is in a state of Decryption (paused) and attach to another machine?
    The background on this question is that I didn't realize at first that I was plugged in to a USB 1.1 hub and it took over 1 hour just to get to 1% decryption. I've paused the decryption but a tad hesitant to disconnect and plug in to another system. 

    Hi,
    How about your problem now? Generally speaking, when you encrypt USB drive using Bitlocker, you can pause encryption if you need to remove the device for some reason. If you don't do so, you could damage or lose files stored on the device.
    If you need further assistance on this particular issue or any other Windows related issue, let us know and we will be glad to assist you.
    Roger Lu
    TechNet Community Support

  • Can I attach USB drive to Airport Express USB port

    I would like to attach a USB drive to my Apple airport Express USB port so that I can back up my data on my MBP and have my music stored on it for playing back over Apple TV.
    Is there any issues to doing this? As an example, how would I see the drive?
    thanks in advance.
    Adam

    Well, you can certainly attach a USB drive to the port on the AirPort Express.....but nothing will happen if you do this....since the USB port on the Express will only support a compatible printer and Keyspan remote control.
    You will need an AirPort Extreme if you want to attach a shared hard drive to the USB port.

Maybe you are looking for

  • Can't send Mail since internet connection via USB key

    I now access internet via a USB key and although I receive mail as normal into my Mac 'Mail' from my email account when on line, all mail I now try to send sits in the outbox with the following error message: This message could not be delivered and w

  • Validate e-mail sent by utl_smtp using forms

    I am sending an e-mail using utl_smtp in a when button pressed trigger. I am trying to figure out if the e-mail was successful other than the receipt of an e-mail. I want to display an alert, but am not sure what to look for that will let me know tha

  • Error - Oracle BI Server has encountered a problem

    Dear Experts, Oracle BI Server has encountered a problem and needs to close. We are sorry for the inconvenience. Error Signature : szAppName : NQSServer.exe szAppVer : 10.1.3.4 szModName : msvcrt.dll szModVer : 7.0.2600.5512 offset : 00037fd4 I am fa

  • Can't communicate with my Quad SPDT via IVI

    I have a chassis containing a 2548 that I control via IVI switch on two systems. I can initialize the switch just fine on one system, but when I moved the code and drivers over to the other system I can't seem to initialize the switchit gives me an e

  • Can I Stop my Images from being Copied from my Web Pages

    On some websites I visit, it prevents you from right clicking on the image and saving it. A message pops up saying the image cannot be copied. Would any of you kind folk know of a way I can stop my images from being saved from my Dreamweaver web page