Skip to content

Rework serial port routines#5

Open
msalau wants to merge 1 commit into
tanchinluh:masterfrom
msalau:serial-port-handling-rework
Open

Rework serial port routines#5
msalau wants to merge 1 commit into
tanchinluh:masterfrom
msalau:serial-port-handling-rework

Conversation

@msalau
Copy link
Copy Markdown

@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
@msalau msalau force-pushed the serial-port-handling-rework branch from e80f738 to ad5466b Compare February 10, 2022 20:35
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