Re: usb tv stick and python

2022-05-09 Thread Dennis Lee Bieber
On Mon, 9 May 2022 17:56:32 +0200, jak declaimed the following: >First of all, thank you for your reply. Actually I already have a handy >work around to use w_scan because I have a VM with linux (ubuntu) >installed. I was just looking for a python package/library that would >allow me to write a w

Re: usb tv stick and python

2022-05-09 Thread jak
Il 09/05/2022 16:28, Dennis Lee Bieber ha scritto: On Mon, 9 May 2022 08:47:50 +0200, jak declaimed the following: Hello everybody, I usually use vlc to watch tv and I use the w_scan program on linux to create a file (.m3u) with the list of available channels. Unfortunately I can't find an alt

Re: usb tv stick and python

2022-05-09 Thread Dennis Lee Bieber
On Mon, 9 May 2022 08:47:50 +0200, jak declaimed the following: >Hello everybody, >I usually use vlc to watch tv and I use the w_scan program on linux to >create a file (.m3u) with the list of available channels. Unfortunately >I can't find an alternative to w_scan for Windows and I was wondering

Re: usb mass storage device detection

2009-03-31 Thread Tim Golden
prakash jp wrote: Hi all, I am interested in detecting usb mass storage devices, r there any scripts in python to do so. Thanks in advance. What? Detecting their presence in your pocket? :) Which operating system are you using? It tends to make a difference: these things are quite OS-specific

Re: USB in python

2009-01-27 Thread Tino Wildenhain
Hi, Astan Chee wrote: Diez B. Roggisch wrote: If all you need is on-off - why can't you just use a switch? Because I want to control the on-off the device using a computer and write software for it (which I am confident I can do if I had references to how the wrappers to said inte

Re: USB in python

2009-01-27 Thread Grant Edwards
On 2009-01-27, Lie Ryan wrote: > From the little I know on electronics, a simple, single > transistor would (almost) immediately switch from > on-to-off-to-on depending on the voltage of the control pin (I > think it was the middle pin). I was suggesting this > simplistic hack because as far as

Re: USB in python

2009-01-27 Thread Muriel de Souza Godoi
Some people got success in Arduindo using an older mobile cable which works as USB/Serial converters. So you can read and write data as a serial port using pyserial. On Tue, Jan 27, 2009 at 8:31 AM, Lie Ryan wrote: > On Mon, 26 Jan 2009 11:08:48 -0600, Unknown wrote: > > > On 2009-01-26, Lie Rya

Re: USB in python

2009-01-27 Thread Lie Ryan
On Mon, 26 Jan 2009 11:08:48 -0600, Unknown wrote: > On 2009-01-26, Lie Ryan wrote: > >> How about (a crazy idea) using the audio jack out? (DISCLAIMER: Little >> Hardware Experience). High pitched sound (or anything in sound-ology >> that means high voltage) means the device is on and low pitch

Re: USB in python

2009-01-26 Thread Astan Chee
Brian Allen Vanderburg II wrote: This is the FT245 chip which is basically USB-to-Parallel. Chips: http://www.ftdichip.com/Products/FT245R.htm Kit/Board: http://www.ftdichip.com/Products/EvaluationKits/UM245R.htm The spec sheet for the board seems quite simple. It's pin out is similar to tha

Re: USB in python

2009-01-26 Thread Дамјан Георгиевски
>> Sorry, by USB device, I meant a device that is powered/activated by a >> bunch of wires that I want to control using a computer and since I >> had a spare USB jack lying around, I used that instead. But so far I >> haven't tried it, nor will try it if it wont work properly. Yes, it >> is not a p

Re: USB in python

2009-01-26 Thread Grant Edwards
On 2009-01-26, Lie Ryan wrote: > How about (a crazy idea) using the audio jack out? (DISCLAIMER: Little > Hardware Experience). High pitched sound (or anything in sound-ology that > means high voltage) means the device is on and low pitched sound off. 1) Pitch has nothing to do with voltage.

Re: USB in python

2009-01-26 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Tim Roberts wrote: Sorry, but you have NOT created a USB device, and I sincerely hope you do not try to plug it in to a real USB port. Sorry, by USB device, I meant a device that is powered/activated by a bunch of wires that I want to control using a computer and

Re: USB in python

2009-01-26 Thread Steve Holden
Astan Chee wrote: > Tim Roberts wrote: >> Sorry, but you have NOT created a USB device, and I sincerely hope you do >> not try to plug it in to a real USB port. >> > Sorry, by USB device, I meant a device that is powered/activated by a > bunch of wires that I want to control using a computer and

Re: USB in python

2009-01-26 Thread Steve Holden
Lie Ryan wrote: > On Fri, 23 Jan 2009 18:56:38 +1100, Astan Chee wrote: > >> Diez B. Roggisch wrote: >>> If all you need is on-off - why can't you just use a switch? >>> >>> >>> >> Because I want to control the on-off the device using a computer and >> write software for it (wh

Re: USB in python

2009-01-26 Thread Banibrata Dutta
high pitch is == high frequency, no higher amplitude... but the difference can be easily made out and the electronics for this is very well understood and used.point is, the gentleman asking the question might already have a USB controller built into his device, and while most modern computers have

Re: USB in python

2009-01-26 Thread Lie Ryan
On Fri, 23 Jan 2009 18:56:38 +1100, Astan Chee wrote: > Diez B. Roggisch wrote: >>> >>> >> If all you need is on-off - why can't you just use a switch? >> >> >> > Because I want to control the on-off the device using a computer and > write software for it (which I am confident I can do i

Re: USB in python

2009-01-25 Thread Astan Chee
Tim Roberts wrote: Sorry, but you have NOT created a USB device, and I sincerely hope you do not try to plug it in to a real USB port. Sorry, by USB device, I meant a device that is powered/activated by a bunch of wires that I want to control using a computer and since I had a spare USB jack

Re: USB in python

2009-01-25 Thread Tim Roberts
Astan Chee wrote: > >Im trying to write a program for my USB device and I'm thinking of using >python to do this. The USB device is of my own making and it is >activated when one of the two data pins of the USB is given about 5V (or >similar to whatever the power pin is getting). Now I'm confus

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: If all you need is on-off - why can't you just use a switch? Because I want to control the on-off the device using a computer and write software for it (which I am confident I can do if I had references to how the wrappers to said interface). Cheers Astan.

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee schrieb: Diez B. Roggisch wrote: Others suggested the parallel port. It is the natural choice for such things, with two caveats: - it is legacy, and thus often not available on modern hardware, especially on mobile ones. So if you want it be prepared to additionally buy a usb2pa

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: Others suggested the parallel port. It is the natural choice for such things, with two caveats: - it is legacy, and thus often not available on modern hardware, especially on mobile ones. So if you want it be prepared to additionally buy a usb2parallel-adapter. -

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee schrieb: Diez B. Roggisch wrote: Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whate

Re: USB in python

2009-01-22 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Hi, Thanks for all the responses but I forgot to mention that I have very little hardware understanding (at least in english) and the device itself it very simple and only needs about 5V power to be active. The problem here is that I want to control when the device

Re: USB in python

2009-01-22 Thread Grant Edwards
On 2009-01-23, Astan Chee wrote: > Thanks for all the responses but I forgot to mention that I have very > little hardware understanding (at least in english) and the device > itself it very simple and only needs about 5V power to be active. The > problem here is that I want to control when th

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is

Re: USB in python

2009-01-22 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is getting). Now I

Re: USB in python

2009-01-22 Thread Tino Wildenhain
Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is getting). Now I'm confuse

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee wrote: > Hi, > Im trying to write a program for my USB device and I'm thinking of using > python to do this. The USB device is of my own making and it is > activated when one of the two data pins of the USB is given about 5V (or > similar to whatever the power pin is getting). Now I'm c

Re: USB HID documentation?

2008-05-05 Thread Tim Roberts
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >You seem to misunderstand HID. HID is a protocol over USB (and Bluetooth I >believe) that will create user input device events which are mapped to your >OS input layer. That means that whenever you e.g. attach a keyboard device, >it's keyboard events

Re: USB HID documentation?

2008-05-05 Thread ETP
I don't doubt I misunderstand since most programming jargon goes over my head. That said, I'm sure you can guess my OS is Windows and I don't know what an API is. After a quick search it looks like windows uses something called DirectInput for gaming devices. Is anyone familiar with DirectInput?

Re: USB HID documentation?

2008-05-05 Thread Diez B. Roggisch
ETP wrote: > I have a little robot project I'm programming in python using the > Lynxmotion SSC-32 servo controller via serial. I'd like to use a USB > game controller (PS2 style) to control the robot. > > I've read a number of threads about the difficulty of using USB > without extensive unders

Re: USB

2006-06-28 Thread jmdeschamps
Gabriel wrote: > ¿Alguien conoce algún módulo para python con el que se pueda tener > acceso a los puertos USB y que sea multiplataforma? > > -- > Gabriel Hola Gabriel, Voy... http://sourceforge.net/projects/pyusb (multiplataforma sin Windows) mas http://web.media.mit.edu/~dmerrill/sensor_network

Re: USB and Python

2006-06-25 Thread Philippe Martin
Many thanks, Philippe Philippe Martin wrote: > Hi, > > I need to talk to a USB device (PC or other) from Python - I am not > talking about mounting a file system but sharing information as you would > though a TCP-IP socket layer or an RS232 interface. > > Is there such "low-level" module a

Re: USB and Python

2006-06-24 Thread Diez B. Roggisch
Sybren Stuvel schrieb: > Philippe Martin enlightened us with: >> I need to talk to a USB device (PC or other) from Python - I am not >> talking about mounting a file system but sharing information as you >> would though a TCP-IP socket layer or an RS232 interface. > > You could wrap libusb on Linu

Re: USB support

2006-06-20 Thread rodmc
Thanks, well if what you say is true then it would make sense. Cheers, rod Tim Roberts wrote: > "rodmc" <[EMAIL PROTECTED]> wrote: > > > >Thanks for this, I have managed to build PyUSB and install it in the > >relevant directory. However I get bus errors when I try the PlugUSB.py > >example. Do

Re: USB support

2006-06-19 Thread Tim Roberts
"rodmc" <[EMAIL PROTECTED]> wrote: > >Thanks for this, I have managed to build PyUSB and install it in the >relevant directory. However I get bus errors when I try the PlugUSB.py >example. Does anyone know why this is likely to be the case? > >I am using Macpython 2.4, Libusb 0.1.12 and PyUSB 0.3.

Re: USB support

2006-06-18 Thread rodmc
Thanks for this, I have managed to build PyUSB and install it in the relevant directory. However I get bus errors when I try the PlugUSB.py example. Does anyone know why this is likely to be the case? I am using Macpython 2.4, Libusb 0.1.12 and PyUSB 0.3.3 on an Intel based mac. Thanks in advanc

Re: USB support

2006-06-14 Thread Tim Roberts
"rodmc" <[EMAIL PROTECTED]> wrote: > >I need to write a program which can access the USB ports on Mac and >Linux, is there a library available for Python? The "stable" version of Libusb includes a Python binding. The version in development does not yet. -- - Tim Roberts, [EMAIL PROTECTED] Prov

Re: USB support

2006-06-13 Thread Richard Townsend
On 13 Jun 2006 11:08:59 -0700, rodmc wrote: > Hi, > > I need to write a program which can access the USB ports on Mac and > Linux, is there a library available for Python? > > Thanks in advance. > > Best, > > rod Not tried it, but: http://pyusb.berlios.de/ -- Richard -- http://mail.pytho