Menu

#33 PATCH for improve support cygwin

v2.7
open
nobody
PATCHS (2)
5
2014-08-03
2014-08-02
nhatkhai
No

Improve support for cygwin. list_ports.comports now return ports like in windows. Not an empty list.
cygwin module should call native windows stuff for serial port, so DTR, DSR...etc. work correct.

1 Attachments

Related

Patches: #33

Discussion

  • Chris Liechti

    Chris Liechti - 2014-08-03

    if i understand that correctly, you'd prefer if on cygwin it would do the same thing as under regular win32. in that case, it should be possible to avoid the code duplication and just use (import) the win32 implementation for both.

    quickly scanning through the patch, i've not seen differences to the win32 implementation except the renaming. so i guess a small change in list_ports.py and init.py to handle cygwin like win32 should suffice?

     
    • nhatkhai

      nhatkhai - 2014-08-04

      It is right, but the problem is the ctypes dosen't treat cygwin as same as
      windows. So there are minor differences have to make in order to use native
      windows API under cygwin.

      On Sun, Aug 3, 2014 at 2:12 PM, Chris Liechti cliechti@users.sf.net wrote:

      if i understand that correctly, you'd prefer if on cygwin it would do the
      same thing as under regular win32. in that case, it should be possible to
      avoid the code duplication and just use (import) the win32 implementation
      for both.

      quickly scanning through the patch, i've not seen differences to the win32
      implementation except the renaming. so i guess a small change in
      list_ports.py and init.py to handle cygwin like win32 should suffice?


      Status: open
      Group: v2.7
      Labels: PATCHS
      Created: Sat Aug 02, 2014 06:52 AM UTC by nhatkhai
      Last Updated: Sat Aug 02, 2014 06:52 AM UTC
      Owner: nobody

      Improve support for cygwin. list_ports.comports now return ports like in
      windows. Not an empty list.
      cygwin module should call native windows stuff for serial port, so DTR,
      DSR...etc. work correct.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/pyserial/patches/33/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Nhat Khai Nguyen

       

      Related

      Patches: #33


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.