473,836 Members | 2,091 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 1459
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
2474
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
2766
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. And personally I still haven't had time to learn .NET very deeply, and we haven't ported Fog...
3
43242
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 used: ‘TCP/IP'. Communication API being used: ‘SOCKETS'. Location where the error was detected:...
3
4744
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 calling "AceGetPinParams(iHandle,ref sd_pin)" function,here's my test code: private static...
11
4814
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
2226
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
10654
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
4467
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
2276
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
9670
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10844
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9374
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7792
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5826
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4016
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3115
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.