Menu

#64 write hangs on generic command

v1.0 (example)
closed
None
9
2015-08-05
2014-07-26
rangewookie
No

I start by opening a serial port with no settings (the device doesn't require configuration, it's usb).

serPort = serial.Serial("COM13", timeout=1)

I can send this command without a problem (runs correctly)...

serPort.write("relay on 0" + "\r\n")

But when I send this command, the write hangs and the command is never sent...

serPort.write("relay writeall 80000000" + "\r\n")

What could be causing this? It's just a string... The only visible difference is that the string is longer.

Discussion

  • Chris Liechti

    Chris Liechti - 2014-07-31

    Ticket moved from /p/pyserial/bugs/165/

     
  • Chris Liechti

    Chris Liechti - 2014-07-31

    difficult to guess. is it a micro controller board with USB-serial emulation? maybe that blocks on long or multiple packets.

    • does it work with terminal applications (pySerial's miniterm or any other "real" terminal application)?

    • maybe a monitoring of the serial port or USB traffic could give some insight where it hangs.

    • there might be driver issues, depending on the type of serial port emulation (CDC/ACM, custom protocols) and the operating system. => which operating system do you use and what driver type (CDC, other)?

     
  • Chris Liechti

    Chris Liechti - 2014-07-31
    • status: open --> pending
    • assigned_to: Chris Liechti
    • Group: v2.7 --> v1.0 (example)
     
  • Chris Liechti

    Chris Liechti - 2015-08-05
    • Status: pending --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.