Python windows serial

                            Python windows serial 

一、参考文章:
    Serial port programming
        http://www.cnblogs.com/2zhyi/p/3405339.html
    python pyserial 2.7
        https://pypi.python.org/pypi/pyserial
    串口通讯的python模块——pySerial
        http://blog.csdn.net/dainiao01/article/details/5885122
    Welcome to pySerial’s documentation
        http://pythonhosted.org/pyserial/

二、install pyserial 2.7
    1. download: https://pypi.python.org/pypi/pyserial
    2. 解压并跳转到解压出的目录
    3. dos命令行运行:python setup.py install 

三、使用:
    参考:http://pythonhosted.org/pyserial/

 

时间: 2024-07-29 05:29:10

Python windows serial的相关文章

python 3 serial module install

/************************************************************************* * python 3 serial module install * 说明: * 在使用python 3的时候发现少了serial模块,记录一下安装方法. * * 2017-1-17 深圳 南山平山村 曾剑锋 **********************************************************************

Python windows ping

# -*- coding: utf-8 -*- import os # 参考文档: # Ping to a specific IP address using python [duplicate] # http://stackoverflow.com/questions/25842744/ping-to-a-specific-ip-address-using-python # if os.system("ping -c 1 www.baidu.com") == 0: # error:

python关闭windows进程的方法_python

本文实例讲述了python关闭windows进程的方法.分享给大家供大家参考.具体如下: 下面的python代码根据进程的名字调用windows的taskkill命令关闭指定的进程 import os command = 'taskkill /F /IM QQ.exe' #比如这里关闭QQ进程 os.system(command) 希望本文所述对大家的Python程序设计有所帮助. 以上是小编为您精心准备的的内容,在的博客.问答.公众号.人物.课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮

Serial Port Programming on Linux(转载)

This is a tutorial on how to program the Serial Ports on your Linux box.Serial Ports are nice little interfaces on the PC which helps you to interface your embedded system projects using a minimum number of wires.In this tutorial we will write a smal

python-PYTHON 是在linux下运行好 还是windows下运行好?

问题描述 PYTHON 是在linux下运行好 还是windows下运行好? 用Python做web 有32位 64位限制吗? 解决方案 python本身无所谓,取决于你的程序,如果是服务器程序,或者是嵌入式程序,要求运行在linux环境下,就只能用linux,如果是客户端脚本,使用它的用户使用windows,那么就运行在windows下. 除非用到科学计算和很多内存(2GB+),否则32bit足够了.python是解释语言,所以只要有解释器,任何平台都没问题. 解决方案二: crossplan

Python之路【1】:Python简介和入门

Python之路[第一篇]:Python简介和入门 python简介: 一.什么是python Python(英国发音:/ pa θ n/ 美国发音:/ pa θɑ n/),是一种面向对象.直译式的计算机程序语言. 每一门语言都有自己的哲学: pythonde 设计哲学是:"优雅"."明确"."简单" 二.python由来  1989年的圣诞节期间,吉多·范罗苏姆为了在阿姆斯特丹打发时间,决心开发一个新的脚本解释程序,作为ABC语言的一种继承.之

Python的Flask框架与数据库连接的教程_python

 命令行方式运行Python脚本 在这个章节中,我们将写一些简单的数据库管理脚本.在此之前让我们来复习一下如何通过命令行方式执行Python脚本. 如果Linux 或者OS X的操作系统,需要有执行脚本的权限.例如: chmod a+x script.py 该脚本有个指向使用解释器的命令行.再脚本赋予执行权限后就可以通过命令行执行,就像这样: like this: ./script.py <arguments> 然而,在Windows系统上这样做是不行的,你必须提供Python解释器作为必选参

在IE中使用Python作为开发脚本

在IE中使用Python作为开发脚本 目前IE支持的客户端脚本语言常见的有VBScript和JavaScript,这两种脚本语言在操作页面元素方面基本能满足一般应用的需要,可通过和COM集成来获得扩展功能. 本文提供一种将Python作为IE客户端脚本语言的方法,利用Python的简洁和可扩展性使web应用在客户端可实现更好的交互.也可用Python内置的网络功能,更容易地实现AJAX的功能. 根据在IE中使用javascript的语法,可以猜到在IE中使用Python的语法是: <script

Serial Port Programming using Win32 API(转载)

In this tutorial we will learn How to communicate with an external device like a microcontroller board or modem using the Serial port of a windows PC(Windows XP,7). The software is written using C language and communicates with the Serial Port using