#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep 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?
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    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 and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep 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.
  6. #4
  7. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    Use the mode command to setup the port then read and write from "com3:". I guess.
    [code]Code tags[/code] are essential for python code and Makefiles!
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    610
    Rep Power
    65
    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
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Thanks Dietrich, will the win32 version be ok on my win64 system?
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    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?
  14. #8
  15. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    [code]Code tags[/code] are essential for python code and Makefiles!
  16. #9
  17. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    610
    Rep Power
    65
    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.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep 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.

IMN logo majestic logo threadwatch logo seochat tools logo