Serial Port Events

Questions regarding syntax

Re: Serial Port Events

Postby tseyfarth » Sun Dec 12, 2010 2:04 am

I know, I just could not find it....
Thanks for the URL.
tseyfarth
 
Posts: 101
Joined: Mon Aug 02, 2010 10:11 am

Re: Serial Port Events

Postby berndnoetscher » Wed Dec 15, 2010 10:55 am

Well, the feature QextSerialBase::EventDriven is not supported by QextSerialBase, because this feature is alpha implemented by the QextSerialBase team and not to work on Linux.
According to the source code of the serialport control kbasic provides, the OnEvent is used by an internal timer. The best solution seems to use bytesavailable and so on checking if data has arrived. PollingInterval must be set. If you need more ideas, try to read the source code of _serialport.h in kbshared in the source package of kbasic available as separate download.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Previous

Return to Coding Questions

cron