Fantom Yase 2 Serial Port

Hello,

Fantom
  • Phantom usb to serial port. Ask Question. Up vote 3 down vote favorite. My program talks to various electronic devices via an ftdi usb to serial port. On the hardware side it can happen, that the ftdi chip is disturbed by a short power outage. Even while the USB cable is disconnected, a phantom port is still visible in the windows device.
  • How do I clean up COM ports in use? They also take up 1 serial port each. – grawity Apr 5 '12 at 17:54. Yes, but there's just one modem there. Software, and Arbiter sections it did NOT remove the phantom COM port entries. Even a reboot with the 'USB to 2Serial Port' device removed did not clean up the system properly.
  • How to view and clear Phantom Communications Serial Ports in Device Manager - 2010-12-21 Arizona Phoenix 12038-KM: foto#0: foto#1. At that point you need to perform the phantom serial port clearing procedure. Below you can see the results of this procedure after I have purposely created 2 phantom installs of the serial cable.

What is the USB port for? Home / PHANTOM. Uploading and Loding Picture.(0 / 1) o(^-^)o. Alterastro lvl.3 + Add. The connector is a serial port. I connected Putty to it where I found it was sending all sorts of telemetry data. I believe at one time DJI Assistant made use of this port in serial mode.

I would like to 'reset' ghost or non-present COM ports using devcon.exe in a batch file.

The issue is that a device that is attached to USB port and mapped to COM port seems to go 'bad' periodically. I am trying to remove the ghost port then rescan for hardware changes and hopefully be able to pick up the device again in the hope that the device will continue functioning properly.

This device is being used at a hospital facility and it will continue to work when the issue occurs if it is manually unplugged and plugged into another USB port. However the facility would like to eliminate the need for this manual intervention.

Fantom Yase 2 Serial Ports

I put together the batch file below. The devcon. exe command picks up and displays the ghost ports, but it will not remove them. For the line that has the devcon remove %%a%%b I get 'No devices removed'.

Fantom Yase 2 Serial Port

Any help, hints, or confirmation that this cannot be accomplished with devcon.exe is much appreciated.

Fantom yase 2 serial port

Thanks in advance - jd

@echo off
::COM port info goes to cr.dat file
::XP SP3
::devcon.exe needed, download from
::http://support.microsoft.com/kb/311272 if needed

Fantom Yase 2 Serial Portrait

set DEVMGR_SHOW_NONPRESENT_DEVICES=1
ping 127.0.0.1 -n 5 >nul

devcon findall =ports | find 'ECP Printer Port' > cr.dat
::look for card reader port and send to a temp file
::devcon findall =ports | find 'USB Serial Port' > cr.dat

::if no COM ports found for card reader exit program
if %errorlevel% NEQ 0 (
echo %errorlevel%: ***NO PORTS FOUND TO RESET!***
goto :EXIT
)

Fantom Yase 2 Torrent

set PORTRESCAN='N'
::parse COM port data in cr.dat and reset COM port
for /F 'tokens=1*' %%i in (cr.dat) do (
echo.
echo *** *** ***
for /F 'tokens=1,2 delims=' %%a in ('%%i') do (
echo Resetting %%a%%b %%j
devcon remove %%a%%b
IF %errorlevel% 0 (
echo DONE!
set PORTRESCAN='Y'
) ELSE (
echo ***%errorlevel%: ERROR RESETTING PORT!***
)
ping 127.0.0.1 -n 3 >nul
)
)

Fantom Yase 2 Serial Port Number

:: rescan ports
if %PORTRESCAN% 'Y' (
echo Rescanning COM ports ...
devcon rescan
ping 127.0.0.1 -n 3 >nul
)

Fantom Yase 2 Serial Portal


:EXIT
:: remove cr.dat
del cr.dat
echo *** END OF PROGRAM ***