![]() I also don't specify to which serial port it should connect because I think that is enough to give the device(see Buf in the code). I tried adding \r and/or \n at the end, beginning and both(end and beginning) but still not working. ![]() Now you need to choose a source for COM port. On Windows I can connect to the device, there is no error in FT_W32_CreateFile or FT_W32_WriteFile, but when I send "command" nothing happens, the device doesn't react.Īfter a long search I think that maybe the problem is in the terminational character. Resolution Open virtual machines configuration menu -> go to Hardware tab -> click on -> add Serial Port. On Mac I can connect to the serial port and send the "command" to the device and everything works fine. Here is my code: FT_STATUS ftStatus FT_HANDLE ftHandle char Buf // the device found is **FT232R USB UART** ftStatus = FT_ListDevices ( 0, Buf, FT_LIST_BY_INDEX | FT_OPEN_BY_DESCRIPTION ) įtHandle = FT_W32_CreateFile ( Buf, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FT_OPEN_BY_DESCRIPTION, 0 ) if ( ftHandle = INVALID_HANDLE_VALUE ) FT_W32_CloseHandle ( ftHandle ) 7 and pySerial) The problem: When opening the serial port via Putty I see all messages. ![]() The device is connected to the COM9 port and I use the ftd2xx.lib library. Serial(device, 9600) except: print Failed to connect on,device. ![]() I connect a FT232R device controlled by a VMX controller( l).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |