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.

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.

Some people have stated on Internet forums that they were unable to go 
below 2400 with this device.  Others have stated that the driver CL341, 
has a major software error with regards to parity.  The software fix is 
available in Linux kernel 3.18, but since I am running Ubuntu 14.04 LTS, 
my kernel is a 3.13.0-77-generic

- - -

In particular I would like to give special thanks to  "cvbruce" for 
reminding me that sometimes you need a better "tester" than just my 
"idiot lamp"  adapter that shows RD, TD, RTS, CTS, DSR, DTR, and RI...

...In fact, while my "Black Box - SAM 232-05" and "NuData corp 921-T" 
Test sets were of some help, they still could not tell me what the baud 
rate really was!

I would also like to thank --MASTER GURU--  M.F. Cowlishaw for not only 
creating REXX in the first place, but for sharing his OS2 modem dialer 
program, which allowed me to verify that my code was probably correct 
---  'especially since it now appears to be a hardware problem.  (Isn't 
that what all of us Software Experts say?)

Thanks everyone,  I'll let you know what happens...

/s/ Bill Turner, wb4alm


------------------------------------------------------------------------------
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

Reply via email to