Content Browser 2 Serial Ports

From Serial Port Utility is a professional communication software for serial port. Serialport Utility makes it more efficient for development of hardware-software application. It will boost the speed to design, development, debug and test applications and hardware devices, such as relay boards, Electronic Total Station, Global Positioning.

ActiveXperts » ActiveComport » How to Use ActiveComport » Mozilla Firefox

ActiveComport is a software development kit (SDK) that enables the user to communicate to a device over a serial interface.

Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. It can even be another PC, connected via a NULL modem cable.

ActiveComport features the following:

Direct COM port support (like 'COM1'), TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem'), support for RS-232/RS422/RS485, up to 256 simultaneous ports, support for all types of Hayes compatible modems, support for serial cable, USB cable or Bluetooth connections, support for GSM/GPRS modems, support for Virtual COM ports (i.e. COM ports redirected through the network), hardware flow control (RTS/CTS, DTR/DSR), software flowcontrol (XON/XOFF), configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer.

ActiveComport can be used from the Mozilla Firefox browser.

This document describes how to setup Mozilla Firefox for use with the ActiveComport Toolkit.

Step 1: Download and install the ActiveComport Toolkit

Download the ActiveComport Toolkit from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.

Step 2: Install Mozilla Firefox

Download the Mozilla Firefox webbrowser from the Mozilla Website and start the installation. The installation guides you through the installation process.

Step 3: Install Mozilla Firefox ActiveX plugin

Because the Firefox browser does not support ActiveX by default, you have to download a plugin to run ActiveX controls.

It is also possible to compile your own Firefox browser with ActiveX support from the Mozilla Firefox sourcecode.

You have to download the plugin from within Firefox. The plugin can be found on the following page.

Select 'click here' from the downloads section, please download the plugin for the correct version. The plugin for Firefox 1.5 also works okay for 2.0.

If you download a plugin from this site the first time, the 'Allowed Sites - Add ons installation' dialog will appear to verify that this site is save for downloading add-ons.

(Click on the picture to enlarge)

Click on 'Allow' and 'Close' and click the download link again.

The 'Software Installation' dialog is displayed. Click 'Install Now' to start the installation:

(Click on the picture to enlarge)

When the installation process has finished, close the browser.

Step 4: Configure the ActiveX trusted controls

By default, all ActiveX controls are prohibited to run, except the Windows Media Player.

To add the ActiveComport ActiveX to the trusted controls, open the following file for editing:

X:Program FilesMozilla Firefoxdefaultsprefactivex.js (where X: is the drive you installed the browser).

Add the following lines to this file:

The activex.js file will now look like this:

Step 5: Start the browser and load the demo

You should now be able to start the ActiveComport Demo from the Firefox browser.

Start the browser, and type the following URL in the address field:

The following screen should now appear:

(Click on the picture to enlarge)

If the sample does not work correctly, select 'Tools' => 'Error Console' from the menu to see if there are any errors.

There are many working samples included with the product. You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/serial-port-component.

-->

The SERIAL_HANDFLOW structure specifies the handshake and flow control settings for a serial port.

Syntax

Web Browser Port

Members

ControlHandShake

A bitmask that specifies the control lines that the serial port uses for flow control. This member is set to zero or to the bitwise-OR or one or more of the following flags.

ValueDescription
SERIAL_DTR_CONTROLDTR (data terminal ready) is enabled.
SERIAL_DTR_HANDSHAKEDTR is used for input flow control.
SERIAL_CTS_HANDSHAKECTS (clear to send) is used for output flow control.
SERIAL_DSR_HANDSHAKEDSR (data set ready) is used for output flow control.
SERIAL_DCD_HANDSHAKEDCD (data carrier detect) is used for output flow control.
SERIAL_DSR_SENSITIVITYIgnore characters arriving at the serial port when the DSR line is inactive.
SERIAL_ERROR_ABORTAbort a transmit or receive operation if an error occurs.

SerCx2 supports the SERIAL_CTS_HANDSHAKE flag, and may or may not support the other six flags defined for this member, depending on the serial controller driver and the capabilities of the serial controller hardware. SerCx supports only the first four flags in the preceding table. Serial.sys supports all of the flags in the preceding table.

Content Browser 2 Tutorial

FlowReplace

A bitmask that specifies flow control behavior. This member is set to zero or to the bitwise-OR or one or more of the following flags.

ValueDescription
SERIAL_AUTO_TRANSMITUse XON/XOFF for flow control of transmitted data.
SERIAL_AUTO_RECEIVEUse XON/XOFF for flow control of received data.
SERIAL_ERROR_CHARInsert the error character into the received data when an error occurs. For more information, see the description of the ErrorChar member in SERIAL_CHARS.
SERIAL_NULL_STRIPPINGAutomatically strip null characters from received data.
SERIAL_BREAK_CHARInsert the break character into the received data when a break occurs. For more information, see the description of the BreakChar member in SERIAL_CHARS.
SERIAL_RTS_CONTROLRTS (request to send) is enabled.
SERIAL_RTS_HANDSHAKERTS is used for output flow control.
SERIAL_XOFF_CONTINUEContinue to transmit after sending XOFF to the device on the other end of the line.

Content Browser 2 Crack

SerCx2 supports the SERIAL_RTS_CONTROL and SERIAL_RTS_HANDSHAKE flags, but typically does not support the other six flags defined for this member, depending on the serial controller driver and the capabilities of the serial controller hardware. SerCx supports only the SERIAL_RTS_CONTROL and SERIAL_RTS_HANDSHAKE flags. Serial.sys supports all of the flags in the preceding table.

XonLimit

XON limit. When the number of characters in the internal receive buffer falls below the XON limit, the serial controller driver uses the flow control signals to tell the sender to resume sending characters.

Content Browser 2 Serial Ports

XoffLimit

XOFF limit. When the number of characters in the internal receive buffer reaches the XOFF limit, the serial controller driver uses the flow control signals to tell the sender to stop sending characters.

Content Browser Download

Remarks

This structure is used by the IOCTL_SERIAL_GET_HANDFLOW and IOCTL_SERIAL_SET_HANDFLOW requests.

Content Browser 2 Serial Ports

After sending an XOFF (transmit off) character, the serial port stops transmitting immediately, without sending any more characters. This behavior supports serial ports that interpret any character that follows an XOFF as an implied XON (transmit on).

SerCx2 and SerCx support only subsets of the flags that are defined for the ControlHandShake and FlowControl members. An IOCTL_SERIAL_SET_HANDFLOW request that specifies an unsupported flag is completed with STATUS_NOT_IMPLEMENTED.

Requirements

Headerntddser.h

Content Browser 2 Serial Portsmouth

See Also