Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / July 2005



Tip: Looking for answers? Try searching our database.

USB Interface coding help...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frazzled Penguin - 28 Jul 2005 16:50 GMT
Hello,

I'm very new to programming on the MAC but have a problem I hope people
here may have a solution for..

I would like to build a device that has a USB interface using the
PIC16C765. Basically, I want the electronic device to monitor conditions
and then communicate it's findings back to my Powerbook so that the
Software on the MAC can make a chart/graph.

With that being said, my problem is I'm not sure on how to write the
code for the Mac to send/recieve data down the USB line to/from the device.

Rumor as I hear it tells me that I shouldn't need a specific device
driver if all I want to do is send/recieve data from the device. If this
is true, how would I tell the mac to talk to the usb port?

I tried googling for this but can't seem to find any info relating to
this.. Let alone programming info for the Mac..

Any help, hints, to where I can look to find more information on this
would be greatly appreciated! (Or the titles of any books I can buy too)..

Thanks,
Sean.
Reinder Verlinde - 28 Jul 2005 17:49 GMT
> Hello,
>
[quoted text clipped - 12 lines]
> driver if all I want to do is send/recieve data from the device. If this
> is true, how would I tell the mac to talk to the usb port?

Read "Accessing Hardware From Applications"
(<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/Acces
singHardware/index.html>

For example code, see

   /Developer/Examples/IOKit/usb/USBSimple\ Example/

on your hard disk. Make a copy, fill in the correct values for idVendor
and idProduct, compile and run.

Reinder
Frazzled Penguin - 28 Jul 2005 18:35 GMT
>>Hello,
>>
[quoted text clipped - 25 lines]
>
> Reinder

Thank you very much for the information! It has been very useful. :)

Sean.
vze35xda@verizon.net - 29 Jul 2005 02:06 GMT
For hardware you might be interested in these people.
(http://www.delcom-eng.com/products_USBIO.asp) The have a USB
development board with 16 bits of I/O and OS X software that allows you
to do 8 bits in/8 bits out to control things.  I've got one, the board
is very well built and has room for bread boarding.  It isn't real fast
but if you want to control relays and things it's just the ticket. They
also sell just the processor they use already programmed to do USB I/O.

--jim
Hado Hein - 29 Jul 2005 10:00 GMT
> For hardware you might be interested in these people.
> (http://www.delcom-eng.com/products_USBIO.asp) The have a USB
> --jim

http://www.codemercs.com/

The io warrior ;-)

Since then I control iDVD and iTunes with the ir of my tv.

IO-Warrior 40 does have 32 generic I/O pins, IO-Warrior 24 has 16 I/O
pins.

For things a bit more sophisticated than just setting or reading a port
pin IO-Warrior supports the "special mode functions". A simple command
tells IO-Warrior to
enable one of these special mode functions. It is then taking direct
control of a couple
I/O pins needed to perform the specific function.

Both IO-Warriors support the IIC bus, controlling an alphanumeric LCD
and a
LED matrix with up to 8x32 LEDs. IO-Warrior 40 can also control a 8x8
switch
or button matrix and IO-Warrior 24 has a SPI and a decoder for infrared
remote
control signals according to the RC5 format.
Signature

Hado Hein, Berlin, Fed.Rep. of Germany

http://www.batchmaker.de (software authoring and stage lighting)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.