18
votes
3answers
6k views

Get hard disk serial number using Python on Linux

How can I get serial number of hard disk drive using Python code on Linux? I want to do this using a python module, not running external program such as hdparm etc. Perhaps I could use the fcntl ...
7
votes
2answers
6k views

Python: Making a beep noise

I'm trying to get the program to give me a beeping noise. I'm on a windows machine. I've looked at http://docs.python.org/library/winsound.html But not sure how I can program this with a barcode ...
4
votes
2answers
636 views

How can I use a raw_input with twisted?

I am aware that raw_input cannot be used in twisted. However here is my desired application. I have an piece of hardware that provides an interactive terminal serial port. I am trying to connect to ...
1
vote
3answers
755 views

pySerial: opening multiple ports at once

EDIT: Found the problem: I tried referencing a variable, but mixed up its name, so instead I declared a new variable. Turns out pySerial is not limited to one open serial point at a time. I'm trying ...
1
vote
1answer
918 views

Receive multiple values via pyserial and display in Python GUI

I am trying to receive data using serial communication in Python, which I can do, but I need to improve my code. I am sending a "packet" from Arduino that is in the form of "&4,25/n" with the key ...
0
votes
3answers
6k views

Using Serial on Python / Win7

I am trying to interface with a serial WWAN modem (for diagnostics /signal strength measurement purposes). This is via the onboard COM1 (115200-8-n-1) on my desktop, the connection works via PuTTY. I ...