[Gambas-user] High CPU usage when using serialport component
Christer Johansson
lists at ...2828...
Fri Aug 17 14:20:33 CEST 2012
Hi Benoît,
> -----Original Message-----
> From: Benoît Minisini [mailto:gambas at ...1...]
> Sent: Saturday, August 11, 2012 4:53 PM
> To: mailing list for gambas users
> Subject: Re: [Gambas-user] High CPU usage when using serialport component
>
> Can you try the unmodified SerialPort example with revision #5029?
>
> Now I do the polling with a fixed frequency. That frequency is defined
> with a new optional argument to the Open() method. It is 50ms by default,
> so the CPU usage should be lower.
Finally got some free time slots so I could compile the latest build today
(#5050) and test the changes you made last week.
Using the SerialPort example the CPU usage seems OK when just opening and
listening. When sending a simple 10-bytes textstring it still uses very high
CPU on the RasPi.
Also received a error message when pressing Close button, see attached
pics for info and I also include system info below...
[System]
OperatingSystem=Linux
Kernel=3.1.9+
Architecture=armv6l
Memory=236872 kB
DistributionVendor=debian
DistributionRelease=6.0.5
Desktop=Xfce
[Gambas 3]
Version=3.2.90
Path=/usr/local/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.6.3
GTK+=libgtk-x11-2.0.so.0.2000.1
Let me know if you want me to test anything specific or needs some
more/other
info.
/CJ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CPU usage when using serialport - build 5050.PNG
Type: image/png
Size: 64580 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120817/68ca861f/attachment.png>
More information about the User
mailing list