[python-win32] Python - connexion to serial port
Preston Landers
planders at gmail.com
Thu Jan 11 11:07:55 EST 2018
You could have a worker thread or process that keeps the serial port open
and listens for jobs on some kind of task queue.
However it's not clear to me how keeping the serial port open between
requests provides assurance of data integrity.
On Thu, Jan 11, 2018 at 9:27 AM Schoeni, Yann <Yann.Schoeni at moutier.ch>
wrote:
> Hey there !
>
>
>
> I’ve a web application which needs to send data to a serial port. The
> webserver uses ajax to send data to a python script.
>
>
>
> The Python script uses the serial module to open, send data, and close the
> serial port.
>
>
>
> *Is there a way to keep the serial port open ? *
>
>
>
> Because for now, I open/close it between each transaction and I need to be
> 100% sure the data package will be send .. which is not the case with my
> actual python script.
>
>
>
> Thank you in advance for your answer.
>
>
>
> Best wishes
>
>
>
> *Yann Schoeni*
>
> *Municipalité de Moutier *
>
> Apprenti informaticien
>
> Tél. +41 (0)32 494 11 69 <+41%2032%20494%2011%2069>
>
> Mob. +41 (0)79 827 30 86 <+41%2079%20827%2030%2086>
>
> E-mail yann.schoeni at moutier.ch
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180111/b8ebaf6f/attachment.html>
More information about the python-win32
mailing list