The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 10-18-2002, 04:15 AM   #1
Constant Bitrate
 
Join Date: Sep 2002
Location: Melbourne, Australia
Vehicle: 93 Mazda MX6
Posts: 114
My Photos: (0)
Accessing PCI cards in C++

OK i'm no C++ expert but i'm writing a simple directX application to watch TV, play mp3s, play DVDs etc...

My TV tuner card has inbuilt radio tuner, but i don't know how to change the source of the audio from the card to FM.... i presume it's by sending a command to the PCI card (well... the drivers for it). But i'm not sure how to do this?

I can decompile the program that came with it to get the commands, but how do i send it?

I sort of figured out how to send it with video for windows, but i HATE that way because it always crashes. Much more stable using direct show... and a lot smoother.. Other than source changing it's all working pretty sweet though

Still in majorly early beta though, i'm concentrating on getting the video and audio 100% crisp and smooth.... then i'll work on the interface...

Last edited by UncoCow : 10-18-2002 at 04:46 AM.
UncoCow is offline   Reply With Quote
Sponsored Links
Old 10-18-2002, 11:07 AM   #2
Low Bitrate
 
Join Date: Jul 2002
Posts: 89
My Photos: (0)
The first thing I would do is check to see if the software that came with the card installed an ActiveX control on your machine. If so, you should be able to import it in your development environment and check out its exposed interface.
Mxyzpltk is offline   Reply With Quote
Old 10-18-2002, 07:58 PM   #3
Constant Bitrate
 
Join Date: Sep 2002
Location: Melbourne, Australia
Vehicle: 93 Mazda MX6
Posts: 114
My Photos: (0)
Nah no activeX Control :|

does anyone know a good decompiler? i don't want the full source code of the app i just want sorta basic outline of what it's calling and with what methods and stuff.... should be able to be done.....
UncoCow is offline   Reply With Quote
Old 10-19-2002, 09:30 AM   #4
Retired Admin
 
Aaron Cake's Avatar
 
Join Date: Jan 2000
Location: London, Ontario, Canada
Vehicle: 1986 Mazda RX-7 Turbo (highly modded)
Posts: 2,465
My Photos: (0)
There are various applications that allow you to monitor DLL calls for a process. I would use one to view the software that came with the tuner, and then just program yours to use the same DLL.

Try ProcessViewer or the like...
__________________
Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
"If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."
Aaron Cake is offline   Reply With Quote
Old 10-19-2002, 09:34 AM   #5
Constant Bitrate
 
Join Date: Sep 2002
Location: Melbourne, Australia
Vehicle: 93 Mazda MX6
Posts: 114
My Photos: (0)
OK thanks mate! just about to fire up google and go searching for that!!!

does anyone know how to access this? this is the capture device:

@devicenp:\\?\pci#ven_1131&dev_7134&subsys_01385 168&rev_01#3&61aaa01&0&68#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global

i mean i know it's the PCI adress (sumfin like that)

but dunno how to use it! coz im dumb
UncoCow is offline   Reply With Quote
Old 10-19-2002, 10:17 AM   #6
Raw Wave
Rob Withey's CarPC Specs
 
Rob Withey's Avatar
 
Join Date: Apr 2000
Location: Surrey, UK
Vehicle: '97 Vauxhall Corsa 1.5 TD
Posts: 2,023
My Photos: (0)
PCI device enumeration is non trivial. Your best reference is probably the Linux source code. In particular, pciscan.c and pciscan.h. They are linked from (amongst other places) this network driver page: http://www.scyld.com/network/tulip.html

That pci address you posted contains the vendor id (manufacturer code) and the device id (chip code) which can be used to recognised the card during enumeration. I did this once for a graphics card under VxWorks to get a linear frame buffer, and it's nasty, nasty, nasty.

I recommend you find yourself a good PCI book to understand the process if you want to go this route.


Rob
__________________
6yr old first install died 20/8/2005 as result of bad bios flash.

New system : 6x5x2" contains 1GHz C3 PCM9373, ISR based PSU, 512Mb flash DOM, 8Gb CF HDD, 98Lite, DirectShow based frontend.
GPS : Rikaline 6010.
Display : LTM08C351 + LVDS receiver.
Rob Withey is offline   Reply With Quote
Old 10-21-2002, 12:11 AM   #7
Constant Bitrate
 
Join Date: Sep 2002
Location: Melbourne, Australia
Vehicle: 93 Mazda MX6
Posts: 114
My Photos: (0)
if anyone's interested this is what im working on at the moment to go with my black interior..... what you think??



btw: going to be displayed on xenarc touchscreen
UncoCow is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 07:52 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics