Category : usbserial

Here is what I have done: – 1. Clean install of Windows 10 (Running in Oracle VirtualBox) a. Version 20H2 (OS Build 19042.685) 2. Install MSYS2 a. https://www.msys2.org/ (Main website) b. Download installer i. https://repo.msys2.org/distrib/x86_64/msys2-x86_64-20201109.exe ii. msys2-x86_64-20201109.exe c. Run installer i. Install location "C:msys64" 3. Setup MSYS2 (Run in MSYS2 shell) a. Update the package ..

Read more

I wrote a simple Windows program to detect if a serial break occurs in a specified port: #include <stdio.h> #include <windows.h> #define WINSERIALTEST_ARGS_COM_NAME_INDEX (1) #define WINSERIALTEST_DEFAULT_BAUDRATE (CBR_9600) static HANDLE comHandle; int main(int argc, char *argv[]) { char comName[30] = ""; DWORD comEvent = 0; BOOL succeeded = FALSE; DCB dcb; sprintf(comName, "\.%s", argv[WINSERIALTEST_ARGS_COM_NAME_INDEX]); comHandle = ..

Read more

I am trying to open a serial connection through C++ in Android. But upon calling: _fd = open(dev_name.c_str(), O_RDWR | O_NOCTTY | O_NONBLOCK); I get the following log: 2020-10-10 20:49:55.688 14944-14944/<package> W/<package>: type=1400 audit(0.0:44009): avc: denied { search } for name="usb" dev="tmpfs" ino=907304 scontext=u:r:untrusted_app:s0:c184,c258,c512,c768 tcontext=u:object_r:usb_device:s0 tclass=dir permissive=0 I have added the permission checks: UsbManager usbManager ..

Read more