Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 16, 2008, 07:44 PM   #1
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
USB device & driver development in 6 weeks?

So my senior project is to essentially interface a custom GPS device controlled by a PIC microcontroller with a computer via USB and have the PIC send the GPS's location to the computer. I'm working with another person who will manage most of the hardware and I'll do most of the software. We are planning on using a USB chip like this which already has drivers available for Windows/OSX/Linux, however I probably will develop the Windows app first since I'm guessing it'll be easier.

I'm just wondering, since we have about 6 weeks to develop this, is this going to be too much to do? Will we be overwhelmed?

A little background: we already have (from a previous course) a PIC interfacing with an LCD and a bare minimum USB setup, although that'll change since we'll be using a separate USB module. I have a lot of experience programming, but only tinkered with device drivers. The link above looks like there is a DLL for Windows, which would probably make it pretty easy. Even then, unless there is a good .NET compatibility layer, I'll probably resort to Win32 programming.

I guess I'm just at a blank at what all will have to be written for communicating with the USB on the PIC and desktop. Does anyone have any kind of experience in this to give me an idea of how much work is needed to work with USB in this kind of setup?
kainjow is offline   0 Reply With Quote
Old Mar 16, 2008, 09:19 PM   #2
ChrisA
macrumors G4
 
Join Date: Jan 2006
Location: Redondo Beach, California
Quote:
Originally Posted by kainjow View Post
So my senior project is to essentially interface a custom GPS device controlled by a PIC microcontroller with a computer via USB
Did the instructor some up with this design just to make the assignment harder or is the design yours. What are the actually requirements? It is is just to get GPS data into a computer that is nearly trivial, NMEA is just 1200 bps serial ASCII.

Do you get to choose the OS. If so hands down I'd pick linux just because it is so easy to write Linux device drivers and the process is so well documented.
ChrisA is offline   0 Reply With Quote
Old Mar 31, 2008, 02:45 AM   #3
kainjow
Thread Starter
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
My lab partner chose the idea and it seemed feasible to me. There are no requirements except that you choose a project that gets approved. I was mainly just wanting to know if there was something that might come up that would cause problems.

Tonight I found sample code that's supported on the Mac. I think it's going to be much easier than I thought. If you follow the links above you can download a dylib and header file, so it's as easy as using a few open, close, read and write commands essentially. I already got the sample code compiled too.

I had no idea what NMEA was until I googled it. Unfortunately I don't know any specifics on the GPS hardware that we'll be using.
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
5S USB Device Not Recognized & Not Charging While On Fredster730 Jailbreaks and iOS Hacks 8 Apr 19, 2014 01:40 PM
All iPads: Cannot Use Device - USB Keyboard: The connected device is not supported. Jhartma7 iPad Accessories 0 Apr 7, 2014 06:18 AM
How to solve a apple mobile device usb driver code 10? BlendedFrog iPod 0 Dec 23, 2013 07:32 PM
Lacie USB Driver Incompat w/ USB Soundsticks?? LeicaM8 Mac Peripherals 3 Apr 17, 2013 10:44 PM
iPhone's usb removed while Apple Device Driver was still installing Lemon Tree iPhone Tips, Help and Troubleshooting 0 Dec 19, 2012 09:29 PM

Forum Jump

All times are GMT -5. The time now is 10:08 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC