Serial Port Component
Download ActiveXperts Serial Port Component 3.2 - (Windows x64,
Windows x86)
View Manual - (HTML)
Screenshots - Product image gallery
Adding serial communications requires specialized knowledge that might
be outside an individual programmer's expertise. For years, developers
have relied upon the power and reliability of the ActiveXperts Serial
Port Component serial communications control.
Easy to use API
Control devices over a serial port
32-bit ActiveX and 64-bit ActiveX included
Samples available in C#, VB, ASP.NET, HTML, PHP, Javascript,
Delphi and more
Startup screen
MS Visual
Studio
.NET web
application
.NET GUI
application
Console
application
Use ActiveXperts Serial Port Component for different purposes:
To control manufacturing machines via the serial port;
To configure network devices (like print-servers, routers) via the
serial port;
To control a modem, connected to the serial/USB port or Bluetooth;
To transfer files through a null modem cable;
Any other scenario where serial communications is involved.
ActiveXperts Serial Port Component features the following:
Direct COM ports supported (like 'COM2');
Windows Telephony Devices supported (like 'Standard 9600 bps
Modem');
Support for RS-232, RS422 and RS485;
Up to 256 ports opened simultaneously;
Thread-safe to allow the component in multi-threading environments
(multi-threading samples included);
Support for Hayes compatible modems, connected via a serial port,
USB or Bluetooth;
Support for Virtual COM ports (i.e. COM ports redirected through
the network);
Hardware flow control (RTS/CTS, DTR/DSR);
Software flow control (XON/XOFF);
Support for any baudrate;
Ability to set baudrates, parity, stopbits;
Full buffered data transfer;
Text and Binary data transfer;
Advanced logging.
ActiveXperts Serial Port Component includes samples for many development
tools, including:
Visual Basic .NET. More
Visual C# .NET. More
ASP .NET VB. More
ASP .NET CSharp. More
Visual Basic 6.x. More
ASP 2.x. More
Visual C++. More
VBScript. More
HTML. More
Borland Delphi 7.x or higher. More
PHP. More
Powershell More
Any other development platform that supports ActiveX/COM
components
System Requirements
ActiveXperts Serial Port Component is available as a 32-bit component
and as a 64-bit component (both part of the product):
AxSerial32.dll - 32-bit component;
AxSerial64.dll - 64-bit component.
ActiveXperts Serial Port Component runs on the following Operating
Systems:
Windows 2012 R2 (64 bit);
Windows 2012 (64 bit);
Windows 2008 R2 (64 bit);
Windows 2008 (32 and 64 bit);
Windows 2003 (32 and 64 bit);
Windows 2000 Server and Professional (32 bit only);
Windows 8 (32 and 64 bit);
Windows 7 (32 and 64 bit);
Windows Vista (32 and 64 bit);
Windows XP (32 and 64 bit).
ActiveXperts Serial Port Component is built on top of the Microsoft
serial device drivers. It uses these drivers. It neither replaces them,
nor does it install any additional serial device drivers.
It's easy to distribute the Serial Port Component to many PC's. With a
valid license it's just a matter of copying the AxSerial32.dll file, or
AxSerial64 on a 64bit Windows, and registering it using 'regsvr32'.
Regsvr32 is build-in in every supported Windows environment.
Code Snippets and Sample Applications
The following code snippets (VBScript) illustrate how to use Serial Port
Component.
For more samples, please check the Online Serial Port Component Samples.
Initialize a modem using a direct COM port
Set objComport = CreateObject( "AxSerial.Comport" )
new Comport instance
' Create a
objComport.Device
port directly
' Use a COM
= "COM1"
objComport.BaudRate
= 56000
baudrate (default value: 9600)
' Set
objComport.HardwareFlowControl = True
Hardware Flow Control
' Set
objComport.SoftwareFlowControl = False
' Set
Software Flow Control
objComport.Open
port
' Open the
Wscript.Echo "Open, result: " & objComport.LastError
If( objComport.LastError <> 0 ) Then
WScript.Quit
End If
objComport.WriteString( "at&f" )
command
' Write
str = objComport.ReadString
WScript.Echo "Received: [" & str & "]"
response
' Read the
objComport.Close
port
' Close the
Initialize a modem using a Windows Telephony Driver
Set objComport
= CreateObject( "AxSerial.Comport" )
new Comport instance
' Create a
objComport.Device = "Standard 9600 bps Modem"
Windows Telephony driver
' Use a
objComport.Open
port
' Open the
Wscript.Echo "Open, result: " & objComport.LastError
If( objComport.LastError <> 0 ) Then
WScript.Quit
End If
objComport.WriteString( "at&f" )
command
' Write
str = objComport.ReadString
WScript.Echo "Received: [" & str & "]"
response
' Read the
objComport.Close
port
' Close the
Send an SMS using a GSM Modem connected to the PC; Enable logging
Const RECIPIENT
= "+31624896641"
Const MESSAGE
= "Hello, world!"
Set objComport
= CreateObject( "AxSerial.Comport" )
new Comport instance
' Create a
objComport.Device = "Nokia 6680 SmartPhone"
Windows Telephony driver
' Use a
objComport.LogFile = "C:\SerialPortComponent.log"
logging
' Enable
objComport.Open
port
' Open the
Wscript.Echo "Open, result: " & objComport.LastError
If( objComport.LastError <> 0 ) Then
WScript.Quit
End If
WriteStr objComport, "at+cmgs=" & Chr( 34 ) & strNumber & Chr( 34 )
ReadStr objComport
WriteStr objComport, strMessage
strTermCmd = Chr( 26 )
message: [ctrl]z
' Terminate
WriteStr objComport, strTermCmd
objComport.Sleep 3000
time
' Allow some
ReadStr objComport
expected
' +CMGS:
ReadStr objComport
' OK expected
objComport.Close
port
' Close the
' ********************************************************************
' Sub Routines
' ********************************************************************
Sub WriteStr( obj, str )
obj.WriteString str
WScript.Echo "-> " & str
End Sub
Sub ReadStr( obj )
str = "notempty"
obj.Sleep 200
Do While str <> ""
str = obj.ReadString
If( str <> "" ) Then
WScript.Echo "<- " & str
End If
Loop
End Sub
' ********************************************************************
Licensing
Standard
Professional
Distribution
License
License
License
AX003-0010
AX003-0012
AX003-0020
X
X
X
Direct COM port support
Windows Telephony Device
X
(TAPI) support
Configurable baudrate
X
Hardware flow control
X
Software flow control
X
Support for multiple ports
(simultaneously)
High-speed data
transmission
Use component on any
computer in your
organization
Distribution of component -
X
X
X
X
X
X
For detailed licensing information, click here.
More information
To read more about ActiveXperts Serial Port Component, use one of the
following links:
How to use ActiveXperts Serial Port Component
Online samples
How to digitally sign an ActiveXperts software component
How to distribute an ActiveXperts software component
Release notes
Brochure
Manual
Download
Serial Communication Tutorial