DataBridge Serial Multiplexer (SDR-MUX) User's Manual

Similar documents
TABLE OF CONTENTS. Communication Functions

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

I/O Interface DNA300

Table 8 shows the pin configuration and function of a standard computer-to-printer parallel cable. Table 8 Parallel Cable Pin Configuration

USER S MANUAL. PH232Ex1. #1 RS-232 Serial Port to Ethernet, Terminal Server/Client. Doc No: PH232Ex1-UM-001 IPEX. (IP Electronix)

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD

The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual

Multi-Port Controller

ACUMEN INSTRUMENTS CORPORATION

ASCII Printer Driver Programmable Serial Interface Card Series 2

Addmaster Corporation

RS 232 Interface. RS 232 is the Serial interface on the PC. Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3

ICD105A 1008 page 1/ r001 ICD105A. Industrial RS-232 to RS-422/485 Converter

Series 370 Stabil-Ion Gauge Controller with RS-485 Interface Option

Conitel ASYNC Adapter

DCC-8 DIGITAL TO EIGHT CURRENT LOOP CONVERTER OPERATING MANUAL

EtherSeries Modbus Gateway EMB-2 User s Guide

DN120 DeviceNet Gateway User Manual

Figure 1. LCD & Keypad - RS232 Terminal

MS Protocol Converter. User Manual. Firmware version 2.0 ISI. Instrumental Solutions, Inc.

MSOC Communication Commonality with DPU/TPU/GPU 2000R Protective Relays

NL6000 Wireless Modem NL6000 User Manual Rev 1.1

User Guide. Date Apr BlueEva+C11/G2. Stollmann. E + V GmbH. User Guide

DNA100 DIGITAL NETWORK ADAPTOR

SCADA Point-to-Point Multiplexer

ADDMASTER. Addmaster Corporation. IJ-3080 Journal/Validation Printer. Specification. IJ-3080 Specification

ZM56 High-Speed Industrial Modem. Command Summary. 1 ZM56 High-Speed Industrial Modem

Vorne Industries. 2000S Series Serial Input Alphanumeric Display User's Manual

Installation and Programming Manual. Niobrara Research & Development Corporation P.O. Box 3418 Joplin, MO USA

WiFi to RS-232 adapter user manual

Sender Receiver Sender

Automationdirect.com. D i r e c t L o g i c M O D B U S S L A V E F 4 S L V - M B

Ethernet Serial Server

ZM24x Quick-Connect Industrial Modem. User s Manual

STEPware-100 Operations Manual

CUSTOM MANUFACTURED IN U.S.A. BY RADIO SHACK, A DIVISION OF TANDY CORPORATION CAT. NO

CPM Series. Control Port Manager. User's Guide. Models CPM-1600 and CPM-800

SCADA Multidrop Multiplexer

Product Specification for CANbus to DeviceNet Transducer Gateway

CF2SCSI Disk Bridge User Guide

Message Display Operator Panel. UCT-33/36 Industrial Terminal. Manual 32.00

User Manual A08. User Manual

DEBUGGING SERIAL COMMUNICATIONS WITH OTHER DEVICES

Creating a USB to Serial Bridge Solution using Cypress Low and Full-speed M8 USB Devices

EQ-DCM User Manual Revision 1.02 Sep 10, 2013

CONFIGURATION GUIDE A-B REMOTE I/O LINK ADAPTOR FOR DL-KFR PC CARDS

Miniature Asynchronous 4-Wire High Speed Modems

DPS INC ASCII MUX. Operation Guide. Table Of Contents. Overview. T/kda

LM300 Manager User Manual. Document Version: 1.1 LM300 Firmware Version: Bluetooth Firmware Version:

USB to RS-232/RS422/485. US-101-I USB To Serial Operation Manual

Enviro Series. Printer Addendum. Printers available from Fairbanks Scales A Tape Printer. Enviro DB25...

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

DGH A3000 Configuration Guide For use with DGH Modules

ISDA/ISDA4 Protocol Driver Manual. Table of Contents

SCB-C08 USB to RS232/422/485 Converter

The Analyst. RS422/RS232 Tester. (Standard Model) User Manual

IM3523 IM3533 IM IM3536 LCR METER IM3570 IM7580 IM3590 CHEMICAL IMPEDANCE ANALYZER IMPEDANCE ANALYZER. Communication Instruction Manual

I.L A 3. DESCRIPTION 1. INTRODUCTION Power Requirements

EtherSeries. EtherSeries CR-2. CR-2-Opto. User s Guide. Revised October 7, 2013 Firmware Version 1.X

Enron Modbus I/O Driver (Series 2) Programmable Serial Interface Card

USBG-8COM-PRO 8-Port USB to RS-232, 422, 485 Auto Setup Adapter Manual. Features & Specifications. Specifications

RS232-to-Wiegand Format Converter (RWFC) Quick-Reference Installation Guide Revision 1.4 1/25/18

JetCon 1100 / User s Manual. USB to Serial Converter series. Version 1.0

F-3100 FLOW METER NETWORK INTERFACE Installation and Operation Guide

Active RFID Reader User Manual

CDN36X Series DeviceNet Gateway User Manual

Product Manual. USB to Optical Adapter Industrial Isolated RS- 232/422/485. Coolgear, Inc. Version 2.1 December 2018 Model Number: USB-COMi-Si-M

RS-422 Code-Operated Switches

EX & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card

485DRCI. Industrial RS-232 to RS-422/485 Converter B&B ELECTRONICS PRODUCT INFORMATION. Specifications Serial Technology

Serial to RS422/485 Converter SER 485 PRO( SI) User Manual

System-10 BTU Meter BACnet Network Interface Installation Guide

RS-232/422/485 to Copper or Fiber. Ethernet Converter. User s Manual

MODEL DSU Kbps Rack Mount CSU/DSU OPERATOR S MANUAL. 280 I-80 West Exit 1 PO Box 1330 Verdi NV 89439

RM024 DVK USER GUIDE VERSION 1.2

AB300-Series Automated Filter Wheels

USER MANUAL. MODEL 2011 High Speed Asynchronous to Synchronous Converter

TRP-C08. USB to RS232/422/485 Isolated Converter. User s Manual. Printed Sep.2014 Rev 1.4

Parallel to Serial and Serial to Parallel Converter CE Model 232SPS2 Documentation Number 232SPS2-3903m

BOARD LEVEL PRODUCTS OEM GPIB<->RS-232 INTERFACE BOARD GPIB

The modems are made in industrial 108mm wide aluminium housing for DIN rail mounting. UCM RS232 interface

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

8 Port USB to RS- 232/422/485 Octal Adapter. Product Manual. Coolgear, Inc. Version 1.1 April 2018 Model Number: USB-8COMi-RM.

YSI 2700 SELECT Programmable Serial Interface Card Series 2

PACSystems* RX3i IC695CMM002 and IC695CMM004

EasySYNC Ltd. USB to Serial Converters Manual

PCard2SCSI Flash-Tape User Guide

PCIe Card Selection Guide. PCIe-CAN Card. PCIe-COM Card. Taiwan Pulse Motion Co.,Ltd. Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T

STEP X - Name of Step QUICK START GUIDE SP385A-R3, SP390A-R3 USB TO RS CONVERTER 24/7 TECHNICAL SUPPORT AT OR VISIT BLACKBOX.

IML 560 USER GUIDE. Low Power 56Kbps Industrial modem. Version 1.2. December 6, AYANTRA Inc.

Vorne Industries. Model 77/232 Serial Input Numeric 3" Display User's Manual

Serial Interface Module

FEC-240G. Rev. Date

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)

ICP PANEL-TEC PEX3000 II

SPL Hub TABLE OF CONTENTS SECTION 1 - DESCRIPTION...2 SECTION 2 - SPECIFICATIONS...3 SECTION 3 - INSTALLATION...4

Maximum Value for OEMs SM. NX70 Serial Communications Unit (SCU) User Manual

BV4615. Dual Interface Zero Keypad. Product specification. Dec 2009 V0.a. ByVac Page 1 of 11

Command-Line Interfaces

COMTool User Guide Version /02/2013

Transcription:

DataBridge Serial Multiplexer (SDR-MUX) User's Manual Revision 1.0 1 May 2000

1 Getting Started 1.1 Getting Started To get started you will need the DataBridge SDR, SDR-ACDC power supply, serial cables, the Omega D1132 modules, the RS-422 meteorological station, a computer with a free serial port, and terminal emulation software. Details of the following procedure can found in the DataBridge SDR User s Manual and in Sections 1.2-1.4. 1. Connect the serial cable to a terminal or computer running terminal software, connect the power and serial cables to the SDR, and verify that you see the SDR s main menu. See Section 1.4 of the DataBridge SDR User s Manual if you have any trouble. 2. Connect the meteorological station and Omega D1132 modules to the RS-422/485 ports. Be sure to maintain the proper polarity of the Data+ and Data- signals. Figure 1.1.1 shows how these devices should be connected to the SDR rear panel. Power supplies and the RS-232 serial cable have been omitted for clarity. 3. To verify data is being received, enter serial passthrough mode from the SDR main menu to talk to the SDR-MUX. From the SDR-MUX main menu, type T to test the script interactively, and begin monitoring the data flow. At this point, the incoming data should be displayed on the screen. The data LED on the SDR s front panel should also flash when data is being received. If the data looks correct, everything is connected 3

Getting Started SDR-MUX User s Manual rev 1.0 properly for recording data. To exit this mode type Q to stop the script and return to the SDR-MUX main menu. Typing the serial passthrough escape sequence, +++, will return you to the SDR main menu. 4. To record data (i.e. enter record mode), type R from the SDR main menu or press the record button on the SDR s front panel. The SDR is preconfigured to send an R to the SDR-MUX when entering record mode, which will automatically start the SDR-MUX script. When recording has stopped (i.e. when entering stop mode), the SDR will send a Q, which will halt script execution. SCSI Port SDR Config. Port Port 2 SDR-MUX Port 1 (RS-422/485) Data- Data+ Power (9-36DCV) 1 2 3 4 5 6 7 8 9 Port 3 (RS-422/485) 1 2 3 4 shielded twisted pair 120? terminating resistor Data+ Data- VSS GND Met. Station RS-422 +IN -IN DO1/HI DI0/EV DO0/LO DEFAULT* (Y)DATA (G)DATA* (R)+VS (B)GND D1132 VOLTAGE +/-5V RS-485 +IN -IN DO1/HI DI0/EV DO0/LO DEFAULT* (Y)DATA (G)DATA* (R)+VS (B)GND D1132 VOLTAGE +/-5V RS-485 120? terminating resistor Figure 1.1.1. Connection of RS-422 Meteorological Station and two multi-drop RS-485 OmegaBus modules to DataBridge SDR. 4

SDR-MUX User s Manual rev 1.0 Getting Started 1.2 Description The DataBridge SDR Serial Multiplexer (SDR-MUX) is an add-on board for the base DataBridge SDR system that is designed to multiplex two input serial ports onto the SDR s single data port. The SDR-MUX is housed in the SDR enclosure and receives its power from the SDR circuit board. The SDR-MUX is equipped with four serial ports: one RS-232 port (Port 0) that is connected internally to the standard data port on the SDR circuit board, one auxiliary RS-232 port (Port 1) that is routed through the rear panel serial port connector, and two isolated half-duplex RS-422/485 ports (Ports 2 and 3) for incoming data. The auxiliary port can be used by your script for monitoring and data routing functions [see Section 2]. Port 0: baud rate 0 Port 0: baud rate 1 Port 0: baud rate 2 Port 0: RTS/CTS handshake enable Port 2 RS-422/485 (half duplex) Port 1 RS-232 (DTE) Port 0 RS-232 (DCE) Port 3 RS-422/485 (half duplex) Figure 1.2.1. The serial multiplexer (SER-MUX) circuit board. The SDR-MUX s behavior is controlled by a script that is loaded and executed by the SDR-MUX. This allows the SDR-MUX to adapt to a number of data recording configurations. For most applications, the SDR- MUX is shipped pre-configured. See the following sections for details on the configuration and editing of scripts, and for details about serial port configuration. 5

Getting Started SDR-MUX User s Manual rev 1.0 1.3 Operation The SDR-MUX menus are accessed by entering serial passthrough mode on the SDR. Type 8 from the SDR s main menu to enter serial passthrough mode (Figure 1.3.1). You can return to the SDR main menu at any time by typing +++ or by pressing the Stop button on the front panel of the SDR. Acumen Instruments Corporation 12/14/1999 02:04:54 DataBridge SDR firmware rev. 5.2 Current filename is: BRIDGE.DAT 1 Set time 2 Set date 3 Toggle ANSI mode (ANSI is ON) 4 Toggle messages (messages are ON) 5 Edit messages... 6 SCSI drive functions... 7 File system functions... 8 Enter serial passthrough mode 9 Set baud rate for attached device P Enter PLAY mode R Enter RECORD mode Enter choice (1,2,3,4,5,6,7,8,9,P,R) 8 Entering passthrough mode. Type +++ or press the STOP button to exit. Figure 1.3.1. Entering serial passthrough mode from the DataBridge SDR main menu. To display the SDR-MUX main menu (Figure 1.3.2) you need to press the <spacebar>. The SDR-MUX main menu allows you to configure the serial ports, view and edit the current script, test the script interactively, and turn ANSI graphics mode on and off. Acumen Instruments Corporation DataBridge SDR serial multiplexer rev. 1.0 1 Configure port: Aux Port 2 Configure port: MetStation Port 3 Configure port: OmegaBus Port S View/edit script... T Test script interactively A Change ANSI graphics mode (ANSI is on) Enter choice (1,2,3,S,T,A) Figure 1.3.2. SDR-MUX main menu via the SDR s serial passthrough mode. 6

SDR-MUX User s Manual rev 1.0 Getting Started 1.3.1 Configuring the serial ports Serial Port 0 is configured using the DIP switches located on the SDR-MUX circuit board. See Figure 1.3.3 for settings. Label baud rate 0 baud rate 1 baud rate 2 RTS/CTS handshake enable Switch Designator SW1 SW2 SW3 SW4 RTS/CTS hardware handshaking enable - - - ON 230400 bps OFF OFF OFF - 115200 bps ON OFF OFF - 57600 bps OFF ON OFF - 38400 bps ON ON OFF - 19200 bps OFF OFF ON - 9600 bps ON OFF ON - 4800 bps OFF ON ON - 2400 bps ON ON ON - Figure 1.3.3. Serial port 0 baud rate settings. To configure the auxiliary RS-232 DTE port, named Aux Port in this example, type 1. The SDR-MUX presents you with a menu that allows you to set the port speed. On this port, the data format is always 8 data bits, no parity, and one stop bit (8N1). To return to the SDR-MUX main menu type <ESC> or <ENTER>. Acumen Instruments Corporation DataBridge SDR serial multiplexer rev. 1.0 _ Aux Port 1 Confi 2 Confi Port Speed (bps) 3 Confi A: 230400 E: 19200 B: 115200 F: 9600 S View/ C: 57600 G: 4800 T Test D: 38400 H: 2400 A Chang Current settings: 115200 8N1 Enter cho Figure 1.3.4. Changing the port speed for the auxiliary RS-232 port. The port labeled MetStation Port can be configured by typing 2 from the SDR-MUX main menu and the OmegaBus Port can be configured by typing 3 from the SDR-MUX main menu. Both of these menu items allow you to 7

Getting Started SDR-MUX User s Manual rev 1.0 configure port speed, number of data bits, type of parity, and number of stop bits. Configure these ports to communicate with the equipment will be recording data from. See your equipment s documentation to determine a compatible port speed and data format. Typing <ESC> or <ENTER> returns you to the SDR-MUX main menu. Acumen Instruments Corporation DataBridge SDR serial multiplexer rev. 1.0 _ MetStation Port 1 Confi 2 Confi Port Speed (bps) Parity 3 Confi A: 230400 J: 7200 0: None B: 115200 K: 4800 1: Even S View/ C: 76800 L: 3600 2: Odd T Test D: 57600 M: 2400 3: Mark A Chang E: 38400 N: 1800 4: Space F: 28800 O: 1200 Enter cho G: 19200 P: 900 Stop Bits H: 14400 Q: 600 5: 1 I: 9600 R: 300 6: 2 Data Bits 7: 7 8: 8 Current settings: 9600 8N1 Figure 1.3.5. Changing the port settings for RS-422/485 port #1. 1.3.2 Viewing and editing the current script To view and/or edit the script, type S from the SDR-MUX main menu. Figure 1.3.6 shows the Edit Script menu. When editing a script, the script name appears at the top of the screen followed by a text presentation of the script. If a script is too long to display on one screen, typing A and Z will scroll the screen up and down, respectively. Script name: Army_LS.mux If data from MetStation Port is "\n" then increment line counter and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and pause for 5 milliseconds and send MetStation Port's buffer contents via DataBridge Port and set OmegaBus_Addr to 1 and send "#0RD\r" via OmegaBus Port and pause for 50 milliseconds and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If OmegaBus_Addr=1 then set OmegaBus_Addr to 0 and send "#1RD\r" via OmegaBus Port and pause for 50 milliseconds (script continued below... use Z to view additional lines) U Upload a script A Scroll up Z Scroll down P Change port names V Change variable names Q Return to main menu Figure 1.3.6. The View/edit script menu. 8

SDR-MUX User s Manual rev 1.0 Getting Started 1.3.3 Changing port and variable names By typing P from the Edit Script menu, you can modify port names. Type Q to return to the Edit Script menu. Likewise, typing V from the edit script menu allows you to modify any variable names used by the script. Once again, Q returns you to the edit script menu. Script name: Army_LS.mux If data _ Port Names then i and s Port 0 is called: DataBridge Port and s Port 1 is called: Aux Port and s Port 2 is called: MetStation Port and p Port 3 is called: OmegaBus Port and s and s Enter port number to modify, Q to quit and s and p and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If OmegaBus_Addr=1 then set OmegaBus_Addr to 0 and send "#1RD\r" via OmegaBus Port and pause for 50 milliseconds (script continued below... use Z to view additional lines) Port U Upload a script A Scroll up Z Scroll down P Change port names V Change variable names Q Return to main menu Figure 1.3.7. Modifying port names. Script name: Army_LS.mux If data _ Variable Names then i and s Variable 0 is called: OmegaBus_Addr and s Variable 1 is called: time counter and s Variable 2 is called: line counter and p Variable 3 is called: k and s and s Enter variable to modify, Q to quit and s and p and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If OmegaBus_Addr=1 then set OmegaBus_Addr to 0 and send "#1RD\r" via OmegaBus Port and pause for 50 milliseconds (script continued below... use Z to view additional lines) Port U Upload a script A Scroll up Z Scroll down P Change port names V Change variable names Q Return to main menu Figure 1.3.8. Modifying variable names. 1.3.4 Uploading a new script To upload a new script, type U from the edit script menu. Since this operation will overwrite the current script, the SDR-MUX prompts for confirmation of the upload (Figure 1.3.9). If you are sure you want to upload a new script, type Y and ASCII upload your new script using your terminal emulation software. If you cancel the upload from your terminal software you may need to power cycle the SDR-MUX so you can upload a script again. You can escape before you begin the upload by typing any 9

Getting Started SDR-MUX User s Manual rev 1.0 character other than Y when prompted. Your terminal software should have the line pacing or line delay set to 100 milliseconds or longer. Script name: Army_LS.mux If data from MetStation Port is "\n" then increment line counter and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and pause for 5 milliseconds and send MetStation Port's buffer contents via DataBridge Port and set OmegaBus_Addr to 1 and send "#0RD\r" via OmegaBus Port and pause for 50 milliseconds and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If OmegaBus_Addr=1 then set OmegaBus_Addr to 0 and send "#1RD\r" via OmegaBus Port and pause for 50 milliseconds (script continued below... use Z to view additional lines) Ready for ASCII upload. If uploading is cancelled, reset the SDR-MUX. Press Y to continue or any other key to cancel upload... Figure 1.3.9. Beginning an ASCII upload of a new script. 1.3.5 Testing the current script Typing T from the SDR-MUX main menu allows you to run the current script and display the SDR-MUX output in real time. When entering this mode the SDR-MUX will look for a stop action and, if it finds one, will remind you what it is so you can stop the script and exit interactive testing mode. This is important because a script will run indefinitely without a stop action (i.e. the SDR-MUX would have to be power cycled to stop the script). If, by some chance, a script was uploaded that did not have a stop action, the SDR-MUX will warn you and not run the script. Press any key to start the script. The current script's primary stop instruction is: If data from DataBridge Port is "Q" then Stop script and return to menu mode Press any key to run the script interactively... Figure 1.3.10. Testing a script interactively. Notice that the SDR- MUX reminds you what the primary stop instruction is. 10

2 Scripting Reference 2.1 Introduction Scripting allows you to modify the SDR-MUX behavior to suit a specific application. This section will attempt to give the reader some understanding of how to write, compile, and upload scripts for the SDR-MUX. Currently there are no software tools to assist in writing and compiling scripts, as scripts were originally intended for in-house use only. We have decided to allow access to scripting as a service to our customers. 11

Scripting Reference SDR-MUX User s Manual rev 1.0 2.2 Scripting Examples Figure 2.2.1 shows the full Army_LS.mux script as interpreted and displayed by the SDR-MUX: Script name: Army_LS.mux If data from MetStation Port is "\n" then increment line counter and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and pause for 5 milliseconds and send MetStation Port's buffer contents via DataBridge Port and set OmegaBus_Addr to 1 and send "#0RD\r" via OmegaBus Port and pause for 50 milliseconds and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If OmegaBus_Addr=1 then set OmegaBus_Addr to 0 and send "#1RD\r" via OmegaBus Port and pause for 50 milliseconds and send "L" via DataBridge Port and send line counter via DataBridge Port and send " " via DataBridge Port and send OmegaBus Port's buffer contents via DataBridge Port and send "\n" via DataBridge Port If data from DataBridge Port is "Q" then Stop script and return to menu mode If data from DataBridge Port is "\0x1B" then Stop script and return to menu mode If data from DataBridge Port is "\0x03" then Stop script and return to menu mode The name of the current script. The first condition and its associated actions. The second condition and its associated actions. The primary stop condition. Other stop conditions. U Upload a script A Scroll up Z Scroll down P Change port names V Change variable names Q Return to main menu Figure 2.2.1. SDR-MUX display of the entire Army_LS.mux script. 12

SDR-MUX User s Manual rev 1.0 Scripting Reference Each label and opcode+operand occupy a 16 byte record which is represented by the decimal value of each byte delimited by commas. Any unused bytes are set to zero. Characters are represented by the decimal value of their ASCII code. Comments can be added to the right of the script data. The SDR-MUX parses all numbers, so there can be no numbers in the comments. If a number must be represented in a comment, use the word, not the numeral (e.g. 2 must be "two"). 65, 114,109,121,95, 76, 83, 46, 109,117,120,0, 0, 0, 0, 0 // Army_LS.mux 68, 97, 116,97, 66, 114,105,100,103,101,32, 80, 111,114,116,0 // DataBridge Port 65, 117,120,32, 80, 111,114,116,0, 0, 0, 0, 0, 0, 0, 0 // Aux Port 77, 101,116,83, 116,97, 116,105,111,110,32, 80, 111,114,116,0 // MetStation Port 79, 109,101,103,97, 66, 117,115,32, 80, 111,114,116,0, 0, 0 // OmegaBus Port 79, 109,101,103,97, 66, 117,115,95, 65, 100,100,114,0, 0, 0 // OmegaBus_Addr 116,105,109,101,32, 99, 111,117,110,116,101,114,0, 0, 0, 0 // time counter 108,105,110,101,32, 99, 111,117,110,116,101,114,0, 0, 0, 0 // line counter 107,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // k 130,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // if data from port two is <LF> 66, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // add one to variable two 32, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send "L" via port zero 80, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send variable two via port zero 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send " " via port zero 96, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // delay five ms 16, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send port two's buffer via port zero 56, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // set variable zero to one (sixteen-bit argument) 35, 35, 48, 82, 68, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send #(one)rd<cr> via port three 96, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // delay fifty ms 32, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send "L" via port zero 80, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send variable two via port zero 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send " " via port zero 16, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send port three's buffer via port zero 32, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send <LF> via port zero 168,1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // if variable zero equals one (sixteen-bit compare) 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // set variable zero to zero (sixteen-bit set) 35, 35, 49, 82, 68, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send #(one)rd<cr> via port three 96, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // delay fifty ms 32, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send "L" via port zero 80, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send variable two via port zero 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send " " via port zero 16, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send port three's buffer via port zero 32, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // send <LF> via port zero 128,81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // if data from port zero is "Q" 104,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // stop the script 128,27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // if data from port zero is ESC 104,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // stop the script 128,3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // if data from port zero is CTRL-C 104,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // stop the script 0, The name of the current script. Must always be the first 16 bytes of the script. The next four 16 byte records are the names of Ports 0-3. The next four 16 byte records are the names of Variables 0-3. The first condition: opcode 130, operand 10 (<LF>). Actions that are executed if the associated condition is true (i.e. if a linefeed is received on Port 2) The second condition: opcode 168, operand 1. Actions that are executed if the associated condition is true (i.e. if variable0 = 1). Stop conditions. If any are true, the script will be halted. There should always be a stop condition. Figure 2.2.2. A description of the.mux file format using the Army_LS.mux script as an example. 13

Scripting Reference SDR-MUX User s Manual rev 1.0 2.3 Condition s if data from port 0 is string (where string is a null-terminated ASCII string no longer than 14-bytes) 128 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 if data from port 1 is string (where string is a null-terminated ASCII string no longer than 14-bytes) 129 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 if data from port 2 is string (where string is a null-terminated ASCII string no longer than 14-bytes) 130 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 if data from port 3 is string (where string is a null-terminated ASCII string no longer than 14-bytes) 131 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 if port 0 s buffer contains more than n bytes 144 n0 n1 - - - - - - - - - - - - - if port 1 s buffer contains more than n bytes 145 n0 n1 - - - - - - - - - - - - - if port 2 s buffer contains more than n bytes 146 n0 n1 - - - - - - - - - - - - - 14

SDR-MUX User s Manual rev 1.0 Scripting Reference if port 3 s buffer contains more than n bytes 147 n0 n1 - - - - - - - - - - - - - if variable0 = n 160 n0 n1 n2 n3 - - - - - - - - - - - if variable1 = n 161 n0 n1 n2 n3 - - - - - - - - - - - if variable2 = n 162 n0 n1 n2 n3 - - - - - - - - - - - if variable3 = n 163 n0 n1 n2 n3 - - - - - - - - - - - if variable0 = n 168 n0 n1 - - - - - - - - - - - - - if variable1 = n 169 n0 n1 - - - - - - - - - - - - - if variable2 = n 170 n0 n1 - - - - - - - - - - - - - 15

Scripting Reference SDR-MUX User s Manual rev 1.0 if variable3 = n 171 n0 n1 - - - - - - - - - - - - - if hardware handshake line on port 0 is asserted/deasserted * val - - - - - - - - - - - - - - *proposed opcode, not implemented deasserted asserted RI DCD DSR CTS RI DCD DSR CTS where val = b7 b6 b5 b4 b3 b2 b1 b0 if hardware handshake line on port 1 is asserted/deasserted * val - - - - - - - - - - - - - - *proposed opcode, not implemented deasserted asserted RI DCD DSR CTS RI DCD DSR CTS where val = b7 b6 b5 b4 b3 b2 b1 b0 if hardware handshake line on port 2 is asserted/deasserted * val - - - - - - - - - - - - - - *proposed opcode, not implemented deasserted asserted RI DCD DSR CTS RI DCD DSR CTS where val = b7 b6 b5 b4 b3 b2 b1 b0 if hardware handshake line on port 3 is asserted/deasserted * val - - - - - - - - - - - - - - *proposed opcode, not implemented deasserted asserted RI DCD DSR CTS RI DCD DSR CTS where val = b7 b6 b5 b4 b3 b2 b1 b0 16

SDR-MUX User s Manual rev 1.0 Scripting Reference 2.4 Action s send port n buffer contents via port 0 (where n the port number 0-3) 16 n - - - - - - - - - - - - - - send port n buffer contents via port 1 (where n the port number 0-3) 17 n - - - - - - - - - - - - - - send port n buffer contents via port 2 (where n the port number 0-3) 18 n - - - - - - - - - - - - - - send port n buffer contents via port 3 (where n the port number 0-3) 19 n - - - - - - - - - - - - - - send string via port 0 (where string is a null-terminated ASCII string no longer than 14-bytes) 32 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 send string via port 1 (where string is a null-terminated ASCII string no longer than 14-bytes) 33 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 send string via port 2 (where string is a null-terminated ASCII string no longer than 14-bytes) 34 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 send string via port 3 (where string is a null-terminated ASCII string no longer than 14-bytes) 35 ch1 ch2 ch3 ch4 ch5 ch6 ch7 ch8 ch9 ch10 ch11 ch12 ch13 ch14 0 17

Scripting Reference SDR-MUX User s Manual rev 1.0 set variable0 = n 48 n0 n1 n2 n3 - - - - - - - - - - - set variable1 = n 49 n0 n1 n2 n3 - - - - - - - - - - - set variable2 = n 50 n0 n1 n2 n3 - - - - - - - - - - - set variable3 = n 51 n0 n1 n2 n3 - - - - - - - - - - - set variable0 = n 56 n0 n1 - - - - - - - - - - - - - set variable1 = n 57 n0 n1 - - - - - - - - - - - - - set variable2 = n 58 n0 n1 - - - - - - - - - - - - - set variable3 = n 59 n0 n1 - - - - - - - - - - - - - 18

SDR-MUX User s Manual rev 1.0 Scripting Reference add n to variable0 64 n0 n1 n3 n4 - - - - - - - - - - - add n to variable1 65 n0 n1 n3 n4 - - - - - - - - - - - add n to variable2 66 n0 n1 n3 n4 - - - - - - - - - - - add n to variable3 67 n0 n1 n3 n4 - - - - - - - - - - - add n to variable0 * n0 n1 - - - - - - - - - - - - - *proposed opcode, not implemented add n to variable1 * n0 n1 - - - - - - - - - - - - - *proposed opcode, not implemented add n to variable2 * n0 n1 - - - - - - - - - - - - - *proposed opcode, not implemented 19

Scripting Reference SDR-MUX User s Manual rev 1.0 add n to variable3 * n0 n1 - - - - - - - - - - - - - *proposed opcode, not implemented send variable n via port 0 (where n is the variable index 0-3) 80 n - - - - - - - - - - - - - - send variable n via port 1 (where n is the variable index 0-3) 81 n - - - - - - - - - - - - - - send variablen via port 2 (where n is the variable index 0-3) 82 n - - - - - - - - - - - - - - send variablen via port 3 (where n is the variable index 0-3) 83 n - - - - - - - - - - - - - - delay n milliseconds 96 n0 n1 - - - - - - - - - - - - - 20