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

[Feature] Serial control #823

Closed
JonnyTech opened this issue May 24, 2023 · 1 comment
Closed

[Feature] Serial control #823

JonnyTech opened this issue May 24, 2023 · 1 comment

Comments

@JonnyTech
Copy link

I have some devices that require serial control - stuff like Arduino's and other custom boards. Currently using PuTTY or other terminal emulators to send strings - even from terminal:

stty -F /dev/ttyS0 9600 -parity cs8 -cstopb
echo 'hello' > /dev/ttyS0

Does Open Stage Control support sending / receiving serial (or even serial-over-IP)?

If not, can this be considered a feature request please?

@jean-emmanuel
Copy link
Owner

jean-emmanuel commented May 24, 2023

Serial communication is considered out the app's scope and won't be implemented, but it should be possible to make it work using a custom module and node's serialport. You'd need to install node and npm on your system and run npm install serialport in the custom module's folder, then the module would look like this

const SerialPort = requireNative('serialport')

//  do things with that module

module.exports = {
  oscInFilter: (data)=>{
    // maybe do something with incoming osc messages
    return data
  },
  oscOutFilter: (data)=>{
    // maybe do something with outgoing osc messages
    return data
  },
  unload: ()=>{
    // close/destroy serialport (if editing the custom module while running)
  }
}

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

No branches or pull requests

2 participants