Author |
Message |
MYM
|
PostPosted: Sun Nov 11, 2018 3:02 pm |
|
Joined: Mon Nov 28, 2016 2:24 pm Posts: 14
|
Hello,
Raspberry pi with V3.5 SP13;
There is a problem regarding the ulTimeout parameter of Syscomread function of syscom library; With the code below I see that tdiff:=0ms which means that the syscomread command does not wait at least 1000ms as given in ultimeout paramater of the syscomread function. Does anyone has any recent information what could be the reason for that?
t1:=time(); SysComRead(hCom:= dwhandle, pbyBuffer:= ADR(btRxArray[1]), ulSize:= 130, ulTimeout:= 1000, pResult:= ADR(Resultread)); tdiff:=time()-t1;
Note: During my test Serial port cable is not connected so there is not 130 characters to read for the function as given in UlSize:=130.
|
|
Top |
|
 |
MYM
|
PostPosted: Mon Nov 12, 2018 6:14 pm |
|
Joined: Mon Nov 28, 2016 2:24 pm Posts: 14
|
Could anyone test that on raspberry pi if it works or not?
|
|
Top |
|
 |
Edwin Schwellinger
|
PostPosted: Tue Nov 13, 2018 8:47 pm |
|
Joined: Mon Sep 05, 2005 9:42 am Posts: 3149
|
Hi, this seems to be bug, but I see no date when it will be fixed. only Timeout=0 Setting make sense ….
BR Edwin
|
|
Top |
|
 |
MYM
|
PostPosted: Wed Nov 14, 2018 2:55 pm |
|
Joined: Mon Nov 28, 2016 2:24 pm Posts: 14
|
Thanks for the reply,
Can the Ulsize parameter function correctly and have meaning in that case?
I could try to use the SP11 package if it is a bug of SP13 version. does it cover all versions?
BR
|
|
Top |
|
 |
Edwin Schwellinger
|
PostPosted: Wed Nov 14, 2018 7:52 pm |
|
Joined: Mon Sep 05, 2005 9:42 am Posts: 3149
|
Hi, this covers all Versions.. BR Edwin
|
|
Top |
|
 |