>From: "Bill Turner, WB4ALM" <[email protected]> >Subject: Re: [Oorexx-devel] Need help reading/writing to a "com" > port... > >I would like to thank everybody that has provided ideas on serial port >communications using ooRexx. > >I do not have a final solution yet, but with your help I have had >partial success. > >"stty" says that it has changed the port speed, but it really has not.
In fact, what stay (and setserial) do is send a specific IOCTL to the driver, which then sends it to the hardware device. Apparently your device is ignoring it. > >Using one of my more sophisticated pieces of test gear (and one that I >had forgotten that I had - it hasn't been used in over 20 years) I have >now discovered that even though "stty" says the port speed is 1200, in >fact it is really 9600 - a speed that the external device can not >respond to. > >In an attempt to use "setserial" I get an error message as follows... > >$ setserial /dev/ttyUSB0 baud_base 1200 > Cannot get serial info: Inappropiate ioctl for device > >so far, I have not been able to determine exactly what that means. > >furthermore, it appears that my USB to serial converter has a reputation >for being "...worst on market..." >Its ID is 1A86:7523 and it is manufactured by Qin Heng Electronics - >an is an " HL-340 USB-Serial adapter". > >Information on the internet stated that the best driver for this chlip >is the CL341, and that the prolific driver should be blacklisted so that >CL341 is selected and used. I have done this, and indeed, the CL341 >driver has been loaded and is being used. > I can second that. The whole Cx34x family of devices is just plain horrible. I have a handful of Arduino Nanos that use this chip. They were really chip, and I only discovered why when it was too late. This chip managed to flunk a 32-kbyte serial transfer to the Arduino. Sometimes I need to restart the program upload twice. So, I’m not surprised you’re having problems setting the baud rate on it. Stick to Prolific PL2303 and FTDI FT-232 devices. Things will work much, much smoother. The MacOSX driver for Cx34x devices is horrible and requires you to turn off driver signing. ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
