2010/12/21 Andrew Errington <a.erring...@lancaster.ac.uk>:
> Hello,
>
> I contacted the manufacturer of the sound card device I am working with.  They
> sent a data sheet, so I have the I/O pin numbers.  They also sent me some
> software to read and write bytes to the GPIO registers.  This was some source
> code and a compiled binary.  Unfortunately the binary was compiled for a
> different Product ID than the device I have.  Doubleplus unfortunately the
> source code for the .lib file which actually sends the data packets to the
> device is already compiled.  I have the header file, but not the source.
>
> So, to figure out the data packet format I think I have to do the following:
>
> 1) Recompile the demo code with the correct Product ID for my model of sound
> card
> 2) Use the demo app to send packets to the device and record USB data with a
> sniffer app
> 3) Pick out the data format
> 4) Write PyUSB code to do make packets
>
> Unfortunately the demo code is Microsoft Visual C++ (using MFC).  What is the
> easiest way to recompile the source?  Is there another way to examine
> the .lib file and find out how it works?  Is there another way to use
> the .lib file with another program to send data to the device?
>
> I did ask the manufacturer for the source of the .lib file (just the code to
> write a packet to this device) but they didn't send it to me.
>
> It would actually be very useful to have the demo app working because I could
> test the GPIO function with the circuit I am building.  If it doesn't work
> then there is no point in going further.
>
> Any help or advice would be appreciated.
>
> Thank you,
>
> Andrew
>
Visual C++ free edition does not ship MFC, and as I guess you don't
want to buy Visual C++ Pro just to compile the sample application, I
recommend you using Platform SDK or DDK (yes, DDK may be used to
compile applications) to rebuild the application, as far as I know,
they ship MFC. The bad side is that you won't have IDE anymore. After
that, you can start to hack the protocol.



-- 
Best Regards,
Wander Lairson Costa
LCoN - Laboratório de Computação Natural - Natural Computing Laboratory
(http://www.mackenzie.com.br/lcon.html)
Programa de Pós-Graduação em Engenharia Elétrica (PPGEE)
Faculdade de Computação e Informática (FCI)
Universidade Presbiteriana Mackenzie - SP - Brazil

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to