CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Reset or Reinitialte Serial Connection
https://forum.codesys.com/viewtopic.php?f=21&t=9715
Page 1 of 1

Author:  pdoubleu [ Mon Apr 29, 2019 6:48 pm ]
Post subject:  Reset or Reinitialte Serial Connection

Hi everyone,

Im currently communicating with a motor controller VIA the USB port of the Raspi.
For the communication I am using the CAA library.
From time to time it happens, that a com port is opened multiple times without beeing closed and that causes an error (5802 - unfortunately i never found a real documentation for the error code).

My question is if it is somehow possible to reset or reinitiate the com connection using any command so that I can open and work with the port again without disconnecting the USB plug.

Thanks for any help.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/