v24Read() Features? Unsolicited Reads, ReadLine, Test for Bytes etc
I read through the v24Open and v24Read functions and tested the Read script out of the Manual. Is there anyway to setup Serial Port to read Unsolicited Data? I am hoping there are more functionality other than just on-demand reading. I am working on an Application where half of our devices our PLC based machines and other half consists of Serial Port Scales, Thickness Gauges, Serial Port Instruments.
Sometimes the serial data is a single line of 10 chars with EOL char from a Scale. Some machines single line of approx. 50 Chars. Other Instruments print out 30-50 Lines of data.
If we could put the v24Read in some sort of background thread? I see that SMS libraries rely on v24, they must be handling unsolicited data somehow?. I have not dug deep enough into v24 library to see how it functions or if I can even look into how v24Read operates. Can I test the Serial Port buffer for Chars then actually do the read?
Maybe there are hidden functions of v24Read?
Examples of advanced serial port functionality(unsolicited data, readline, test buffer)
https://inductiveautomation.com/news/ne ... nstruments
https://pyserial.readthedocs.io/en/late ... intro.html
Possibly you can implement an API manager or API driver which uses a v24 C++ library which supports functions to read a v24 interface.
Senior Support Specialist