Acquiring serial port parity setting from vn-e4, Setting serial port parity for vn-e4, Acquiring serial port stop bit setting from vn-e4 – JVC 4ch Network Encoder VN-E4 User Manual

Page 41: Setting serial port stop bit for vn-e4, Api for acquiring/changing parameters of vn-e4

Advertising
background image

41

5. API for Acquiring/Changing Parameters of VN-E4 _

5.7. Serial Port

Acquiring Serial Port Parity Setting from VN-E4

Format

/api/param?peripheral.serial(Number).parity

Example

When acquiring parity of Serial Port 1

/api/param?peripheral.serial(1).parity

Example of response

peripheral.serial(1).parity=none&200 OK

Interpretation

Acquire the parity of the serial port. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Value returned will be none, odd or even.

Allowed users

admin, operator, user

Setting Serial Port Parity for VN-E4

Format

/api/param?peripheral.serial(Number).parity=data

Example

When setting the parity of Serial Port 1

/api/param?peripheral.serial(1).parity=odd

Example of response

peripheral.serial(1).parity&200 OK

Interpretation

Change the parity of the serial port. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Specify parity as none, odd or even.

Allowed users

admin, operator

Acquiring Serial Port Stop Bit Setting from VN-E4

Format

/api/param?peripheral.serial(Number).stopbit

Example

When acquiring stop bit of Serial Port 1

/api/param?peripheral.serial(1).stopbit

Example of response

peripheral.serial(1).stopbit=1&200 OK

Interpretation

Acquire the stop bit of the serial port. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Value returned will be 1 or 2.

Allowed users

admin, operator, user

Setting Serial Port Stop Bit for VN-E4

Format

/api/param?peripheral.serial(Number).stopbit=data

Example

When setting the stop bit of Serial Port 1

/api/param?peripheral.serial(1).stopbit=2

Example of response

peripheral.serial(1).stopbit&200 OK

Interpretation

Change the stop bit of the serial port. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Specify stop bit as 1 or 2.

Allowed users

admin, operator

Advertising