ActiveUSBCOM UsersGuide
ActiveUSBCOM UsersGuide
User's Guide
Active USB-COM Port Driver User’s Guide i
No part of this publication may be reproduced in any form or by any means without
permission in writing from the publisher.
Specifications are subject to change without prior notice.
Windows is registered trademarks of Microsoft Corporation.
Other products and company names mentioned in this manual are trademarks or registered
trademarks of their respective holders.
Active USB-COM Port Driver User’s Guide ii
Preface
This manual describes installation/uninstallation and ancillary applications of Active USB-COM
Port Driver.
Please read first before using devices those need Active USB-COM Port Driver.
Obtaining This Product and the Latest Information
This product and the latest information can be obtained by accessing the below URL.
https://www.denso-wave.com
Those customers who have purchased DENSO WAVE products can obtain more detailed
information from our exclusive Web site for registered users (QBdirect). Please refer to the
following URL.
https://www.denso-wave.com
Related Publications
Operator’s Guide and User’s Manual of the USB devices made by DENSO WAVE that use
Active USB-COM Port Driver.
Screen Indication
The lettering in the screens in this manual is a little different from that in the actual screens.
Device names used are only for description purpose, so they will not appear if you have not set
devices having those names.
Intellectual Property Precaution
DENSO WAVE INCORPORATED ("DENSO WAVE") takes reasonable precautions to ensure
its products do not infringe upon any patent of other intellectual property rights of other(s), but
DENSO WAVE cannot be responsible for any patent or other intellectual property right
infringement(s) or violation(s) which arise from (i) the use of DENSO WAVE's product(s) in
connection or in combination with other component(s), product(s), data processing system(s)
or equipment or software not supplied from DENSO WAVE; (ii) the use of DENSO WAVE's
products in a manner for which the same were not intended nor designed; or (iii) any
modification of DENSO WAVE's products by other(s) than DENSO WAVE.
Limited Warranty on Software Products
In no event will DENSO WAVE be liable for direct, indirect, special, incidental, or consequential
damages (including imaginary profits or damages resulting from interruption of operation or
loss of business information) resulting from any defect in the software or its documentation or
resulting from inability to apply the software or its documentation.
Active USB-COM Port Driver User’s Guide iii
Contents
PREFACE ....................................................................................................................... II
CONTENTS ...................................................................................................................III
2. INSTALLATION ...................................................................................................... 4
2.1 How to install Active USB-COM Port Driver .......................................................... 4
2.1.1 Double-click “install.exe” to execute ............................................................... 5
2.1.2 Start "install.exe" from command prompt...................................................... 7
2.1.3 Start "install.exe -P n" (n: COM port number) from command prompt ....... 8
2.1.4 Start "install.exe -C x" (x: the number of COM ports) from command prompt 8
2.1.5 Start "install.exe -S" from command prompt ................................................. 9
2.1.6 Start "install.exe -P n -S" (n: COM port number) from command prompt ... 9
2.1.7 Start "install.exe -C x -S" (x: The number of COM ports) from command prompt
9
2.1.8 Return value when executed from command prompt .................................. 10
3. LOAD/UNLOAD .................................................................................................... 12
3.1 About driver configuration of Active USB-COM port driver ................................. 12
3.2 Driver for virtual COM port "dwserial.sys" ........................................................... 12
3.2.1 Load ................................................................................................................ 12
3.2.2 Unload ............................................................................................................ 12
3.3 Driver for USB "dwusb.sys" ................................................................................. 12
3.3.1 Load ................................................................................................................ 12
3.3.2 Unload ............................................................................................................ 12
3.4 Relationship between USB port and virtual COM port ........................................ 13
3.5 Checking connection of USB device ................................................................... 13
3.6 Changing COM port number ............................................................................... 13
4. UNINSTALLATION .............................................................................................. 14
4.1 How to uninstall Active USB-COM Port Driver .................................................... 14
4.1.1 Execute from "Apps and Features" ............................................................... 15
4.1.2 Start "DNWA_AUSBD_Uninstaller.exe" from command prompt ............... 17
4.1.3 Start "DNWA_AUSBD_Uninstaller.exe -S" from command prompt .......... 17
4.1.4 Return value when executed from command prompt .................................. 18
TIP:
The latest and detailed information of the supported Windows OS can be obtained by accessing
the below URL.
https://www.denso-wave.com
Windows 10 IoT Enterprise is a Windows 10 embedded OS. We tested it with our environment,
but it does not guarantee your any operational environment. Please test in enough to be no
trouble with your operational environment, and use it.
Usable DENSO WAVE USB Devices
Please refer to the following URL for DENSO WAVE USB devices that can use Active USB-COM
Port Driver.
https://www.denso-wave.com
1.2 Features
Active USB-COM Port Driver has following features.
• The USB device can be removed from and reconnect to the PC USB port while the application
opens the Serial Port with which the USB device is connected. (It will be kept opening when the
USB device is plugged into the USB Port again.)
• The Virtual Serial COM Port is always existed on PC even if the USB device is removed from the
PC USB Port, so that the Serial Port can be opened anytime.
• On the Device Manager, the COM port is confirmed which port the USB device is connected with.
Active USB-COM Port Driver User’s Guide 2
1.3 Notice
Precautions in using Active USB-COM Port Driver are as follows:
• Please install and uninstall the Active USB-COM Port Driver as the Administrator.
• About installation, after decompressing the compressed driver file downloaded from DENSO
WAVE website (https://www.denso-wave.com), please run it as it is. If “install.exe” is moved and
run, the following error message is displayed.
• About two tools (“driverlog.exe” and “uninstall.exe”) in the Tools folder, after decompressing the
compressed driver file downloaded from DENSO WAVE website (https://www.denso-wave.com),
please run them as it is. If the exe file is moved and run, the following error message is displayed.
[In case of moving “uninstall.exe”]
• Please uninstall the Active USB-COM Port Driver with "Apps and Features".
Note:
• Please don’t delete the Active USB-COM Port Driver with the Device Manager.
• Please stop the application with the COM port allocated by the Active USB-COM Port Driver
before uninstalling the driver.
• After the installed Active USB-COM Port Driver into PC is uninstalled, please update it of the new
version.
• DENSO WAVE USB device can be removed and plugged into PC during communication. (COM
port is opened.) However, communication data are lost while the USB device is removed. Please
recovery the lost data with your application.
• The multiple use of DENSO WAVE USB device is available when this driver is installed at the
multiple times. However, this driver cannot be individually uninstalled. (All the installed drivers are
uninstalled at one time.)
• DENSO WAVE USB device may not be connected if the fast startup function with Windows 8.1 or
later is set. In that case, please set “Turn on fast startup” to “OFF” at the Windows Control Panel
“Power Options” utility, restart the PC.
Active USB-COM Port Driver User’s Guide 3
• Windows standard driver “usbser.sys” will be loaded if you inserted DENSO WAVE USB device in
the USB port of the PC with Windows 10 or Windows 10 IoT Enterprise which does not install
Active USB-COM Port Driver. DENSO WAVE USB device does not support the operation with the
Windows standard driver “usbser.sys”. Please use it after installing Active USB-COM Port Driver
by all means. And please stop the application with the COM port allocated by the Windows
standard driver “usbser.sys” before installing the Active USB-COM Port Driver.
• After the installation or uninstallation is finished, Windows may display the PC restart request
message. In that case, please follow it.
• When setting up Active USB-COM port driver to use UWP applications, refer to "Appendix.1 UWP
setup guide.pdf ".
Active USB-COM Port Driver User’s Guide 4
2. Installation
This section describes how to install Active USB-COM Port Driver.
Note:
• •After decompressing the compressed driver file downloaded from DENSO WAVE website
(https://www.denso-wave.com), please install it as it is. If “install.exe” is moved and run, the
following error message is displayed.
3) Installation is progressed.
Note:
• The progress bar may not advance as shown below, please do not force-quit this program.
[During driver installation]
Active USB-COM Port Driver User’s Guide 6
For Windows 8.1 or before, when the installation is started, the following message window might
be displayed. Please click “Install” button.
Active USB-COM Port Driver User’s Guide 7
And then, the following message window might be displayed. Please click “Install” button.
4) The following completion dialog comes out. Then click “Finish” button.
2.1.3 Start "install.exe -P n" (n: COM port number) from command prompt
In this procedure, one COM port is generated by specifying the COM port number n.
This procedure is effective when you decide the COM port number uniformly and operate it.
The option "-P" can be used with "-p".
[Format example]
> start /wait install.exe -P 10
TIP:
Set the execution path of command prompt is moved to the folder where "install.exe" exists.
Note:
• The COM port number that can be specified is 3 to 256.
[Return value]
See Section 2.1.8.
2.1.4 Start "install.exe -C x" (x: the number of COM ports) from command prompt
In this procedure, specify the number of COM ports x that you want to generate, and generate x
COM ports starting from the lowest available number in COM port number 3 or later managed by the
PC. This procedure is effective when it is known to connect and use multiple USB devices from the
stage of system construction.
The option "-C" can be used with "-c".
Note:
• The relationship between the USB port and the COM port is determined by Windows. Therefore, if
you do this while some USB devices are inserted, the relationship between the USB device, USB
port and COM port may not be as you expect. If your application was created with a fixed USB
device, a USB port and a COM port, use one of the following methods.
- Run this method with all of the USB devices unplugged. Then insert the USB devices in order.
- Complete the installation and the USB device insertion one by one.
• In case of the driver’s re-installation and version up, the above rule applied.
[Format Example]
> start /wait install.exe -C 2
TIP:
Set the execution path of command prompt is moved to the folder where "install.exe" exists.
[Return value]
See Section 2.1.8.
Active USB-COM Port Driver User’s Guide 9
3. Load/Unload
This section describes how to load and unload Active USB-COM port driver.
Note:
• It is the prerequisite that the installation in Chapter 2 has been completed successfully.
If you want to check this using a user program, please refer to Chapter 6.
4. Uninstallation
This section describes how to uninstall Active USB-COM Port Driver.
Note:
• It is the prerequisite that the installation in Chapter 2 has been completed successfully.
• Please close all applications that use the COM ports assigned with the driver before uninstalling
it.
• Please uninstall the Active USB-COM Port Driver as the Administrator.
• Please don’t delete the Active USB-COM Port Driver with the Device Manager.
• When two or more devices that use this driver for the same PC are installed, the driver
uninstallation means uninstalling all USB devices that use the Active USB-COM Port Driver. So,
you cannot remove a device selectively.
• After the uninstallation is finished, Windows may display the PC restart request message. In that
case, please follow it.
3) When preparation for uninstallation is completed, the following screen is displayed. Select "Next
(N)".
Active USB-COM Port Driver User’s Guide 16
5) After uninstallation is finished, the following screen will be displayed. Select "Done".
Active USB-COM Port Driver User’s Guide 17
Note:
• After uninstallation is finished, Windows may display PC restart request message. In that case,
please follow it.
If an error occurs during uninstallation, an error is displayed as shown in the following screen. See
Section 4.1.5.
5. Log Information
This section describes the logs of Active USB-COM Port Driver and the logs of the installation and
uninstallation.
Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\PORTS\nnnn\Device
Parameters
(nnnn : Any four digits decided by Windows)
Entry ComNumber
Type REG_DWORD
Data COM port number is indicated with four bytes.
(ex.) Case of COM3 : 0x00000003
Active USB-COM Port Driver User’s Guide 22
Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\PORTS\nnnn\Device
Parameters
(nnnn : Any four digits decided by Windows)
Entry ConnectStatus
Type REG_DWORD
Data Connection state is indicated with four bytes.
For connected : 0x00000001
For disconnected : 0x00000000
Key KEY_LOCAL_MACHINE\System\CurrentControlSet\Services\dwserial\Parameters
Entry NotifyUSBConnFlag
Type REG_DWORD
Data valid : 0x00000001
invalid : 0x00000000
The EV_DSR event occurs on changing of state in the DSR. By waiting for EV_DSR with
WaitCommEvent of Win32 API etc., the state change of the USB device can be detected in real time
Note:
• Since this driver is a virtual driver, the event occurrence and signal status are not always
synchronized. Be sure to check the status of the DSR signal after event notification.
Active USB-COM Port Driver User’s Guide 23
7. Ancillary applications
After installing the Active USB-COM port driver, the following ancillary applications will be registered
in the Start menu. Details are described in each section, please use as needed.
• COM port addition tool
• Log collection tool
• Device connection check tool
• Device reconnection tool
Note:
• Do not close while collecting logs.
4) When log collection is completed, the following screen is displayed. Select "OK".
5) The folder where the log collection file was saved is displayed.
Active USB-COM Port Driver User’s Guide 26
2) The following COM port selection screen will be displayed. Select the COM port and select "OK".
The port indicated as "Connected" is the port to which DENSO WAVE USB device is connected.
4) Reading data is displayed when you read one-dimensional or two-dimensional code with DENSO
WAVE USB device (scanner).
Active USB-COM Port Driver User’s Guide 27
3) The above 2) succeed, but loading of the USB driver “dwusb.sys” fails.
On the Device manager, “DENSO WAVE USB Device (COMx)” is displayed under “Universal
Serial Bus controllers” and “!” mark is added.
The above 1) and 2) are not resolved about the recognition between Windows OS and the device.
Please pull and insert the device manually and check the recognition.
The above 3) may resolves after running the Device reconnection tool, but it may still not resolved. In
this case, please run the Log collection tool (see Section 7.2) and send the log collection file.
The purpose of this manual is to provide accurate information in the installation and uninstallation of Active
USB-COM Port Driver. Please feel free to send your comments regarding any errors or omissions you may have
found, or any suggestions you may have for generally improving the manual.
In no event will DENSO WAVE be liable for any direct or indirect damages resulting from the application of the
information in this manual.