I only use COM ports in Linux with jSerial.
Yes, the code is same for async stream.So, code is the same as for Windows ? Do you mean the port cannot be open due to some permission ?
#if B4J
#if LinuxDebugging or LinuxProduction
Dim USBportPrefix As String = "/dev/tty" '/dev/ttyUSB0
#else
Dim USBportPrefix As String = "COM" 'Windows COM-ports
#End If
#Else if B4A
Dim USBportPrefix As String = "/dev/bus/usb/" '/dev/bus/usb/001/003
#End If
I only can think that the step for setting permission is outside the installer.Thanks, Aeric, indeed.
I have set up WSL2 like here https://learn.microsoft.com/en-us/windows/wsl/connect-usb, and it can detect the serial device, but only under SUDO.
B4X:#if B4J #if LinuxDebugging or LinuxProduction Dim USBportPrefix As String = "/dev/tty" '/dev/ttyUSB0 #else Dim USBportPrefix As String = "COM" 'Windows COM-ports #End If #Else if B4A Dim USBportPrefix As String = "/dev/bus/usb/" '/dev/bus/usb/001/003 #End If
But how the app should be installed\provided for end-user ? With setting up the permissions\group rights ?
/dev/ttyUSB0: data is ОК
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Hi, @aericI only use COM ports in Linux with jSerial.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
So, if to unplug the connector during communication - where an error occured ? No crash ?Just serials port.
Sorry, I don't do such thing.So, if to unplug the connector during communication - where an error occured ? No crash ?
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
It works on my old laptop, may be an audio configuration or driver issue on a device by device basis. WSL does not currently support Audio.stereo-audio output do not work
Yes, thanks, i found other PC - the generator works there under Linux, in release mode, sure only.It works on my old laptop
Ha, this allows all.application always runs under a sudo user
Yes ! Stupid. Under Windows all works automatically and all errors catched OK.unable to catch these exceptions using Try-Catch
GUI app as a service ?! How to do it ?application as a systemd service
GUI app as a service ?! How to do it ?