fanzheng
V2EX  ›  问与答

串口编程有没有什么基础概念资料呀

  •  
  •   fanzheng · Apr 23, 2012 · 3218 views
    This topic created in 5159 days ago, the information mentioned may be changed or developed.
    我是学会计的。帮别人毕业设计写东西,用python的pyserial来读写串口,不过,我是学会计的,对串口,啥么都不懂。有没有啥么关于串口的基本知识的资料呀,最好多点的,浅显易懂点的。


    伤不起呀。
    2 replies    1970-01-01 08:00:00 +08:00
    9hills
        1
    9hills  
       Apr 23, 2012   ❤️ 1
    经典的tldp的HOWTO[1] (或许有中文翻译),然后你需要有个串口调试的软件,推荐:
    1. SSCOM32 for windows
    2. 超级终端 什么也不说了。。
    3. minicom for linux
    4. 国人做的基于QT的串口调试助手[2] for linux

    然后你就看pyserial的文档[3]就好了,串口通信本质上就是输入输出的字节流,比较简单。

    另外主要问题就在处理各种异常和自定义协议上了。

    [1]: http://tldp.org/HOWTO/Serial-Programming-HOWTO/
    [2]: https://github.com/ninehills/serialtool
    [3]: http://pyserial.sourceforge.net/
    qmake
        2
    qmake  
       Apr 23, 2012
    原来你就是传说中的无证程序员
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4135 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:18 · PVG 13:18 · LAX 22:18 · JFK 01:18
    ♥ Do have faith in what you're doing.