Experimental Physics and
| |||||||||||||||
|
Would it make sense to add a selectable, programmable layer between drvAscii and drvSerial, i.e. drvTerminator to handle this terminator problem, drvModbus, drvBisynch, etc. If this driver processes the input/output from/to drvSerial and could be specified independently for each serial connection in drvAscii, it would give a solution to this problem that would allow for added capability and have no impact on other users. I have been thinking along these lines to handle a eurotherm 900 controller which uses a Bisynch protocol which has a checksum as part of the terminator, but haven't wanted to hack drvAscii and loose compatibility and I seem to have no shortage of projects to keep me busy. Rodney Porter
-----Original Message-----
Hi, we are having problems with the strategy used by drvAscii to find line
Our particular problem involves a compumotor 6000 controller. Most of the time
The termination detection of drvAscii resets the string pointer of the prototype
prototype string terminator: CR LF received string: * T P E 5
drvAscii then times out and the string is lost. The solution seems to be to not reset the terminator string pointer: prototype string terminator: CR LF received string: * T P E 5
Assuming the extra CR still in the string doesn't cause the subsequent scanf in
Hope the examples are clearer than mud! So, can anyone see any problems with this proposed change, or, a better solution cheers
| ||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |