Serial Port Component
Serial Port Component
Startup screen
MS Visual
Studio
.NET web
application
.NET GUI
application
Console
application
Advanced logging.
VBScript. More
HTML. More
PHP. More
Powershell More
System Requirements
ActiveXperts Serial Port Component is available as a 32-bit component
and as a 64-bit component (both part of the product):
' Create a
objComport.Device
port directly
= "COM1"
objComport.BaudRate
= 56000
baudrate (default value: 9600)
' Set
objComport.HardwareFlowControl = True
Hardware Flow Control
' Set
objComport.SoftwareFlowControl = False
' Set
objComport.WriteString( "at&f" )
command
' Write
str = objComport.ReadString
WScript.Echo "Received: [" & str & "]"
response
objComport.Close
port
Set objComport
= CreateObject( "AxSerial.Comport" )
new Comport instance
' Create a
' Use a
objComport.Open
port
End If
objComport.WriteString( "at&f" )
command
' Write
str = objComport.ReadString
WScript.Echo "Received: [" & str & "]"
response
objComport.Close
port
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
' Use a
objComport.LogFile = "C:\SerialPortComponent.log"
logging
' Enable
objComport.Open
port
WScript.Quit
End If
' Terminate
ReadStr objComport
expected
' +CMGS:
ReadStr objComport
' OK expected
objComport.Close
port
' ********************************************************************
' Sub Routines
' ********************************************************************
Sub WriteStr( obj, str )
obj.WriteString str
WScript.Echo "-> " & str
End Sub
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
X
X
X
X
X
X
More information
To read more about ActiveXperts Serial Port Component, use one of the
following links:
Online samples
Release notes
Brochure
Manual
Download