RE: Win32::Commport, SerialPort stopbits woes
"Keuchel, Rainer" <keuchel-ypdxL0zNX99Wk0Htik3J/[email protected]> Thu, 3 Mar 2005 10:17:21 +0100
| Newsgroups | gmane.comp.windows.ce.freeware |
|---|---|
| Message-ID | <7252F381626D5A469006C7A8157EAEAC012F38F8@achb_email.allgeier.net> |
> I'm aiming to get my PocketPC to talk to a Dallas one-wire network. > However, I'm failing at the first hurdle: getting serial > communications working under PerlCE. I don't seem to be able to change > the number of stop bits. > > I have Rainer's 5.6 build of Perl with Win32::API, with Nick Peskett's > Win32::Commport and Serialport (from this site) and various other > ActiveState 5.6 libraries as required. It's running on a 3870 Ipaq, > PocketPC 2002. > > The serial port opens fine, but when I try: > > $PortObj->stopbits(1); > > I get "Could not set stopbits on COM1:". Turning $Babble on in > Commport.pm tells me that the $CP_SettableParams = 0x7f (so stop bits > should be settable) but $CP_SettableStopParity = 0x700 (so it does not > appear that the device supports any stop bits settings [other than > zero, which is what it starts up with]). I remember some strange behavior of the IPAQ serial port driver.. Try ignoring the error and/or change the masks. ------------------------------------ Visit us at : www.allgeier.com