Easy Mail Recovery 2 0 Serial Port

Posted on by admin
Easy Mail Recovery 2 0 Serial Port Rating: 4,2/5 5169 votes

No software needed ' Code 128, UPC/EAN, 2 of 5, Codabar, Code 39 ° For Vlfindows, DOS, Mac Keyboard Laser Reader $659 ~ “Point and Shoot' lteadlntl ' Lines. Does not Ilraw Power from laptop Bil' GIIITB Pl' llTB 'S - 4AA Batteries in Handle or Uses Wall Power. Gamma” pawn” _, $895 0 Attaches to DB-9 serial port I.

Active3 years, 2 months ago

I am communicating with an embedded device that periodically shuts down its USB serial port emulation, uses the USB port for something else, and then restarts its serial port emulation. During this brief period the serial port disappears from the windows device manager and also from the registry, and then reappears in both locations.

My .net 4.5 application handles this just fine so long as I am disconnected from the serial port when it occurs: after the serial port emulation has been restarted I can reconnect and communicate as usual.

However, if I am connected to the virtual serial port when the device drops and later restarts its serial port emulation, my program does not hang but I cannot gain access to the restarted port.

In this situation the windows device manager correctly shows the port vanishing and reappearing, while the registry shows the port vanishing but never reappearing. Naturally this means that SerialPort.GetPortNames() subsequently does not find the port, and of course I get an IOException if I attempt to close the port which has vanished.

Edit: I'm not using worker threads, and I am using BaseStream.ReadAsync and I am able to trap the IOException and dispose the original port object.

As I mentioned, the restarted emulated port shows up in Device Manager just fine but does not show up in the registry at HKLM/Hardware/DeviceMap/SerialComm.

HomeGuard Pro Full version Crack HomeGuard Pro Crack is a small part of the program that allows you to control and control the use of your computer on a PC. Download the latest USB 2.0 Serial driver for your computer's operating system. All downloads available on this website have been scanned by the latest anti-virus software and are guaranteed to be virus and malware-free.

Once I have disposed (or even tried and failed to close) the port in .net, if I subsequently force the embedded device to reboot then the emulated port reappears in the registry and I can reconnect to it. Unfortunately this requires physical interaction with the device, which typically is not possible.

I am seeking some way to recover programmatically, because I don't normally have access to the device to force a reboot.

I'm imagining that after I dispose my serial port object there might be some way to get Windows to refresh the registry, but I have been unable to find any clues as to how that might be accomplished.

I've found many SO questions that are similar to mine, but none that are quite the same and none that have provided an answer to my problem.

Hans Passant has suggested placing a tag on the USB cable inviting people to unplug it and plug it back in a few times just to see what happens. I like that thinking, but in my case the emulation is stopped and started by an embedded device -- and that behavior is required due to the design of the hardware.

I tried blindly adding <legacyUnhandledExceptionPolicy enabled='1'/>to my app.exe.config file, and it didn't seem to do anything.

Cable

Based on answers to similar questions I tried moving my call to Close() to a separate thread and also tried using async to await the call to close. That approach terminated my application with a system reflection error.

How can I make my application dispose its connection (or otherwise get out of the way) when a port vanishes and reappears, so the registry can be refreshed properly to match the device manager?

Or is there anything at all I can do to recover from momentary loss of an emulated serial port without terminating and restarting the application?

Mail
Craig.Feied
Craig.FeiedCraig.Feied

1 Answer

The framework System.IO.Ports.SerialPort class certainly doesn't make this easy.

You'll need some p/invoke or C++/CLI to get the disconnect and reconnect events... the RegisterDeviceNotification function is key.

After that, you should avoid use of worker threads, because System.IO.Ports.SerialPort is going to throw exceptions when the device disappears or the port is disposed, and you won't have a chance to install proper exception handlers on the completion-port worker thread.

If you do away with the DataReceived event and instead use port.BaseStream.ReadAsync for event-driven overlapped receive, you can put a try/catch around the ReadAsync call and be able to recover by disposing the old port object. As an extra bonus, the incoming data is then delivered through the synchronization context on your main thread so you don't have to worry about thread synchronization yourself.

Ben VoigtBen Voigt
242k30 gold badges335 silver badges606 bronze badges
Easy mail recovery 2 0 serial port switch
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged c#windowsserial-portusbserial or ask your own question.

Easy Mail Recovery 2 0 Serial Port Numbers

Download the latest USB 2.0 Serial driver for your computer's operating system. All downloads available on this website have been scanned by the latest anti-virus software and are guaranteed to be virus and malware-free.

Find All USB 2.0 Serial Drivers

Browse the list below to find the driver that meets your needs. To see more matches, use our custom search engine to find the exact driver.

Tech Tip: If you are having trouble deciding which is the right driver, try the Driver Update Utility for USB 2.0 Serial. It is a software utility that will find the right driver for you - automatically.

DriverGuide maintains an extensive archive of Windows drivers available for free download. We employ a team from around the world. They add hundreds of new drivers to our site every day.

Having trouble finding the right driver? Try the Automatic Driver Update Utility, or you can request a driver and we will find it for you.

Popular Driver Updates for USB 2.0 Serial

USB 2.0 Serial Driver Update Utility

Supported OS: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP
File Version: Version 5.6.10.59951
File Size: 4.3 MB
File Name:
DriverEasy_Setup.exe

Overall Rating:

intel 82801db/dbm usb 2.0 Driver

Intel

Device Type: USB
Supported OS: Win XP Home, Win XP Pro
Release Date: 2002-08-20
File Size: 57.5 KB
File Name:
USB2.zip

Overall Rating: (634 ratings, 680 reviews)

133,552 Downloads

Submitted Aug 28, 2003 by John Byrd (DG Member)

USB 2.0 Drivers Driver

Microsoft

Device Type: USB
Supported OS: Win XP Home, Win XP Pro
Release Date: 2002-01-31
File Size: 1.7 MB
File Name:
USB20.zip

Overall Rating: (369 ratings, 424 reviews)

105,143 Downloads

Submitted Feb 18, 2003 by Mark (DG Member):
'This driver was pulled from the installation disk from a Soyo motherboard with USB 2.0 before Microsoft made their big stink about it. It includes divers for all OS's.'

USB 2.0 Driver

Microsoft

Device Type: USB
Supported OS: Win 2003 Server, Win XP Home, Win XP Pro, Win 2000 Workstation, Win 2000 Server, Win NT 4.0
File Version: Version 5.2.1.0
File Size: 368.1 KB
File Name:
USB2.0_Drivers_for_WinXP.exe

Overall Rating: (315 ratings, 344 reviews)

56,708 Downloads

Submitted Oct 21, 2004 by Mert Ener (DG Member):
'I guarantee that it works with all Intel chipsets. Also 'usbehci.sys' file problem is fixed ! Have enjoy!'

USB2.0 all boards Driver

Intel

Device Type: USB
Supported OS: All Win 2000
File Version: Version 5.1.2600.0
Release Date: 2001-06-01
File Size: 290.8 KB
File Name:
USB202k.exe

Overall Rating: (328 ratings, 355 reviews)

62,946 Downloads

Submitted Dec 4, 2003 by james333 (DG Member):
'It works on all models of desktop boards with 2000'

nec usb 2.0 pci host adapter Driver

NEC

Device Type: USB
Supported OS: Win 98SE, Win 98
File Size: 446.6 KB
File Name:
U2v2_08.exe

Overall Rating: (193 ratings, 207 reviews)

24,231 Downloads

Submitted Jan 20, 2004 by al schneider (DG Member):
'Works with nec 2.0 pci cards, use this one for 2000/ xp as well'

PUC-102 Driver

NEC

Device Type: USB
Supported OS: Win XP Home, Win XP Pro
Release Date: 2001-11-21
File Size: 158.5 KB
File Name:
NECUSB.zip

Overall Rating: (27 ratings, 33 reviews)

7,789 Downloads

Submitted Jan 20, 2003 by rayquah (DG Member):
'Windows Driver Installation1. With your notebook booted up, slide the PUC-102 into its type II Cardbus slot. Windows detects the PUC-102's presence and displays a Found New Hardware message.2. When the New Hardware Wizard appears, Click on NEXT to continue.3. In the dialog box that comes up, leave the ...'

none Driver

Microsoft

Device Type: USB
Supported OS: Win XP Pro
File Size: 482.8 KB
File Name:
USB2_Drivers.zip

Overall Rating: (28 ratings, 29 reviews)

8,772 Downloads

Submitted Jun 15, 2004 by Robert morris (DG Member):
'USB 2.0 Drivers from Win XP SP1. Please Extract in a directory and update driver by browsing to directory with files.'

SiS USB 2.0 Driver

PC Chips

Device Type: USB
Supported OS: Win 98SE, Win 98
File Version: Version 1.00
File Size: 50.7 KB
File Name:
Patch_98.exe

Overall Rating: (44 ratings, 49 reviews)

12,138 Downloads

Submitted Jul 19, 2004 by Renato_CK_BR (DG Member):
'M810DLU v7.5A - Driver Patch for USB 2.0 PC-chips/ECS - For SiS962/963 Models'

2.0 PCI adaptor Driver

NEC

Device Type: USB
Supported OS: Win XP Home, Win XP Pro
File Size: 424.2 KB
File Name:
U2v2_02.exe

Overall Rating: (82 ratings, 86 reviews)

17,414 Downloads

Submitted Jan 8, 2003 by Piotr Wisla (DG Member):
'professional I/O controllerUSB 2.0 PCI AdaptorST Labbar code 0213019923 PCI-USBNEC-1'

2.0 Driver

Kingston

Device Type: USB
Supported OS: Win 98
File Version: Version 2.0
File Size: 1.1 MB
File Name:
f12dti.EXE

Overall Rating: (86 ratings, 89 reviews)

12,472 Downloads

Submitted Dec 8, 2005 by M.A.Ali (DG Member):
'KUSBDTI/XX USB DataTraveler I - Windows 98SE Driver. (04/04/2005) - Windows 2000 and Windows XP ship with drivers for this device. - Note for MAC Users:Mac OS 9.0 - 9.2.2 and Mac OS X (10.1 or above) ship with drivers for this device. No Mac compatible drivers are included in this file.'