Sie sind auf Seite 1von 62

Initial Dynamic Mark ......................................................................................

12
Syntax of Dynamic Marks ............................................................................. 13
.........................................................................................................
.......................................................................
.......................................................
Links to chapters ............................................................................................. 3
Bookmarks pane in Adobe Acrobat ................................................................ 3
Chapter overview ............................................................................................. 3
.........................................................................................
................................................................................................
........................................................................................
....................................................................................................
Sample applications ........................................................................................ 4
Custom applications ........................................................................................ 5
File Naming Conventions ................................................................................. 5
..........................................................................................
Building a custom application ......................................................................... 6
..............................................................
........................................................................
..........................................................................................
.............................................................
............................................................................................
............................................................................................
Mimetype.ini .................................................................................................... 9
Note ................................................................................................................. 9
..................................................................

List of Dynamic Mark IDs for &LSetup .......................................................... 14


Dynamic Marks For Group &LState: ............................................................. 15
State Variables:.............................................................................................. 15
...................................................................
Examples ....................................................................................................... 17
Form element names ..................................................................................... 19
.....................................................................
.......................................................................................
.................................................................
...................................................................................
Flash memory usage table (Note: this may be subject to change if the
applications.cob requires more than 3 pages) .............................................. 21
...............................................................
Setup Layout ................................................................................................. 22
Default settings .............................................................................................. 22
Factory defaults using the Serial Rescue Kit ................................................ 22
Factory defaults using the reset button ........................................................ 22
Configuration storage usage ......................................................................... 23
General (Setup and EEPROM Organization) ................................................ 23
List of Configuration parameters ................................................................... 23
...........................................................................................
........................................................................................
...........................
No Application loaded (only bootloader) or reset button held during power
up ................................................................................................................... 27

Web2cob tool ................................................................................................ 10

Application starts (Barix boot-up sequence): ................................................ 27

Original UI Files .............................................................................................. 11

Application running........................................................................................ 28

...................................................................................

................................................................

........................

........................................................................................

......................................................................................................

.................................................................

....................................................................................

...............................................................................

...........................................................................................

Device overview ............................................................................................. 31

............................................................................

IPAM overview ............................................................................................... 32

.........................................................................................

......................................................................................
Example ......................................................................................................... 33
.................................................................................................

Aihpone interface on the Annuncicom 200 ................................................... 47


Aiphone direction switching .......................................................................... 47
.............................................

1...100 Relay outputs (Read, Write) ............................................................... 34

................................................................................

101...200 Digital outputs (Read, Write) .......................................................... 34

.....................................................................................

Exstreamer 100/IPAM200/IPAM 300/IPAM 301/IPAM 302 digital output


assignment .................................................................................................... 36

....................................................................................
PS16 Extensions ........................................................................................... 53

OEM362 digital output assignment ............................................................... 37

.......................................................................................

Exstreamer 500/1000 digital output assignment .......................................... 37

...........................................................................................

Annuncicom 1000 digital output assignment ................................................ 37

......................................................................................

201...300 Digital inputs (Read only) ............................................................... 38

................................................................................

IPAM100/101/102/IPAM 100 Carrier board digital input assignment ........... 40

...................................................................

Exstreamer 100/IPAM200/IPAM 300/IPAM 301/IPAM 302 digital input


assignment .................................................................................................... 40

..................................................................

OEM362 digital input assignment ................................................................. 41


301...400 Virtual I/O bits (Read, Write) .......................................................... 41
401...500 Reserved ........................................................................................ 41
501...600 Analog inputs (Read only) .............................................................. 41
601...700 Reserved ........................................................................................ 42
701...1000 Virtual 16bit registers (Read, Write) ............................................. 42
.......................................................................
....................................................
.......................................................................
...........................................................................................

................................................................................
........................................................................................
................................................................................................
...........................................................................................

1.1

1.2
X Chapter name

2
2.1

2.2

.cob
.cob

S180

2.3

applications.cob
WEB10
applications.cob

applctns.bat

applications.sh

custom1

custom2
custom1.cob

custom1

WEB6

.cob

2.4

tokenizer.exe

.cob

web2cob.exe

bcl.bat bcl.sh
.cob

bcl.bat <basename> [ <address of the unit> ]


bcl.sh

<basename> [ <address of the unit> ]


.cob

1.
2.
3.
4.
5.

.bas

WEB6

tokenizer.exe

web2cob.exe

.cob
uisettings.html

3
-

3.1

3.2

&
http://x.x.x.x/rc.cgi?c=99&a=password

3.3

L=

&
http://x.x.x.x/rc.cgi?c=99&a=password

4
4.1

web2cob
mimetype.ini in the package

web2cob
mimetype.ini.
mimetype.ini
txt text/plain
text text/plain
css text/css
xsl text/xml
xml text/xml
html text/html
htm text/html
shtml text/html
plg text/html
bmp image/bmp

mimetype.ini

mimetype.ini
dib image/bmp
gif image/gif
jpeg image/jpeg
jpg image/jpeg
jpe image/jpeg
jfif image/jpeg
pjpeg image/jpeg
pjp image/jpeg
tif image/tiff
tiff image/tiff
hta application/hta
js application/x-javascript
mocha application/x-javascript
class application/octet-stream
zip application/zip
rmi audio/mid
mid audio/mid
mp3 audio/mpeg
mp2 audio/x-mpeg
mpa audio/x-mpeg
abs audio/x-mpeg
mpega audio/x-mpeg

4.2

Development Kit
config.bin
rc.cgi, licence.cgi basic.cgi BAS.cgi

application cob
.cob

abcl

.bat

setup.cgi

web2cob.exe

.cob

.cob
.cob

applications.cob

4.3

&L(0,"*");
&L(0,*,1);

&L<name>(<id>,<format>[,par]);
<name>

<id>
<format>

<par>
);
)\;
%

\
%%
<format>

&LSetup(3,"%s",419,B,!0,"<meta http-equiv=refresh content=\"&LSetup(1,\"%u\",419)\;; url=info.html\">");


\
);

B
b3
&LSetup(1,"%08lx",315,D);
&LSetup(1,"%lu",311,D);

c
B

"%s"

&Lsetup(3,"%s",250,W,<10,"Parameter W250 is less than 10");


&LSetup(3,"%s",419,S,"hello","Print this is hello");

&LState(1,"%s",12);

i.e.
-

4.4

rebooting.html

B
onChange=IPCheck(this)

0
util.js

<input name=B0 size=3 maxlength=3 value=&LSetup(1,"%u",0); onChange=IPCheck(this)>

<input name=S98 size=15 maxlength=15 value="&LSetup(4,"%s",98);">


N8B0 N8B1 N8B2
0

B
onChange=netMaskCheck(this)

util.js

<input name=N8B0 size=3 maxlength=3 value=&LSetup(2,"%u",8,0); onChange=netMaskCheck(this)>

<input type=radio name=B198b7 value=0&LSetup(3,"%s",198,b7,0," checked");>Yes


<input type=radio name=B198b7 value=1&LSetup(3,"%s",198,b7,1," checked");>No

<input type=submit value=" Apply ">

Px

x
Px

Px.1

N8B3 8

<tr>
&Lsetup(3,"%s",130,D,0,"
<td><b><font size=2>Set Password</font></b></td>
<td><input name=P1 size=18 maxlength=25 type=password value=></td>
");
&Lsetup(3,"%s",130,D,!0,"
<td><b><font size=2>Old Password</font></b></td>
<td><input name=P1 size=18 maxlength=25 type=password value=></td>
</tr>
<tr>
<td><b><font size=2>New Password</font></b></td>
<td><input name=P1.1 size=18 maxlength=25 type=password value=></td>
");
</tr>
Px

Px.1

I
B0=192 B1=168 B2=1 B3=2
B4=192 B5=168 B6=1 B7=1

I0=192.168.1.2
I4=192.168.1.1

N
N8B0=255 N8B1=255 N8B2=255 N8B3=0

N8=255.255.255.0

D
P

b
b7

B0
B1
N8B0
N8B1
N8
S98
B198b7

4.5
L
D

logout.html

5
5.1

5.2
-

5.3
-

config.bin
appconfig.bin
config.bin

config.bin

config.bin

cob)

appconfig.bin

cob)

appconfig.bin

config.bin
abclapp.cob

applications.cob

6.1

6.2

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

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

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

7.1

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

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

--------

8
IOCTL

8.1
-

IOSTATE

8.2
-

ioctl 61000,&H5555 ' red LED flashing


ioctl 61001,&Hffff ' green LED permanently on

8.3

999

999

IOSTATE
IOCTL

IOSTATE
IOCTL
-

C
C

C
C

C
C

9.1

9.2

9.3

1.
2.

' pass line-input only signal to output


open AUD:1,0,0,0 as 7
' open audio for MP3 decoding
write 7,str$(&H0040),-13
' configure output mixer to:
' recording input on, playback off
write 7,20,-12
' set volume to 100%
(20*5% steps)
close 7

' mix line-input only signal to output


open AUD:1,0,0,0 as 7
' open audio for MP3 decoding
write 7,str$(&H4040),-13
' configure output mixer to:
' recording input on, playback on
write 7,20,-12
' set volume to 100%
(20*5% steps)
'...
' write data to audio interface
'...
close 7

9.4
IOSTATE
IOCTL
-

9.5
IOSTATE

IOCTL
-

9.6

9.7

9.8

9.9

- -

1.
2.
3.

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.

9.10
IOSTATE
IOCTL

9.11

9.12

9.13

9.14

i.e.

9.15

9.16

10
10.1

10.2

11
11.1

11.2

12

Das könnte Ihnen auch gefallen