Re: Small script to check serial port sucking down system resources.

2013-12-16 Thread Grant Edwards
On 2013-12-16, MRAB wrote: > On 16/12/2013 14:31, sem...@gmail.com wrote: > >> i wrote a program to watch a serial port and look for a command. then >> send a tcp packet. all works great but it takes my processor load to >> about %25. not sure if there is a way to make this more efficient. >> >> i

Re: Small script to check serial port sucking down system resources.

2013-12-16 Thread MRAB
On 16/12/2013 14:31, sem...@gmail.com wrote: i am new to python and programming all together. i wrote a program to watch a serial port and look for a command. then send a tcp packet. all works great but it takes my processor load to about %25. not sure if there is a way to make this more efficie

Small script to check serial port sucking down system resources.

2013-12-16 Thread sem2jy
i am new to python and programming all together. i wrote a program to watch a serial port and look for a command. then send a tcp packet. all works great but it takes my processor load to about %25. not sure if there is a way to make this more efficient. import serial import socket HOST = '1