473,578 Members | 2,744 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 1450
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.comwro te:
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
2449
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 drawing time. Time is measured in clock ticks (from QueryPerformanceCounter() API). The processor resolution (QueryPerformanceFrequency()) for my
20
2729
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 that, because we're making Avalon, you see, which will only run on the newest Microsoft operating system, which nobody will have for a loooong time....
3
43181
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 receive one of these IBM.Data.DB2.DB2Exception messages: ERROR SQL30081N A communication error has been detected. Communication protocol being...
3
4728
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 an error message saying "Cannot marshal parameter #2: Invalid managed/unmanaged type combination (this value type must be paired with Struct)" when...
11
4784
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 to programming api/lib to send sms. Regards Hoe
29
2195
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 to the console etc.etc. Thanks in advance
110
10528
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 case scenario for MyISAM backend? Also is it possible to not to lose data but get them corrupted?
41
4394
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
2263
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 source codes to VB.Net and having a weird issue : The VB6 declaration of these functions are :
0
7850
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7779
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8126
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8291
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7874
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6524
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3786
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2293
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1114
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.