The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Serial communication with Python 2.7 on Win7?
Discuss Serial communication with Python 2.7 on Win7? in the Python Programming forum on Dev Shed. Serial communication with Python 2.7 on Win7? Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 9th, 2013, 08:33 PM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 4
Time spent in forums: 1 h 32 m 17 sec
Reputation Power: 0
|
|
|
Serial communication with Python 2.7 on Win7?
I'm trying to write a program to communicate over serial with an arduino, and PySerial seems like the simplest solution if I can just get it installed, but the only file I can find to download to install it is a tar.gz file, which I don't think works on Windows.
One source I found said PySerial was not planning on updating to run on Win7. Is this true?
What's my simplest option here?
|

February 9th, 2013, 09:20 PM
|
 |
Contributing User
|
|
|
|
|
Maybe you can open the devices like ser1: ? (about 30 years since I used that, maybe I remember incorrectly)
I thought arduino connected via USB?
__________________
[code] Code tags[/code] are essential for python code!
|

February 9th, 2013, 09:46 PM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 4
Time spent in forums: 1 h 32 m 17 sec
Reputation Power: 0
|
|
|
It's serial over USB. On my computer, it seems to be COM3. I can communicate with it over serial using the Arduino IDE's Serial Monitor.
I don't really care if it's serial or not, as long as it works with Python.
|

February 10th, 2013, 05:21 AM
|
 |
Contributing User
|
|
|
|
|
Use the mode command to setup the port then read and write from "com3:". I guess.
|

February 10th, 2013, 09:34 AM
|
 |
Contributing User
|
|
|
|
|
You can find PySerial Windows installers at:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Let us know how well you are doing with this.
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
|

February 10th, 2013, 11:29 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 4
Time spent in forums: 1 h 32 m 17 sec
Reputation Power: 0
|
|
|
Thanks Dietrich, will the win32 version be ok on my win64 system?
|

February 10th, 2013, 11:31 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 4
Time spent in forums: 1 h 32 m 17 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by b49P23TIvg Use the mode command to setup the port then read and write from "com3:". I guess. |
I am not familiar with this, is this something in the standard library?
|

February 10th, 2013, 12:07 PM
|
 |
Contributing User
|
|
|
|
|

February 10th, 2013, 05:32 PM
|
 |
Contributing User
|
|
|
|
|
The win32 version be ok on a win64 system, as long as you use a 32 bit Python version.
Last edited by Dietrich : February 10th, 2013 at 05:34 PM.
|

February 11th, 2013, 11:11 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 4
Time spent in forums: 1 h 17 m 6 sec
Reputation Power: 0
|
|
|
Right now I'm running Python 2.7 (64 Bit)and Pyserial on Windows 7 64-bit. So far it seems to be running fine, except for my errors.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|