Have you tried the SerialPort functions in MBS FileMaker Plugin?
With 39 functions in MBS Plugin related to serial ports, you can:
- Use serial ports on MacOS and Windows
- List real ports, virtual ports and those provided via USB adapters
- Connect to serial port
- Configure baud rate, parity, data and stop bits.
- Set CTS, DSR, DTR, RTS, XON flags
- Send text in any encoding, raw bytes as hex string or individual bytes.
- Get a script triggered for new data coming in
- Read data as text in any encoding, raw bytes as hex or single bytes.
- Read text till new line
- Suspend and Resume the port
- Check for available bytes in incoming buffer
- Clear buffers
If you order a MBS FileMaker Plugin license for SerialPort functions, you get over 6000 other functions for free within the same package.