Moxa Technologies 2140 URL Commands for DI/DO & Camera’s Actions Setting, Drive digital outputs

Page 69

Advanced Applications

URL Commands for DI/DO & Camera’s Actions Setting

Query status of digital inputs

/cgi-bin/getdi.cgi

Video Server will return status of four digital inputs in one line.

Drive digital outputs

/cgi-bin/setdo.cgi?do1=<state> <number> 1, 2 for DO1 and DO2

<state>: C, O denoting Normal Close or Normal Open respectively.

Moving motorized camera in PTZ direction

/cgi-bin/control.cgi?<param>=<value>&<param>=<value>……

Param

Value

Description

cam

1

Video 1

 

2

Video 2

 

3

Video 3

 

4

Video 4

move

up

Tilt up

 

down

Tilt down

 

left

Pan left

 

right

Pan right

 

home

Return to home position

zoom

wide

Zoom in

 

tele

Zoom out

focus

near

Focus near

 

far

Focus far

 

auto

Automatic focus

panspeed

-5 to 5

 

tiltspeed

-5 to 5

 

Recalling camera position

/cgi-bin/recall.cgi?recall=<position>

<n>:

video channel from 1 to 4

<position>:

the text string of a location that is preset in system configuration.

Refer to Camera preset configuration URL for preset function.

Transparent Remote Serial Driver

Video Server provides a highly customized control support for third-party serial interface devices (other than PTZ cameras). This means that in addition to setting up a custom camera with PAN/ TILT/ ZOOM/ FOCUS commands, users may utilize this mode and introduce a customized homepage to transmit arbitrary user-defined commands from user-side to Video Server. The third-party device connected to the serial port of Video Server will receive the same command sent by the originator. The user only needs to attach the command in ASCII format after the special URL. Video Server will parse the commands and translate into binary code to send out.

Send command to device attached to COM1

/cgi-bin/senddata.cgi?com=1&data=123456,ABCDEF&flush=yes&wait=1000&read=6 This hyperlink will inform Video Server to send out binary format commands to COM1 with “0x12, 0x34, 0x56” followed by “0xAB, 0xCD, 0xEF”. Each comma separates the commands by 200 milliseconds. “flush=yes” means the receive data buffer of COM port must be cleared before

VPort 2140 User’s Manual 5-7

Image 69
Contents First Edition, March VPort User’s ManualCopyright Notice TrademarksDisclaimer Before getting started Table of Contents Chapter Advanced Applications Page Introduction Overview Product Features Package ChecklistTypical Applications Ethernet ConnectionModem Dial-up Connection Front Panel Product DescriptionsMode Condition Network LEDs ACTIVE, LINK, and FDXName Description Work Status COM1 & COM Rear PanelGeneral I/O terminal block Pin description RegulationInput 12 VDC 11 10/100 Mbps EthernetGetting Started Before Getting Started Setting up an Ethernet EnvironmentBefore Getting Started Setting up an Ethernet EnvironmentCable Connection Front PanelRear Panel Running the IP Installer ProgramPowering on the VPort 2140 Video Server Using the IP Installer ProgramAssigning an IP Address to VPort 2140 Video Server Getting Started Using DOS Commands under Windows Accessing VPort 2140 Video Server for the First TimeNull Modem Setting up a Modem EnvironmentModem Powering on VPort 2140 Video ServerInstalling a new modem Configuring a Modem Under Windows 2000 EnvironmentVPort 2140 User’s Manual Modem Mode Click on Start Control Panel Modems Setting up a new connectionVPort 2140 User’s Manual Getting Started Modem Mode Null Modem ModeMounting VPort Panel MountingAccessing VPort 2140 Video Server for the First Time Accessing VPort 2140 Video Server AuthenticationOpening Your Browser Installing the Plug-in Application Functions Featured on the MainImage Mode and Text Mode Image ModeLogo and Host Name Video Quality SelectionImage Size Selection Custom Camera Commands System ConfigurationCamera View selection Relay Output ControlPage System Configuration Restore facotry default settings Reset system Using Setup Wizard System Configuration Via Web AccessSystem Using the Application WizardHost name Surveillance SystemRoot password SecurityDate and Time Reset network at next boot Snapshot modeNetwork Add userHttp GeneralSave the modification FTPColor, Default size, and Default quality Image settingVideo Show Time stamp in image and Text on imagePreset position setting of Motorized PTZ camera Camera SettingMotion Detection Camera typeCOM 1 & COM Default Video SourceModulation RS-232 RS-485 SpeedInterface mode Port SettingsPurpose Application Custom commandLevel Weekly scheduleShow alert in image Event operationTrigger Condition Trigger ActionSend Snapshot by Email or FTP Sequential ModeView Snapshot SaveDemo Homepage layoutLogo graph View log file Web page display modeLogo link Background graphView parameters Factory defaultVideo Server Initial Configuration file System Configuration Via FTPFrom 12 to Lime, 10-aqua, 11-fuchsia, 12-silver Or 1024 to String of max characters Or RS485 Or YES to activate external script Telnet Commands System Configuration Via TelnetSystem core debugging Monitor changed status of digital inputsReset network for new settings Skip installation at next bootRestore factory default settings Reset systemAdvanced Applications URL Commands for DI/DO & Camera’s Actions SettingVideo Embedded in Customers’ Homepage Capturing Up-to-date Still ImagesGetting snapshot via URL Getting snapshot via FTPDownload Event-triggered Snapshots File name Pre-alarm Upon alarm Post-alarmGetting triggered snapshots via URL Getting triggered snapshots via FTPCommand Script for DI/DO & Camera’s Actions Setting Customizing Graphics in HomepageObject File name Maximal size Parameter Explanations Command formatEvent OperatorPractical Examples Command line DescriptionDrive digital outputs URL Commands for DI/DO & Camera’s Actions SettingMoving motorized camera in PTZ direction Recalling camera positionRestore Factory Default Settings via URL URL Commands for System MaintenanceDownload System Log via FTP Restart System via URLUpgrading System Firmware Using Upgrade Wizard to Upgrade Firmware Easily Using FTP to Upgrade Firmware Page Troubleshooting Power On Self Test Post Frequently Asked QuestionsLED pattern after Post Failed function Troubleshooting Troubleshooting VPort 2140 User’s Manual URL URL Commands of Video ServerName Value Description Resource name Reference URLNetwork Configuration URL Video Configuration URL COM 1 Configuration URL Camera custom command configuration URL Custom camera configuration URL Motion detection configuration URL VPort 2140 User’s Manual A-9 Page Camera model Baud rate Data bits Stop bit Parity bit Settings of Supported PTZ CamerasPage Camera Control Cable Page Time Zone Table VPort 2140 User’s Manual Technical Specifications General I/O Service Information Following services are provided Moxa Internet ServicesMoxa Product VPort Serial Number Problem Report FormProduct Return Procedure

2140 specifications

Moxa Technologies has established a strong reputation in the realm of industrial networking and communications, and one of their standout products is the Moxa Technologies 2140. This device serves as a versatile and robust solution for various applications in industrial settings.

The Moxa 2140 is primarily recognized for its ability to seamlessly integrate serial devices into Ethernet networks. This capability is essential in modern industrial environments, where legacy equipment must often communicate with newer systems. The device functions as a serial device server, converting serial data into Ethernet packets, enabling efficient data transmission without compromising on speed or reliability.

One of the key features of the Moxa 2140 is its support for multiple serial communication protocols, including RS-232, RS-422, and RS-485. This wide compatibility ensures that users can connect a diverse range of devices, from older machinery to contemporary sensors, without needing extensive modifications. The Moxa 2140 can handle various communication speeds, allowing for flexibility in different industrial scenarios.

In addition to its protocol support, the Moxa 2140 boasts dual Ethernet ports, which facilitate network redundancy and enhanced reliability. This capability is crucial for industrial applications that demand continuous uptime, as it minimizes the risk of network failures. The device supports both static and dynamic IP address configurations, simplifying integration into existing networks.

The Moxa 2140 is equipped with advanced security features, including secure data transmission via SSH and HTTPS. This ensures that sensitive industrial data remains protected from unauthorized access, a critical consideration in today’s cybersecurity landscape. The device also includes built-in support for SNMP (Simple Network Management Protocol), enabling administrators to monitor network status and troubleshoot issues efficiently.

Another noteworthy characteristic of the Moxa 2140 is its rugged design, built to withstand harsh industrial environments. Its robust housing protects against dust, moisture, and temperature fluctuations, making it suitable for deployment in factories, outdoor settings, and other challenging conditions.

Overall, the Moxa Technologies 2140 is a powerful and flexible tool that meets the demands of modern industrial communications. Its combination of protocol support, dual Ethernet ports, security features, and durability make it a preferred choice for companies looking to enhance their communication infrastructure while ensuring versatility and reliability in their operations.