How to test DI-720/730 Ethernet (DI-7x0/EN) option without WinDaq

In the following text, it is assumed:

You are dealing with DI-7x0/EN, not ENA

The DI-7xx Ethernet module has an IP address of 192.168.1.5.

The host PC has an IP adddress of 192.168.1.1 and the subnet mask is 255.255.255.0

<CR> is the Enter key on your keyboard.

Underlined section is what you typed in.

1) From the host PC, use ping and telnet to confirm you set up the unit correctly.

C:Windows>ping 192.168.1.5<CR>

Pinging 192.168.1.15 with 32 bytes of data:

Reply from 192.168.1.15: bytes=32 time=16ms TTL=255
Reply from 192.168.1.15: bytes=32 time=7ms TTL=255
Reply from 192.168.1.15: bytes=32 time=7ms TTL=255
Reply from 192.168.1.15: bytes=32 time=5ms TTL=255

Ping statistics for 192.168.1.5:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 5ms, Maximum = 16ms, Average = 8ms

C:Windows>telnet 192.168.1.5<CR>

- PocketPS AppleTalk/NetWare/TCP/LAT Printer Server ---------------------

Copyright 1988 - 1998 EMULEX Corp.

All Rights Reserved.

Engineering Software Release: 990428

-------------------------------------------------------------------------

Welcome to PocketPS

Enter username, or HELP> dataq

Server> show port 1

Port Configuration

1 Parallel IEEE 1284
Access: dynamic Queuing: disabled
TBCP: disabled BackSpoof: enabled
Bi-di: enabled Fast Strobe: disabled

Server>

2) From your host PC, issue

telnet 192.168.1.5 2501<CR>

This will allow you to connect to the data port on DI-720/730

You may want to enable local echo from terminal preference to see what you input.

3) Now we check the signature pattern. Issue FA<CR>SG<CR>, and you should see:

+00000+00001+00002+00003+00004+00005+00006+00007+00008+00009+00010+00011+00012+00013 +00014+00015+00016+00017+00018+00019+00020+00021+00022+00023+00024+00025+00026+00027 +00028+00029+00030+00031+00032+00033+00034+00035+00036+00037+00038+00039+00040+00041 +00042+00043+00044+00045+00046+00047+00048+00049+00050+00051+00052+00053+00054+00055 +00056+00057+00058+00059+00060+00061+00062+00063+00064+00065+00066+00067+00068+00069 +00070+00071+00072+00073+00074+00075+00076+00077+00078+00079+00080+00081+00082+00083 +00084+00085+00086+00087+00088+00089+00090+00091+00092+00093+00094+00095+00096+00097 +00098+00099+00100+00101+00102+00103+00104+00105+00106+00107+00108+00109+00110+00111 +00112+00113+00114+00115+00116+00117+00118+00119+00120+00121+00122+00123+00124+00125 +00126+00127+00128+00129+00130+00131+00132+00133+00134+00135+00136+00137+00138+00139 +00140+00141+00142+00143+00144+00145+00146+00147+00148+00149+00150+00151+00152+00153 +00154+00155+00156+00157+00158+00159+00160+00161+00162+00163+00164+00165+00166+00167 +00168+00169+00170+00171+00172+00173+00174+00175+00176+00177+00178+00179+00180+00181 +00182+00183+00184+00185+00186+00187+00188+00189+00190+00191+00192+00193+00194+00195 +00196+00197+00198+00199+00200+00201+00202+00203+00204+00205+00206+00207+00208+00209 +00210+00211+00212+00213+00214+00215+00216+00217+00218+00219+00220+00221+00222+00223 +00224+00225+00226+00227+00228+00229+00230+00231+00232+00233+00234+00235+00236+00237 +00238+00239+00240+00241+00242+00243+00244+00245+00246+00247+00248+00249+00250+00251 +00252+00253+00254+00255

4) Now, we test the echoeing. Issue EC123,456,789<CR>, and you should get

+00123+00456+00789

5) Now we test the data acquisition:

issue BR60000<CR> --- this setup the Burst counter

issue IL1,0<CR> --- this specify only one channel is used (the 1 is for number of channels, and 0 is the index of channel)

issue IC10<CR> -- the counter in the input scanlist

issue ES<CR> -- enable scanning

and you should see data from channel 1 starts to come in in ASCII format.

issue DS<CR> and you can stop the acquisition

The following info regarding DI-720ENA is provided "AS IS", and no additional support will be provided:

Ethernet Port Usage:

TCP Port: 2501

Boot/Configuration Command Set:

First

2 char

Parameter Action
SG 0 or 1 Disable or Enable Stop-on-Gap feature
AR ADDR Set EPP address to ADDR
WR BYTE Write BYTE to current EPP address
MC   Return the MAC address of DI-720/EN2 if not scanning
FD   Returns the signature of DI-720/EN2 if not scanning

The signature is char cSignature[13]={0x55, 0xaa, 0, 0xff, 0x12, 0x34, 'r','a','b', 'b', 'i','t',' '}

XZ   Returns the configuration of DI-720/EN2 if not scanning

Format: <REV> <MODEL> <cfg>

Example: 00001 00720 00031

Generic 720EN Command Set:

You need to use the SDK manual to figure out the detail of every command

Definition:

<CR> is the carriage return of ASCII set

xxxxx is 16 bit integer in binary format

aaaaa is unsigned 16 bit integer in ASCII format

bbbbb is signed 16 bit integer in ASCII format

, is the comma of ASCII set

Command SDK Equivalent Comments
AD DI_ADC Immediate ADC input

Input Format: ADaaaaa<CR>

Output Format: aaaaa or xxxxx

BR DI_BR Burst Counter

            Input Format: BRaaaaa<CR>

            Ouput Format: None

CL DI_ICL Input Counter List

                Input Format: ILaaaaa[,aaaaa]<CR>

                Output Format: None

DA DI_DAC Immdiate DAC output

Input Format: DAaaaaa<CR>

Output Format: None

DI DI_DI Immdiate Digital Input

Input Format: DI<CR>

Output Format: aaaaa or xxxxx

DS DI_DS Stop Scanning

Input Format: DS<CR>

Output Format: None

ES DI_ES Start Scanning

Input Format: ES<CR>

Output Format: bbbbb[,bbbbb]<CR>

                                Or

                           xxxxx[xxxxx]

where xxxxx is 14-bit left justified data,

bit 0 of the first channel is 1, others 0. 

bit 1 is the remote event bit 

IC   Set up the counter for every item in the scan list
IL DI_IL Input Scan List

               Input Format: ILaaaaa[,aaaaa]<CR>

               Output Format: None

IX DI_INIT_MUX Initialize the Mux
RM DI_READ_MUX Read DATAQ mux

Input Format: RM<CR>

Output Format: xxxxx[xxxxx]

RP DI_READ_PROM Read EEPROM

Input Format: RP<CR>

Output Format: xxxxx[xxxxx]

Or  bbbbb[,bbbbb]  

TG DI_TRG Trigger mode setup
VR DI_VER Version Info

Input Format:VR<CR>

Output Format: xxxxx[xxxxx]