Specifiche di trasmissione rs-232, Formato comunicazione rs-232, Tabella comandi rs-232 – AVer F30 user manual Manuale d'uso

Pagina 36

Advertising
background image

32

S

S

p

p

e

e

c

c

i

i

f

f

i

i

c

c

h

h

e

e

d

d

i

i

t

t

r

r

a

a

s

s

m

m

i

i

s

s

s

s

i

i

o

o

n

n

e

e

R

R

S

S

-

-

2

2

3

3

2

2

ƒ

Bit di inizio

1 bit

ƒ

Bit di dati

8 bit

ƒ

Bit di stop

1 bit

ƒ

Bit di parità

Nessuno

ƒ

Parametro X

Nessuno

ƒ

Velocità Baud (velocità di comunicazione)

9600bps

F

F

o

o

r

r

m

m

a

a

t

t

o

o

c

c

o

o

m

m

u

u

n

n

i

i

c

c

a

a

z

z

i

i

o

o

n

n

e

e

R

R

S

S

-

-

2

2

3

3

2

2

Codice Send Device (1 byte)

: 0x52

Codice Type (1 byte)

: 0x0B

Codice DataLength (1 byte)

: 0x03

Codice Data (1 byte)

: fare riferimento alla tabella dei comandi

Codice Data (2 byte)

: fare riferimento alla tabella dei comandi

Codice Data (3 byte)

: fare riferimento alla tabella dei comandi

Codice Receive Device (1 byte)

: 0x53

Codice CheckSum (1 byte)

: fare riferimento alla tabella dei comandi

Formato

: Start + Type + DataLength + Data + CheckSum

Esempio

: 0x52 + 0x0B + 0x03+ 0x3 + 0x01 + 0x00 + 0x00 +
0x53 + 0x5A (comando potenza)

T

T

a

a

b

b

e

e

l

l

l

l

a

a

c

c

o

o

m

m

a

a

n

n

d

d

i

i

R

R

S

S

-

-

2

2

3

3

2

2

Formato di invio︰0x52 + 0x0B + 0x03 + Data[0] + Data[1] + Data[2] + 0x53 + CheckSum
Formato di ricezione︰0x53 + 0x00 + 0x02+ *2 + *3 + 0x52 + CheckSum
*1 :CheckSum = 0x0B xor 0x03 xor Data[0] xor Data[1] xor Data[2] xor 0x53
*2 :Receive data ok : 0x0B, ID error: 0x01, CheckSum error: 0x02, Not Command : 0x03,
Function fail = 0x04
*3 :Data[0], Return 0x00 if error

FUNZIONE

Data[0]

Data[1]

Data[2]

CheckSum

POWER OFF

0x01

0x00

0x00

0x5a

POWER ON

0x01

0x01

0x00

0x5b

CAMERA MODE

0x02

0x00

0x00

0x59

PLAYBACK MODE

0x03

0x00

0x00

0x58

PC-1 PASS THROUGH

0x04

0x00

0x00

0x5f

IMAGE CAPTURE TYPE: SINGLE 0x05

0x00

0x00

0x5e

IMAGE CAPTURE TYPE: CONTINUOUS 0x05

0x01

0x00

0x5f

IMAGE CAPTURE CONTINUOUS
INTERVAL INCREASE

0x06 0x00 0x00 0x5d

Advertising