GDSerialAsset icon indicating copy to clipboard operation
GDSerialAsset copied to clipboard

Could not open port: Invalid number of stop bits on Godot 3.1.1 Ubuntu 18.04

Open NangiDev opened this issue 5 years ago • 0 comments

When running the example project in Godot 3.1.1 on Ubuntu 18.04 I get the message "Could not open port: Invalid number of stop bits" in terminal

I worked around it by adding the first values from Com.gd to corresponding parameter for the Open() function at line 33 in SimpleConsole.gd.

From this: PORT.open(port,int($OptionButton.get_item_text(ID)),1000) to this: PORT.open(port,int($OptionButton.get_item_text(ID)),1000,com.bytesz.SER_BYTESZ_8, com.parity.SER_PAR_NONE, com.stopbyte.SER_STOPB_ONE)

To reproduce:

  • Run Godot from terminal
  • Open GDSerialAsset project
  • Try to connect to port "/dev/ttyACM0" with baudrate 9600

NangiDev avatar Oct 09 '19 16:10 NangiDev