- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the difference between using the Visual Studio's SerialPort dbgPort = new SerialPort(); dbgPort .Open(); and the Cypress CyOpen(); ?
(USB Serial Library API - DllImport("cyusbserial.dll",)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The SerialPort.Open() method opens a COM port device whereas the CyOpen() API is only used to open a Cypress USB-Serial device to perform vendor specific operations. The CyOpen() API cannot be used to communicate with the COM port device. This API is used when one of the interfaces of the device is defined as a vendor interface.
The use of CyOpen() API can be understood from the example applications that come with the USB-Serial SDK.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The SerialPort.Open() method opens a COM port device whereas the CyOpen() API is only used to open a Cypress USB-Serial device to perform vendor specific operations. The CyOpen() API cannot be used to communicate with the COM port device. This API is used when one of the interfaces of the device is defined as a vendor interface.
The use of CyOpen() API can be understood from the example applications that come with the USB-Serial SDK.
Best regards,
Srinath S