You are on page 1of 14

DMMVIEW_C Communication Protocol

Version:1.0

1. Communication Protocol explication:

This Communication Protocol accords with SCPI:(Standard Commands for

Programmable Instruments), and is compiled with the Reference of Agilent

34410A_11A_SCPI_Reference and Yokogawa 734 Digital Multimeter command

Reference.

2. Communication speculations:

l UART to USB communication

l Baud rate: 9600

l P2P communication:

Master: Upper PC
Slave: Multimeter DVM

l Byte Data Patten:

l Communication Frame Format:

ü Communication Command Format:

HEAD COMMAND EM

HEAD : 1 byte ASCII ‘#’


COMMAND : N byte ASCII
EM : 2 byte ASCII ‘CR LF’

ü Return Data Format:

HEAD DATA EM

HEAD : 1 byte ASCII ‘#’


DATA : N byte ASCII 或 HEX Data
EM : 2 byte ASCII ‘CR LF’

二. Communication Command concourse

[COMM]

[COMM] :[READ1] : READ?


: CANCel?

:[READ2] : SAVE

:COUNt?

:DATA?

: CANCel?

:[READ3] : LOGG

:COUNt?

:INTErval?

:DATA?

:CANCel?

3.1 COMM 1:command for reading real time data

READ
command
To collect real time data (Collection Real Time Data and
Description
metrical state)
Command ASCII READ?
Return Return related data according to the state of DVM

1) real data measure state (MEAS)

Return type0: RR real_data

RR :ASCII command keywords


real_data : HEX real time data

(Appendix 1)

2) read memory data state(MEM)

read logging data state (LOGGING)

Return type 1: NACK

NACK :ASCII command keywords

Not affirmatory return

CANCEL
command
To stop reading data from DVM
Description

Command ASCII CANCel?


Return Return type 2: ACK

ACK :ASCII command keywords

affirmatory return

3.2 COMM 2:command for reading save mode data

SAVE_COUNT
command
Description To collect number of data form SAVE depository
Command ASCII SAVE COUNt?
Return Return related data according to the state of DVM

1) read memory data state(MEM)

Return type 3:SC count

SC :ASCII command keywords

count :HEX number of SAVE data

2) real data measure state(MEAS)

Return type 1: NACK

Not affirmatory return


SAVE_DATA
command
Description To collect data form SAVE depository
Command ASCII SAVE DATA?
Return Return related data according to the state of DVM

1) read memory data state (MEM)

Return type 4:SD save data

SD :ASCII command keywords

save data :HEX SAVE data (Appendix

2)

Note:

SAVE depository is constituted by a series of SAVE

data Units, each SAVE data Units is transmitted as a

single deferent data package.

2) real data measure state (MEAS)

Return type 1: NACK

Not affirmatory return

3.3 COMM 3:command for reading logging mode data)


LOGG_COUNT
command
Description To collect number of data form LOGGING
depository
Command ASCII LOGG COUNt?
Return Return related data according to the state of DVM

2) read memory data state (MEM)

Return type 5:LC count

LC : ASCII command

keywords

count : HEX number of LOGGING

data

3) real data measure state (MEAS)

Return type 1: NACK

Not affirmatory return

LOGG_ INTERVAL
command
To collect logging data interval form LOGGING
Description
depository
Command ASCII LOGG INTErval?
Return Return related data according to the state of DVM

3) read memory data state (MEM)

Return type 7:LI interval

LI :ASCII command keywords

Interval : HEX logging data

interval

4) real data measure state (MEAS)

Return type 1: NACK

Not affirmatory return

LOGG_ DATA
command
Description To collect data form LOGGING depository
Command ASCII SAVE RSAV?
Return Return related data according to the state of DVM

4) read memory data state (MEM)

Return type 8:LD logg data


LD :ASCII command keywords

logg data : HEX LOGGING data

(Appendix 2)

Note:

LOGGING depository is constituted by a series of

LOGGING data Units, each SAVE data Units is

transmitted as a single deferent data package.

5) real data measure state (MEAS)

Return type 1: NACK

Not affirmatory return

Note: ASCII code is employed for communication in the Protocol


Appendix 1 :Real time data frame

array char

@L Char0 INPUT State Register_STIN

Char1 INPUT State Register_STWK

Char2 INPUTfunction gauge


Index1_AFRP1
Char3 INPUT function gauge
Index2_AFRP2
Char4 INPUT meterage state_MEAM_ST

Char5

Char6 INPUT meterage1_MEAM1

Char7

Char8

Char9 INPUT meterage2_MEAM2

Char10

Char11

Char12 INPUT meterage3_MEAM3

Char13
Appendix 2 :real time data unit frame

You might also like