• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sending data direct to USB in OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending data direct to USB in OSX


  • Subject: Re: Sending data direct to USB in OSX
  • From: Graff <email@hidden>
  • Date: Sun, 14 Mar 2004 17:58:00 -0500

On Mar 14, 2004, at 5:22 PM, Doug McNutt wrote:

At 18:55 -0800 3/14/04, Rod McDevitt wrote:
I used to use a mini-application specially written to send a cash drawer trigger (usually control-g) to the serial port on my Mac using OS9 - now with OSX and USB and a USB receipt printer, I need to do the same.

Delcom Engineering
http://www.delcom-eng.com

I'm working with a fellow who wants to use the USB for scientific instrumentation. He brought over a chip on a prototype printed circuit board and a couple of drivers that came with it.

The drivers install in the /dev/ directory and it all worked right out of the box.

It was as simple as using Terminal to "cat" a short text file to the device. All of the USB headache was handled by the driver. 8 bit parallel bytes were easily seen using an oscilloscope to look at 5 volt test points on the PCB.

cat textfile > /dev/DelcomDriver

Isn't the /dev directory the attachment point for the device in question, not the drivers per se? It sounds like the driver did the right thing and properly translated the text you sent to it. I'm not sure if I'd trust this method without prior knowledge as to if the device driver handles input in this manner. For example, if there was a USB drive at the other end of that USB cable what would sending raw text do? Create a file and start filling it with the data? Start overwriting the disk headers with the text? You don't really know if you haven't read the documentation and thus you could cause big trouble.

-Ken
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Sending data direct to USB in OSX
      • From: Doug McNutt <email@hidden>
References: 
 >Sending data direct to USB in OSX (From: Rod McDevitt <email@hidden>)
 >Re: Sending data direct to USB in OSX (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Sending data direct to USB in OSX
  • Next by Date: Re: floating point idle delays, 'with timeout' and the date class
  • Previous by thread: Re: Sending data direct to USB in OSX
  • Next by thread: Re: Sending data direct to USB in OSX
  • Index(es):
    • Date
    • Thread