Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework serial port routines #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msalau
Copy link

@msalau msalau commented Feb 10, 2022

Changes:

  • Fixed usage of deprecated get_figure_handle() on 6.1.1
  • Turned on compiler warnings for gateway files
  • Made port name/number a string, not an integer
  • On Windows port may be defined by its name or number
  • All port numbers are accessible on Windows: COM1..COM255
  • On Linux port name should be a full device path e.g. /dev/ttyUSB5
  • More error checking and handling.
  • Better error messages for syscalls errors
  • No more memory leaks due to unused OK variables
  • No more static storage for port handlers: native handler (or file
    descriptor on Linux) is returned to Scilab and received from it;
    Number of boards used is no more limited
  • Disabled flow control configuration on Windows

Tested with Scilab 6.1.1 on Windows 10 64bit (MSVC v142 Community Edition) and Linux64 (GCC v11.2).
Symlinks were tested and work perfectly fine on Linux.

This change was developed fully independently from #1 and they overlap a bit, but this change has much greater level of rework for the sci_gateway code.

Changes:
 * Fixed usage of deprecated get_figure_handle() on 6.1.1
 * Turned on compiler warnings for gateway files
 * Made port name/number a string, not an integer
 * On Windows port may be defined by its name or number
 * All port numbers are accessible on Windows: COM1..COM255
 * On Linux port name should be a full device path e.g. '/dev/ttyUSB5'
 * More error checking and handling.
 * Better error messages for syscalls errors
 * No more memory leaks due to unused 'OK' variables
 * No more static storage for port handlers: native handler (or file
   descriptor on Linux) is returned to Scilab and received from it;
   Number of boards used is no more limited
 * Disabled flow control configuration on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant