473,503 Members | 1,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

API's and hardware communication. Newbie

Hi all

I am new to this group so 'Hello All'

I have a PC which is running linux and in it have installed a digital
satellite card. I would like to write some software to access the card,
tune it and bring back video. Basically a home brew DVB-s application.

Being a non/new programmer (apart from some basic too many years ago) I
decided to teach my self Python as from what i have read it's an easy and
powerfull language to learn. I have been at it a few weeks and am getting
on OK and finding it reasonably OK to pick up.

The problem is i can find little to no information on programming for DVB
cards or on how to access the Linux tv API in Python but I can find lots of
information in C. This is making me think should i bother with Python and
just learn C even though this will probably take a lot longer.

Can some one help me or point me at a resource somewhere or would it be best
to just learn C instead.

I am aware this is a complicated little project for someone just starting
out but it will be a multifaceted program with loads of interesting
classes, functions and loops and i don't have to start with the really
difficult stuff first. I just want to know if it's possible under python to
access the DVB card and if so how?

Cheers
Grayham
Jun 27 '08 #1
4 1445
I am new to this group so 'Hello All'
>
I have a PC which is running linux and in it have installed a digital
satellite card. I would like to write some software to access the card,
tune it and bring back video. Basically a home brew DVB-s application.

Being a non/new programmer (apart from some basic too many years ago) I
decided to teach my self Python as from what i have read it's an easy and
powerfull language to learn. I have been at it a few weeks and am getting
on OK and finding it reasonably OK to pick up.

The problem is i can find little to no information on programming for DVB
cards or on how to access the Linux tv API in Python but I can find lots of
information in C. This is making me think should i bother with Python and
just learn C even though this will probably take a lot longer.

Can some one help me or point me at a resource somewhere or would it be best
to just learn C instead.

I am aware this is a complicated little project for someone just starting
out but it will be a multifaceted program with loads of interesting
classes, functions and loops and i don't have to start with the really
difficult stuff first. I just want to know if it's possible under python to
access the DVB card and if so how?
I can't comment on DVB-cards, but I have accessed a webcam under linux.,
in pure python.

Even if you need *some* parts written in C for that (which might not
even be the case), you should check if there isn't some library
available that you can access using e.g. ctypes.

Diez
Jun 27 '08 #2
On 2008-04-26, Grayham <no@spam.comwrote:
Hi all

I am new to this group so 'Hello All'

I have a PC which is running linux and in it have installed a digital
satellite card. I would like to write some software to access the card,
tune it and bring back video. Basically a home brew DVB-s application.

Being a non/new programmer (apart from some basic too many years ago) I
decided to teach my self Python as from what i have read it's an easy and
powerfull language to learn. I have been at it a few weeks and am getting
on OK and finding it reasonably OK to pick up.

The problem is i can find little to no information on programming for DVB
cards or on how to access the Linux tv API in Python but I can find lots of
information in C. This is making me think should i bother with Python and
just learn C even though this will probably take a lot longer.
There are a couple of ways you can handle the problem:

* You can use the ctypes modules to make C library calls. At
first it seems a bit complicated, but it's really quite easy
to use. http://docs.python.org/lib/module-ctypes.html

* You can write a C wrapper for the library so that it can be
accessed as a Python module. That's going to require a bit
more C knowlege than the ctypes approach , but it's not as
difficult as it looks. http://www.python.org/doc/ext/intro.html
Can some one help me or point me at a resource somewhere or
would it be best to just learn C instead.

I am aware this is a complicated little project for someone
just starting out but it will be a multifaceted program with
loads of interesting classes, functions and loops and i don't
have to start with the really difficult stuff first. I just
want to know if it's possible under python to access the DVB
card and if so how?

Freevo is a DVR system written in Python, so that might be a
good place to look: http://doc.freevo.org/

--
Grant Edwards grante Yow! I guess you guys got
at BIG MUSCLES from doing too
visi.com much STUDYING!
Jun 27 '08 #3
It seems to me that python needs to be extended with C in some form to able
to do what i need. I think instead of learning two languages i am going to
put all my efforts in to learning C as it seems that's where i am going to
end up.

Thank you both for the feed back and links

Regards
Grayham
Jun 27 '08 #4
Grayham schrieb:
It seems to me that python needs to be extended with C in some form to able
to do what i need. I think instead of learning two languages i am going to
put all my efforts in to learning C as it seems that's where i am going to
end up.
It's your decision of course. But you will end up in much more
frustration than learning python (maybe by not picking an endeavour so
big that it needs C on a certain level) and then after you have a good
grasp of general concepts try and adapt these to other languages such as
C. But again - you decide which road you prefer to go.

Diez
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2432
by: Gustavo L. Fabro | last post by:
Greetings! Getting straight to the point, here are the results of my experiment. I've included my comments and questions after them. The timing: (The total time means the sum of each line's...
20
2698
by: John Bailo | last post by:
http://www.joelonsoftware.com/articles/APIWar.html "So you've got the Windows API, you've got VB, and now you've got .NET, in several language flavors, and don't get too attached to any of...
3
43145
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
4719
by: Webdiyer | last post by:
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got...
11
4771
by: tnhoe | last post by:
Hi, I am looking for above. Any recommendation ? The GSM modem is a data card with phone chip in notebook which can send sms directly without going through other sms gateway URL. I only need...
29
2180
by: mastermagrath | last post by:
Hi, Sorry for the possibly silly question. Am i right in saying that the C library i use on a windows machine really utilises the windows API for all its operations e.g. opening files, printing...
110
10441
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
41
4381
by: x01001x | last post by:
When programming in C (not C++) how does one send information to a hardware device such as a video card or modem? How is this done in Linux C programming versus Microsoft C programming?
1
2259
by: Özden Irmak | last post by:
Hello There, I'm coding an application which uses a library, "tfm.dll", to communicate with a finger print reader.I'm converting the communication API function declarations from the provided VB6...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.