Sending commands via usb port?

i'm looking to send commands over a usb cable to a device via xcode or cocoa. i know leopard did away with rs232 commands, so i'm looking for some sample code that sends a command via objective-c over a usb cable.

From Cameron Forbes of US FTDI tech support:
Ed:
After you install the FTDI D2XX drivers for Mac OS X (Intel Macs):
http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/Universal%20D2XX0.1.4.dmg
Add the following links (from Mac OS X Installation Guide):
· Start a Terminal session (Go > Applications > Utilities > Terminal)
· Copy libftd2xx.0.1.0.dylib to the /usr/local/lib directory (cp Desktop/D2XX/bin/libftd2xx.0.1.0
/usr/local/lib)
· Change directory to the /usr/local/lib (cd /usr/local/lib)
· Create a symbolic link to the library (ln -sf libftd2xx.0.1.0.dylib libftd2xx.dylib)
The example code is located at:
/desktop/d2xx/Samples
Best Regards,
Cameron Forbes
Field Applications Engineer - Americas
[email protected]
Future Technology Devices International Ltd.
7235 NW Evergreen Parkway
Suite 600
Hillsboro, OR 97124-5803
Tel: 503.547.0988 xt 315
Fax: 503.547.0987
Practical USB Interface Solutions

Similar Messages

  • My iPod Classic is not detected by my Windows 8 computer when I connect it via USB port.  How can I get windows to detect this device?

    My iPod Classic is not detected by my Windows 8 computer when I connect it via USB port.  How can I get windows to detect this device?  A message from windows says: the device has malfunctioned.

    Try TS1363: iPod: Appears in Windows but not in iTunes.
    See also Corrupt iPod classic.
    tt2

  • Mac pro does not recognize ipad device when connected via usb port, suggestions?

    mac pro running os 10.6.8 does not recognize ipad device when connected via usb port, suggestions?  itunes 10.7

    Here's a troubleshooting assistant: http://www.apple.com/support/ipad/assistant/itunes/
    The most likely issue:  Have you plugged your iPad into a USB port that is not directly part of your MacBook Pro?

  • New imac doesn't locate old imac hard drive via usb port

    I have an old iMac from ~2006 that recently stopped reading the harddrive.  I pulled the HD out and connected it to my new imac via USB port but I can't locate it.  The HD spins/powers up so I know the connector is strong enough to supply power.  We connected it to my husband's PC and he can see that there is a harddrive but cannot see any files to read.  He even tried Catacombe to try to read files but it didn't work.  My first issue is how can I locate my HD on the new mac?  But the main issue is how can I pull data/pictures off of the old harddrive and import them to my new computer.  I don't hear any clicking sounds from the harddrive so it seems to be working.  I can't reformat it because I don't want to lose the pictures on it.  I don't need the old harddrive to work/write.  I just need to pull the information off of it.  TIA.

    I was not familiar with catacombae , but now I am .
    You have a problem with either a corrupt file system on the hd or a hardware problem with the hd.  I'd say try mounting in disk utility.  Try reparing filesystem on hd.  Try one of the disk repair utilities.  Some have a free trail that let's you know if they can do anything.  You pay to get the data.  Seek profession help.  Pay $$$.
    How to mount with disk utility.
    Repair the file system.  see repair disk button on lower right.
    here are some more data recovery apps.  I left out a few & am posting my complete list.
    Perhaps Disk Warrior will be of some help:
    http://www.alsoft.com/DiskWarrior/
    "Stellar Phoenix Macintosh - Mac data recovery software, recovers data from damaged, deleted, or corrupted volumes and even from initialized disks."
    They have a trial version, so I guess you can see if your data can be recovered...
    http://www.stellarinfo.com/mac-data-recovery.htm
    "Data Rescue II is the best data recovery software on the market for recovering files from a problem hard drive. Data Rescue II works when other tools fail. Data Rescue II is also completely safe to use since it does not attempt any risky repairs to the drive while its scanning."
    http://www.prosofteng.com/products/data_rescue.php
    FileSalvage is an extremely powerful Macintosh application for exploring and recovering deleted files from a drive or volume.  FileSalvage is designed to restore files that have:
    -- been accidentally deleted.
    -- become unreadable due to media faults.
    -- been stored on a drive before it was re-initialized/formatted.
    http://subrosasoft.com/OSXSoftware/index.php?main_page=product_info&products_id= 1
    "TestDisk is a free data recovery utility. It was primarily designed to help recover lost data storage partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally erasing a partition table)."
    http://en.wikipedia.org/wiki/TestDisk
    Wondershare Data Recovery for Mac
    "Recover lost photos, video, documents, email and archive files from any Mac-based hard drive or external hard drive, iPod, USB drive, SD card, digital camera, mobile phone, and MP3/MP4 player, due to accidental deleting, formatting, virus infection, improper operation, unexpected power failure, and other unknown reasons. Also, iPhone recovery allows you to recover lost photos, videos, SMS, contacts, note, calendar and call history from iTunes backup file. With the free trial, you can preview all your recovered images, videos, music, documents and archive files prior purchasing this Mac Data Recovery."
    http://software.bigbigsoft.com/data-recovery-mac

  • Recharging my iPod (3rd gen.) on my 2010 iMac goes extremely slowly (via usb port at the back). This is mainly because recharging stops when my mac goes to sleep. I just can't believe that Apple doesn't have a sollution for this, but I haven't found itth

    Recharging my iPod shuffle (3rd gen.) on my 2009 iMac (OS 10.5.8) goes extremely slowly (via usb port at the back). This is mainly because recharging stops when my mac goes to sleep. I just can't believe that Apple doesn't have a sollution for this, but I haven't found it yet... What's the most efficient way of recharging?

    Purchase a wall charger for it instead. 
    B-rock

  • Recording Sound via USB Port

    How do I record sound from an audio tape into iTunes? Preferably via USB port,

    iTunes does not record, so you will need other software to record from your tape. There are a number of audio recording applications available, depending on your needs, including GarageBand, Audacity and many more. Whether any will record a USB device will depend at least somewhat on the device you will be using.
    Regards.

  • My iPhone 5 suddenly stopped getting charged via USB port.

    Does anyone know how to reset this so I can start charging via USB port again?

    Hello beenafromgbr,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting iPhone, iPad, and iPod touch accessories.
    http://support.apple.com/kb/ts2634
    Best of luck,
    Mario

  • My iphone 4s is being used on car stereo via usb port.

    my iphone 4s is being used on car stereo via usb port on the old ios system it would play music and when you turned the the stereo off would play where you stopped it i have the settings in itunes on shuffle all and repeat all , since the update to iOs7 all it does now is return you to the first song in the A play list and not where you left it. i have even seen it happen was looking at screen and had song in middle of song and turn stereo on and hey presto back to the being of the A's.
    it was fine until update has something changed in working of itunes on phone

    Manual push and fetch will not use internet. The problem may lie with the new maps integration - it is constantly getting information wherever you are.

  • Been trying to use an external memory card reader with my macbook air- connecting via usb port, air does not recognize device nor the microSD card from my gopro - help

    Been trying to use an external memory card reader with my macbook air… connecting via usb port, air does not recognize device nor the microSD card from my gopro … help

    Some external ones do not work with the Mac's although most do. There are some driver compadibility issues with Mavericks, so I would wait for an update.

  • Samsung Fascinate, problems with playing music via USB port on car stereo

    Before the update, I could play the music files on my Fascinate via the USB port on my Kenwood stereo, and control basic functions such as skip, pause etc.  Now, my stereo does not recognize the device, and cannot read the files.  I went to local Verizon store where a sales rep tried to connect it in here new Kia Soul and it didn't recognize the device either. It will play via the AUX jack, but I lose player control and the phone does not charge via the AUX cable.  She did a hard reset which did not resolve the problem.  We tried one of the other employee's Fascinate in my car, which did not work either.
    So, after hoping to be able to stream music via Pandora, Jango etc thru the USB port after the update, now it seems its primary function is for charging.
    Also, the ALL SHARE function, which I used to get the music on my phone originally, does not work now.
    Anyone else have this issue with music player and USB connection?

    txgopher- I have personally never used my Fascinate to listen to music via USB via stereo however, I can see why it would be frustrating for you to no longer be able to do so when it was never an issue prior to the update.
    It sounds as though you and the store rep already did some troubleshooting by trying to duplicate the problem with another car, stereo and even doing the final troubleshooting step which is a master reset.
    Since you have done all of the necessary troubleshooting steps to no avail, it most definitely appears as though the software update has interfered with that USB connection in some way.
    What I have done is forwarded the information you have provided to Samsung in order for them to look into this concern as well as come up with a way to get this resolved.
    Please stay tuned because as soon as we hear back from Samsung we will be sure to update this forum with the results/findings.

  • Mobile phone not being recognised via USB port

    A few days ago I plugged my Motorola V3x phone into a USB port to download some pictures and was presented with some Windows to fill out some information. As I could not complete the operation at that time I closed the windows to retry at a later date. But now when I plug the phone into the USB port it is not recognised and there is on icon appearing on the desktop indicating that a USB has been plugged in. If I plug other devices into the USB ports they are recognised. Any ideas?

    For the phone to appear on the desktop when plugged in via USB you need to use USB Mass Storage mode (or whatever Nokia call it) not Media Transfer.
    For iSync you need to download the E71 iSync Plugin from the Nokia web-site:
    http://europe.nokia.com/get-support-and-software/product-support/isync

  • Sending data to USB port !

    Hi,
    I have a transmitter card and receiver card which fits to USB port. I need to send bulk data, may be video from one system to other, both running windows OS (98/ME or 2000).
    I went through the USB postings and saw something about TWAIN driver for USB scanner. My primary purpose is to check that I can transfer bulky data with high band-width (11mbps) through this TX/RX cards. ANy data transfer will do.
    Can anyone suggest me a good solution!!!
    My OS is windows and so I guess jUSB and JSR-80 will not work!
    please help!
    -kk

    What drivers com with yoyur TX/RX cards?
    How does windows see them?
    Do they look like extra serial ports?
    Is a C/C++ api provided?
    Can you provide a link to the manufacturers web site?
    Then we could help :)

  • Airport extreme working with external hard drive via USB port adaptor :)

    Hi Everyone. I hope this post will be helpful because I have been very frustrated with apple and their customer support and I figured this out on my own by reading all of the discussions and playing with my settings but it took me a while...
    I recently for school bought all apple products and I have non-mac products as well. I bought the airport extreme believing I could hook up all of my computers through it and share the printers and my mybook external hard drive with my husbands desktop and the other lap tops. Unfortunately this was not as easy as advertised...
    I was not able to successfully have both computers stay connected to the printers so I have to have mine for my laptop connected via the airport extreme and my husband has his desktop connected to a different printer via a ethernet cable. It would work at set up and then a few hours later not print anymore and reinstalling the drivers just confused it... if anyone knows a solution for this please let me know. It worked wirelessly for me but not for him.
    As far as the external drive for the airport extreme goes I went and bought an additional USB port hub so I could access my printer wirelessly and my external hard drive as well for time machine back ups.
    I set up my external hard drive so that it will save files from both a mac and a non-mac computer and we can both access it (not sure if that matters in the solution or problem for others); however, the desktop (non-mac) was able to by clicking and dragging files to it assess the hard drive and utilize it and my macbook was not able to because the airport extreme showed the drive under disks but when I tried to access it through time machine it was not there. I played with this for a long time and finally figured it out.
    I believe I went under finder, then chose go from the menu bar, then chose connect to server and the default for it is afp://10.0.1.1.. You enter this in under server address and you may be prompted to give your password. The password was tricky as well because it showed my computers user name and I thought it would want that password but instead it wanted the password to log into my internet or my airport extreme's password. Once I put this in I was able to open my time machine preferences, finally choose the mybook external hard drive that was now showing up, choose it and my computer is currently doing a back up as I type without the error message of failed, unable to locate volume, or any others.
    Hope this posting was helpful and not to confusing and feel free to message me if you need clarification and think this may solve your problem as well. GOOD LUCK!

    Seems to me you should have done your homework setting up your network and not assuming that any third party device you choose to use would work without problems.

  • Native Extension to read\send data via USB.

    Hi all. Is there any way to obtain or send data to USB-devices connected directly to my android-based phone? Application must recieve data coming from usb-device, and send response if requested.
    Saw solutions to make that on desktop apps (adruino ANE), but there is nothing for mobile (to android, for example).
    Any ideas? There is solution for Java (on android community) to get devices and so on, but i'm not interested in Java.
    10x, Vlad.

    Any one has a solution?
    How can i connect my app via USB or bluetooth with iOS or Android?

  • Can not send command via VISA test panel in MAX

    Hello all,
    I am having a small issue using the VISA test panel in MAX.  I am trying to send a simple command to a device and then retrieve the response data.  I am able to do this successfully via Labview, but for whatever reason I can not get a good response in MAX.  The command that I am sending is simply a letter (address of the device) followed by an end of line character (\r\n in ascii).  In MAX, I simply append the \r\n onto the string sent in the buffer (Send End on Writes == FALSE).  All serial settings are the same as what I have in LV (19.2, 8-n-1).  Does anyone have any thoughts?  This is kind of frustrating as I just want to do something simple and don't want to have to build a whole routine in LV to do this.
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC
    Solved!
    Go to Solution.

    Thanks, Broken.  I am getting a time out error.  Clearing the buffers doesn't seem to be making a difference. This is baffling to me.  I must be missing something fundamental.
    Something that I didn't add before is that I seem to be able to send the command via labview without a read, and then read it via MAX.  This must have something to do with way it is sending the command.  Arrrrgh!
    Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

Maybe you are looking for

  • Images show in Console but don't show up in preview??

    I'm a novice website builder but know enough that I'm doing everything right!.. I add images to a page and shows up in Dreamweaver console but when I got to preview the page in Firefox now all of a sudden the images never appear!... why all of a sudd

  • Bonjour not working in 64-bit OS's (Windows)

    I am writing an app that finds all the printers on a network so I can install the correct printer. I can do this fine in any Windows 32-bit OS (XP-Windows 7rc). However, when I try in any 64-bit OS it does not work. My call to DNSServiceBrowse() retu

  • Vendor Advance Request - F-47

    Hi, For Vendor Advance request Special GL is maintained in OBVU and GL in FBKP for Vendor Recon and Special GL. Still when I Create Vendor Request by T.code F-47. System is not allowing Please send your valuable reply.

  • Printing from iPad 4

    How to print a a4 size photo from iPad 4th generation

  • Is your OS X Mountain Lion not downloading?

    OS X Mountain Lion is not downloading.  It keeps saying that there is an error or that it will take up to 195 days to download then just says calculating.  It has not moved at all in hours.  My internet is fine.  Maybe the servers are busy?