Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: SerialPort issues under Windows 10

by jcb (Parson)
on Apr 16, 2021 at 02:58 UTC ( [id://11131355] : note . print w/replies, xml ) Need Help??


in reply to SerialPort issues under Windows 10

I have yet to use serial ports with Perl, and I am happy to say that I have not used Windows in some time, but I will guess that your device does not assert DCD and the system is waiting for DCD before reading data. There may be some other setting to ignore DCD that PowerShell quietly sets and that persists in the serial driver, or your commented-out line 7 may be part of the problem. Another monk (haukex) mentioned that apparently the Win32::SerialPort module has a special write_settings method for making configuration changes effective; you may need that too or a missing call to it may be your problem.