CaMate Series User’s Manual 2017/11/17 1. Rev0.1 Introduction ...........................................................................................................................................................4 1.1 Configuration & Control .....................................................................................................................................4 2. Windows Application Software .............................................................................................
.11.4 LED Voltage ................................................................................................................................................17 2.11.5 LED Temperature .......................................................................................................................................17 2.11.6 MCU Temperature .....................................................................................................................................17 2.11.7 Boot count ........
5.1.8.6 Boot count ................................................................................................................................................41 5.1.4.8.7 LED voltage ............................................................................................................................................42 5.1.8.8 System error code ....................................................................................................................................43 5.1.8.
1. Introduction The CaMate illuminators' variable beam angles can be adjusted via an RS485 connection. Using a USB‐to‐RS485 converter, the LED ON/OFF, trigger level, Dimming, Fade in/out can be remotely controlled. 1.1 Configuration & Control CaMate can be configured and controlled through the RS485 interface and/or a remote controller. A PC or Android mobile phone can be used to configure CaMate through the RS485 interface. You can download a Windows application software and Andriod APP from "www.vivotek.
NOTES: If termination is required, a resistor value of 120Ω or greater should be used, and no more than 2 termination resistors should be used, one at each end of the RS485 transmission line.
2. Windows Application Software After the device driver for the USB-to-RS485 converter is installed (refer to the installation guide that comes with the USB-to-RS485 converter), execute the EXIR_ConfigurationTool.exe application software. 1. First select the correct COM port that is connected to CaMate. If you are not sure of the baudrate of CaMate, (default is 38,400), you can use the Baudrate probe icon to search for the correct baudrate. 2. Then, configure the correct baudrate and click the Find icon.
The CaMate illuminator thus found will be listed under the selected COM port. Select the CaMate you want to configure and/or control, and the Configuration/Status page will display.
2.1 Configuration/Status Page 2.1.1 Apply change The Apply change button lets the configuration values take effect. CaMate configuration values will not be saved until you click the Apply change button. 2.1.2 Update The Update button is to used to query the CaMate configuration to display on the software. To ensure the software is displaying the latest information from CaMate, you should use Update button before you start to configure. 2.1.3 Device Info Device Info indicates the CaMate model name, e.g.
Device ID 80h (128) can be used to configure any device no matter what the device ID of devices is (the Master device ID only supports configuration and control functions, but not query ). The Master Device ID can be used to configure multiple devices connected together with the same configuration profile. If the apply to all checkbox is selected, the software will use the Master device ID to proceed with configuration.
2.2 Baudrate Baudrate sets the communication speed of CaMate devices on the RS485 interface. The Max. rate is 115,200, and the min. is 1,200. The default baudrate is 38,400. Remember to change the baudrate of application software immediately after you change the baudrate of a CaMate device. Mismatched Baudrate setting between a PC and CaMate devices will fail the RS485 communications. In some computers, the max. baudrate may only reach 38,400.
2.3.2 Direct mode In the Direct control mode, the IR LED is controlled by the commands issued through the RS485 interface.
2.3.3 Timer mode There is an embedded system clcok on CaMate devices. The Timer mode allows the configuration of periodical ON/OFF time to control LED automatically. However, since there is no battery in CaMate, the system Clock will reset to default setting when powered down. (If you need to implement a battery to sustain the system clock during power-off, please contact your sales representative for customization service) 2.3.
2.5 Trigger Level Trigger Level defines the ambient Lux threshold for the embedded light sensor. There are 7 threshold levels. 20 % is the default value. "" represents the infinite value, which means the light sensor detection is always active. When the ambient light falls under the triggering threshold, the LEDs enter the active state, and will become inactive state when the light level is 10 % above the threshold, e.g., when the detected level is 30%.
2.6 LED indicator LED indicator activates or deactivates the information status LED, i.e. red and green LEDs (not the IR illumination LEDs). Because of opaque front cover in the IR models, I8 and I9, the LED indicators only can be seen in the non-IR CaMate products, i.e. w5. Below are the definitions of LED indicators: Red LED constant ON means normal operation, OFF means system is not working.
2.10 Angle Level (Only available for the motorized version of CaMate, e.g. CA48I8-1040) Angle level is used to adjust the beam angle of CaMate, and thus adjust the effective IR illumination range. 2.
In the diagnostics page, you can find important system operating information. 2.11.1 System power on time (hours) System power on time records total the accumulated number of operating hours. 2.11.2 LED power on time (hours) LED power on time as the total LED ON hours. 2.11.3 Inputs The Input state reports the input voltage of power supply to CaMate. It records the Max. and Min. voltage ever recorded, the average voltage during operation, and the current voltage reading.
2.12 Firmware Upgrade CaMate's firmware can be upgraded through the RS485 interface. Access the firmware upgrade function in the Help menu. Select Firmware Upgrade , the Firmware Upgrade window will prompt. 1. Select the correct COM port, Baudrate, and Device ID, then click the OPEN COM button. When a CaMate is connected, current firmware version and checksum will be read and shown.
If the software cannot connect to a CaMate, a timeout warning displays. Please check if the COM port and/or baudrate settings are correct, or the wire connection is correctly made. 2. Load CaMate firmware binary code by clicking the Load button, and select the correct binary file. The new firmware version and checksum will display after loading. You can find the firmware binary file at www.vivotek.com or contact your sales representative. 3.
2.13 FactoryCode Page The FactoryCode page records manufacturing information of the device. Generally, the code is used for manufacturing. Model ID Model ID represents the model of CaMate. FW Rev/Chks Firmware revision and checksum of the code. Max Current Allowed max. LED current. It depends on hardware circuitry design. Default Current Default LED current configuration. Lens angle Optical Lens used in CaMate, e.g., 10 ~ 40. Factory Date Manufacturing date. Factory Time Manufacturing time.
3. Android APP After you install CaMateTool.apk in your Android device, the app will automatically launch upon USB-to- RS485 converter connection. If not, tap the CaMate icon on the screen to launch. When CaMateTool screen appears, the app enables RS-485 communication using the default baud rate - 38,400 bps. The default device ID is 1. You can select a new one by touching the device ID value using a drop-down menu with all other available values.
Device configuration After the configuration value is changed, click the Apply changes button for the configuration changes to take effect. For the configuration details, please refer to the description in Windows Application Software - Configuration/Status Page. Device diagnostic information For the diagnostic information, please refer to the description in Windows Application Software Diagnostic Page.
Device list (baudrate scan and device search) If you are not sure of the baudrate or device ID of CaMate, you can scroll down on the screen, click the Press to Start button to search for correct baudrate and device ID. You can click Press to Stop button to stop scanning anytime once your CaMate is found.
4. Remote Controller Unlock By default, the CaMate IR remote control is disabled. To enable the control function, the unlock button must be pressed continuously for at least 2 seconds. After being idle for 5 minutes, it automatically enters the lock mode to disable IR remote control function. LED on/off The button is a toggle switch to turn LEDs on/off.
The button is a toggle switch to turn status LED indicators on/off. Because of the opaque front cover in the IR version, I8 and I9, the LED indicators only can be seen in the non‐IR CaMate products, i.e. w5. Light sensor sensitivity There are three pre‐defined levels to configure the light sensor threshold values. Turn LED on when the ambient light is under 50 % and turn off when the ambient light is above 60%.
Angle of illuminator (Only available for the motorized version of CaMate, e.g. CM48I8A‐1040). The Angle level is used to adjust the beam angle of CaMate for variable effective illumination distances.
5. Appendix 5.1 Appendix A: Pelco-D set of CaMate Standard Commands The Cmd2 of standard commands is always even. Responses are suppressed for standard commands because some controllers output many repeated commands in rapid succession without sufficiently delaying for a response to be sent between commands. Extended Commands The Cmd2 of Extended commands is always odd. 5.1.0 Use Windows Application Software to get commands 1. First select the command generator.
2. Then, select Model information and the commands you want. The correspond Pelco-D command will shown on the right 3.
5.1.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 0x5D Zoom % MSB Zoom % LSB -- 5.1.5 Set Baud rate (0x67) The command will change CaMate’s baud rate.
5.1.7.1 LED control mode There are 4 control modes of LED, i.e. DI, Direct, Timer, and Light sensor. DI mode (default): in this mode, LED on/off is controlled by DI signal Direct mode: LED on/off is controlled by command through RS485 Timer mode: set the periodical on/off time to control LED automatically Light sensor mode: LED is controlled by light sensor status. If ambient light is lower than threshold level, LED turns on, else off.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 0x00 0x00 LED fade in/out -- Fade in/out: (0) off / (1) Fast/ (2) Slow Command format: Byte number Set 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Set Fade in/out 0xFF 0x01 0x84 0x6D 0x00 LED fade -- in/out Response Format: Byte number 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Resp
Light sensor: DO pin outputs the light sensor detection result. LED state: DO pin outputs the LED on/off state. Diagnostic: DO pin outputs the health condition of LED for maintenance purpose.
Response Format: Byte number 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Response 0xFF 0x01 -- -- Read-only if LED control is not in direct mode. 5.1.7.6 Indicator on/off LED indicators activate or deactivate the information status LED. If indicator is on, the meanings of LED is as below. If red LED keeps ON means normal, keeps OFF means system is not working.
5.1.7.
Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Set Clock time – 0xFF 0x01 0x96 0x6D Minute Second -- 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Response 0xFF 0x01 -- -- min/sec Response Format: Byte number 5.1.7.9 Timer LED on These commands return or set the periodical time of LED on.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 Hour Minute Second -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Set timer LED off hour 0xFF 0x01 0x9C 0x6D 0x00 Hour -- Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Set timer LED off – min/sec 0xFF 0x01 0x9E 0x6D Minute Second -- 1 2 3 4 Byt
Command format: Byte number Set 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Set ambient hysteresis/oversample 0xFF 0x01 0xA2 0x6D Hysteresis Oversample -- Response Format: Byte number 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Response 0xFF 0x01 -- -- 5.1.
5.1.8.2 Measurement of Input voltage Command format: Get Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query max/avg. input voltage 0xFF 0x01 0x04 0x6F 0x00 0x00 -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 Max. Max.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 Sys. time Byte3 Sys. time Byte2 Sys. time Byte1 Sys. time Byte0 -- System power on time: [Byte3] [Byte2] [Byte1] [Byte0] 0~232 hours 5.1.8.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 0x00 2 3 4 5 6 7 Command format: Clear Byte number 1 Bootcount Bootcount MSB LSB -- Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Clear boot count 0xFF 0x01 0x8E 0x6F 0x00 0x00 -- 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Response 0xFF 0x01 -- -- 1 2 3 4 5 6 7 Byte Definition Sync Addr
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 0x00 Voltage MSB Voltage LSB -- 2 3 4 5 6 7 Voltage is in mV.
//Peripheral #define ErrorCode_LowPowerSupply_bm 0x00010000 //Power loss have occurred #define ErrorCode_TempSensorFail_bm 0x00020000 //Read ID of temperature sensor is fail #define ErrorCode_MCU_OverTemp 0x00040000 //over-temperature #define ErrorCode_MCU_UnderTemp 0x00080000 //under-temperature 5.1.8.9 Count of over-heat and input voltage out of range Command format: Get Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query VIN/Temp.
Command format: Clear Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Clear OVP count 0xFF 0x01 0x9C 0x6F 0x00 0x00 -- 1 2 3 4 Byte Definition Sync Addr Faults ChkSum General Response 0xFF 0x01 -- -- Response Format: Byte number 5.1.9 Query Version information (0x73) This command returns CaMate’s series number, Model ID, Firmware revision, Max/default current, Lens tele/wide angle, Factory date, Factory time. 5.1.9.
5.1.9.3 Hardware revision Command format: Get Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query HW Version 0xFF 0x01 0x06 0x73 0x00 0x00 -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x07 0x00 HW Rev HW Rev -- MSB LSB Response Format: Byte number HW: Hardware, Chks: checksum 5.1.9.
5.1.9.5 Model ID Command format: Get Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query Model ID 0xFF 0x01 0x10 0x73 0x00 0x00 -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 Model ID Byte3 Model ID Byte2 Model ID Byte1 Model ID Byte0 -- Response Format: Byte number 5.1.9.
Response Format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 Year MSB Year LSB Month Day -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query Factory Time 0xFF 0x01 0x1C 0x73 0x00 0x00 -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 Hour Minute Second -- 5.1.9.
5.1.12 Get brightness level (0x81) This command will return current brightness level percentage in byte 6 of returned extended response. Command format: Byte number 1 2 3 4 5 6 7 Byte Definition Sync Addr Cmd1 Cmd2 Data1 Data2 ChkSum Query ambient threshold 0xFF 0x01 0x00 0x81 0x00 0x00 -- 1 2 3 4 5 6 7 Byte Definition Sync Addr Resp1 Resp2 Data1 Data2 ChkSum Extended Response 0xFF 0x01 0x00 0x85 0x00 Brightness % -- Response Format: Byte number 5.1.
5.2 Appendix B: Command set of CaMate Protocol: To avoid communication conflicts when several devices trying to send data at the same time, all transmission and reception are controlled by the host computer. The basic form is a command/response protocol with the host initiating the sequence. When the CaMate devices are not transmitting, they are in the listening mode. The host sends a command to CaMate with a specified address and waits a certain amount of time for the CaMate devices to respond.
(0)1200/(1)2400/(2)4800/(3)9600/(4)19200/(5)38400/(6)57600/(7)1 15200 bit 20~16: Brightness (0)20~(31)100%, unit=2.
temperature value in 2's complement pp: max. LED temperature, qq: current LED temperature, rr: max. MCU temperature, ss: current MCU temperature Read AC/DC FF 01 31 00 00 00 00 32 max/avg. voltage Reply: FF 01 31 mm mm nn nn chks, mmmm: max. voltage (in mV) nnnn: average voltage (in mV) Read AC/DC current FF 01 32 00 00 00 00 33 voltage Reply: FF 01 32 rr rr pp pp chks pppp: current voltage (in mV) rrrr: min.
Bit11: LED driver4’s voltage is out of range Bit17: Temperature sensor read fail 53