JVC VN-E4U API Guide - Page 40

Serial Port, Acquiring Serial Port Baud Rate Setting from VN-E4

Page 40 highlights

5. API for Acquiring/Changing Parameters of VN-E4 _ 5.7. Serial Port 5.7. Serial Port The APIs below are related to the serial port. These are equivalent to the features on the Serial Port page of the WEB setting page. However, specification of control device and camera address are not supported by API. Refer to the instruction manual for details on the Serial Port page. Acquiring Serial Port Baud Rate Setting from VN-E4 Format /api/param?peripheral.serial(Number).baud Example When acquiring baud rate of Serial Port 1 /api/param?peripheral.serial(1).baud Example of response peripheral.serial(1).baud=9600&200 OK Interpretation Acquire the serial port's baud rate. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports. Value returned will be 1200, 1800, 2400, 4800, 9600, 19200 or 38400. Allowed users admin, operator, user Setting Serial Port Baud Rate for VN-E4 Format /api/param?peripheral.serial(Number).baud=data Example When setting the baud rate of Serial Port 1 /api/param?peripheral.serial(1).baud=19200 Example of response peripheral.serial(1).baud&200 OK Interpretation Change the serial port's baud rate. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports. Specify baud rate as 1200, 1800, 2400, 4800, 9600, 19200 or 38400. Allowed users admin, operator Acquiring Serial Port Data Length Setting from VN-E4 Format /api/param?peripheral.serial(Number).bit Example When acquiring data length of Serial Port 1 /api/param?peripheral.serial(1).bit Example of response peripheral.serial(1).bit=8&200 OK Interpretation Acquire the serial port's data length. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports. Value returned will be 7 or 8. Allowed users admin, operator, user Setting Serial Port Data Length for VN-E4 Format /api/param?peripheral.serial(Number).bit=data Example When setting the data length of Serial Port 1 /api/param?peripheral.serial(1).bit=8 Example of response peripheral.serial(1).bit&200 OK Interpretation Change the serial port's data length. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports. Specify data length as 7 or 8. Allowed users admin, operator 40

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80

40
5. API for Acquiring/Changing Parameters of VN-E4 _
5.7. Serial Port
The APIs below are related to the serial port. These are equivalent to the features on the Serial Port page of the WEB setting page. However,
specification of control device and camera address are not supported by API. Refer to the instruction manual for details on the Serial Port
page.
Acquiring Serial Port Baud Rate Setting from VN-E4
Format
/api/param?peripheral.serial(Number).baud
Example
When acquiring baud rate of Serial Port 1
/api/param?peripheral.serial(1).baud
Example of response
peripheral.serial(1).baud=9600&200 OK
Interpretation
Acquire the serial port's baud rate. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Value returned will be 1200, 1800, 2400, 4800, 9600, 19200 or 38400.
Allowed users
admin, operator, user
Setting Serial Port Baud Rate for VN-E4
Format
/api/param?peripheral.serial(Number).baud=data
Example
When setting the baud rate of Serial Port 1
/api/param?peripheral.serial(1).baud=19200
Example of response
peripheral.serial(1).baud&200 OK
Interpretation
Change the serial port's baud rate. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Specify baud rate as 1200, 1800, 2400, 4800, 9600, 19200 or 38400.
Allowed users
admin, operator
Acquiring Serial Port Data Length Setting from VN-E4
Format
/api/param?peripheral.serial(Number).bit
Example
When acquiring data length of Serial Port 1
/api/param?peripheral.serial(1).bit
Example of response
peripheral.serial(1).bit=8&200 OK
Interpretation
Acquire the serial port's data length. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Value returned will be 7 or 8.
Allowed users
admin, operator, user
Setting Serial Port Data Length for VN-E4
Format
/api/param?peripheral.serial(Number).bit=data
Example
When setting the data length of Serial Port 1
/api/param?peripheral.serial(1).bit=8
Example of response
peripheral.serial(1).bit&200 OK
Interpretation
Change the serial port's data length. Specify a value between 1 to 2 since VN-E4 comes with 2 serial ports.
Specify data length as 7 or 8.
Allowed users
admin, operator
5.7. Serial Port