I originally started developing with the LPC2368 beta unit on a Windows XP machine. All was working fine with the Windows serial port driver. When the new (current) driver was released, I started using that and it wored fine. I then added a Vista machine to my office. I then loaded the new drivers onto the Vista machine and all worked fine.
Recently, I received my LPC1768 mbed. I tried it on my Vista machine, and had to re-install the Windows serial port driver but all is working well on it. Now, either board works fine on this machine.
I then tried to run the LPC1768 on my XP machine, and again found I had to re-load the Windows Serial Port Driver. When I did, Windows reported that there was a problem and could not start the serial port driver. I tried re-installing it several times, both from the website as well as from a local drive copy. Finally, I went back to my LPC2368 mbed. Re-installed drivers, and everything works fine. Going back to the LPC1768, it fails. It always says the driver could not start. I have uninstalled, re-installed, etc., but to no avail.
Again, everything works fine on my Vista machine, just not on my XP machine, and only with the LPC1768 board...the LPC2368 works fine.
These devices can also interface to a host using the direct access driver. These drivers are static examples detailed in Application Note 197: The Serial Communications Guide for the CP210x. The CP210x Manufacturing DLL and Runtime DLL have been updated and must be used with v 6.0 and later of the CP210x Windows VCP Driver. Download virtual serial port driver for windows 10 64 bit and 32 bit. Choose an appropriate driver from the list available on this page. Eltima software is a global software development company, specializing primarily in serial communication, usb and serial port virtualization and remote access to usb and com port devices.
Any clues as to what might be the issue?
Thanks.
Jim
-->Definition
Represents a serial port. The object provides methods and properties that an app can use to find and interact with serials ports on the system.
- Implements
Windows 10 requirements
Device family | Windows 10 (introduced in 10.0.10240.0) |
API contract | Windows.Foundation.UniversalApiContract (introduced in v1.0) |
Examples
Remarks
The serial device capability, serialCommunication
, is required to use the SerialDevice
class. For more information, see Windows.Devices.SerialCommunication.
Create a SerialDevice object
- Generate an Advanced Query Syntax (AQS) string that contains search criteria for finding the device in the enumerated device collection. If you have the vendor and product identifiers, call GetDeviceSelectorFromUsbVidPid.
- Pass the retrieved string to FindAllAsync. The call retrieves a DeviceInformationCollection object.
- Loop through the collection. Each iteration gets a DeviceInformation object.
- Get the DeviceInformation.Id property value. The string value is the device interface path. (e.g
?usb#vid_03eb&pid_2157&mi_01#7&1435ec7f&0&0001#{86e0d1e0-8089-11d0-9ce4-08003e301f73}
). - Call FromIdAsync by passing the device interface string and get the
SerialDevice
object. If this throws an exception or returns null, it is likely:- The device interface path is invalid
- The device interface path does not respresent a serial device
- Application is missing the
serialCommunication
capability - The serial device is inaccessible. (see Windows.Devices.SerialCommunication )
Read and write data
Serial Com Device Port Devices Driver Download For Windows Xp
You can then use the SerialDevice object to read from or write to the serial port by using the Windows.Storage.Streams namespace.
- Obtain a reference to the input stream by getting the SerialDevice.InputStream property.
- Create a DataReader object by specifying the input stream in the DataReader constructor.
- Obtain a reference to the output stream by getting the SerialDevice.OutputStream property.
- Create a DataWriter object by specifying the output stream in the DataWriter constructor.
Properties
BaudRate | Gets or sets the baud rate. |
BreakSignalState | Gets or sets the break signal state. |
BytesReceived | Represents the number of bytes received by the last read operation of the input stream. |
CarrierDetectState | Gets the state of the Carrier Detect (CD) line. |
ClearToSendState | Gets the state of the Clear-to-Send (CTS) line. |
DataBits | The number of data bits in each character value that is transmitted or received, and does not include parity bits or stop bits. |
DataSetReadyState | Gets the state of the Data Set Ready (DSR) signal. |
Handshake | Gets or sets the handshaking protocol for flow control. |
InputStream | Input stream that contains the data received on the serial port. |
IsDataTerminalReadyEnabled | Gets or sets a value that enables the Data Terminal Ready (DTR) signal. |
IsRequestToSendEnabled | Gets or sets a value that enables the Request to Send (RTS) signal. |
OutputStream | Gets an output stream to which the app can write data to transmit through the serial port. |
Parity | Gets or sets the parity bit for error-checking. |
PortName | Gets the port name for serial communications. |
ReadTimeout | Gets or sets the time-out value for a read operation. |
StopBits | Gets or sets the standard number of stop bits per byte. |
UsbProductId | Gets the idProduct field of the USB device descriptor. This value indicates the device-specific product identifier and is assigned by the manufacturer. |
UsbVendorId | Gets the idVendor field of the USB device descriptor. The value indicates the vendor identifier for the device as assigned by the USB specification committee. |
WriteTimeout | Gets or sets the time-out value for a write operation. |
Methods
Serial Com Device Port Devices Driver Download For Windows 10
Close() | Releases the reference to the SerialDevice object that was previously obtained by calling FromIdAsync. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
FromIdAsync(String) | Starts an asynchronous operation that creates a SerialDevice object. |
GetDeviceSelector() | Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find all serial devices on the system. |
GetDeviceSelector(String) | Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find a serial device by specifying its port name. |
GetDeviceSelectorFromUsbVidPid(UInt16, UInt16) | Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find a specific Serial-to-USB device by specifying it's VID and PID. |
Serial Com Device Port Devices Driver Download For Windows
Events
ErrorReceived | Event handler that is invoked when error occurs on the serial port. |
PinChanged | Event handler that is invoked when the state of a signal or line changes on the serial port. |