473,379 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

access serial port in python

hi
i hav written a code in python to send an SMS from a nokia 3310
connected to my PC...
i wanted to receive a msg on my PC. In order to do so, the PC must know
when it has to read data frm the serial port ...thus an interrupt must
be generated when the serial port receives data frm the phone .....HOW
CAN I DO THIS IN PYTHON ??
can anyone help me with this INTERRUPT HANDLING thing in PYTHON ???
thanks

May 26 '06 #1
6 2509
pyserial?

http://pyserial.sourceforge.net/

-Larry

vi*************@gmail.com wrote:
hi
i hav written a code in python to send an SMS from a nokia 3310
connected to my PC...
i wanted to receive a msg on my PC. In order to do so, the PC must know
when it has to read data frm the serial port ...thus an interrupt must
be generated when the serial port receives data frm the phone .....HOW
CAN I DO THIS IN PYTHON ??
can anyone help me with this INTERRUPT HANDLING thing in PYTHON ???
thanks

May 26 '06 #2
i can use the polling method to check for data on the serial port using
pyserial...but i need to use the interrupt driven method .....am workin
on a windows platform ....

May 27 '06 #3
i can use the polling method to check for data on the serial port using
pyserial...but i need to use the interrupt driven method .....am workin
on a windows platform ....

May 27 '06 #4
On 2006-05-27, vi*************@gmail.com <vi*************@gmail.com> wrote:
i can use the polling method to check for data on the serial port using
pyserial...but i need to use the interrupt driven method .....am workin
on a windows platform ....


I don't think there is any way to so interrupt driven I/O under
Windows. You can do asynchronous I/O under Windows using the
normal Win32 FileIO API.

--
Grant Edwards grante Yow! Is it 1974? What's
at for SUPPER? Can I spend my
visi.com COLLEGE FUND in one wild
afternoon??
May 27 '06 #5

google for win32serialport.py
may be this is what you want

I.Haase
May 28 '06 #6
In article <11**********************@i40g2000cwc.googlegroups .com>,
<vi*************@gmail.com> wrote:
hi
i hav written a code in python to send an SMS from a nokia 3310
connected to my PC...
i wanted to receive a msg on my PC. In order to do so, the PC must know
when it has to read data frm the serial port ...thus an interrupt must
be generated when the serial port receives data frm the phone .....HOW
CAN I DO THIS IN PYTHON ??
can anyone help me with this INTERRUPT HANDLING thing in PYTHON ???
thanks


Others have answered your direct question about serial handling.
Let me urge you to consider investigation of the gnokii and gammu
projects, which handle MANY other aspects of SMS handling that I
doubt you want to burden you. There turns out to be depressingly
more to SMS than you might imagine (although it's just possible
that you already have almost everything you need for the 3310).

When researching these two projects, note that gammu is already
aware of Python, but rather unstably so, and that gnokii's Windows
story has brightened immensely in the last month.
May 29 '06 #7

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

Similar topics

2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
14
by: McBooCzech | last post by:
Hi I am just trying to analyze (parse) data from the serial port (I have connected GPS receiver to the ttyS0, so I can read ASCII characters in the CSV form on the serial port 1). I am doing this...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
6
by: Casey Bralla | last post by:
I'd like to read ASCII data from a serial port, but (once again) I'm having trouble getting started. (Can't seem to find the basic level of docs to get going <sigh>) I'd like to use only...
15
by: xkenneth | last post by:
Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the...
38
by: shussai2 | last post by:
Hi, I am trying to access Serial Port in XP. I am using Dev-C++ IDE that uses Mingw as a compiler. I just want to know how I can open up serial port on COM1 and write some data. I have searched...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
5
by: kkadrese | last post by:
hello group, how to get ttyS0 serial port for exclusive access? I have a python script that uses this device with AT commands. I need that two instances can call simultaneosuly this python...
2
by: mmrasheed | last post by:
Hi, I am newbie in python. I am working on Telit GM862 GPS/GPRS module which has python interpreter built in. But it seems this problem is pretty much related to general python structure. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.