一.进入串口模式
1.cl-200a关机,开关拨向“O”端
2.hold on键弹出
3.同时按下SET/CALL/CF,并且开关拨向“I”端,这时候会进入USB模式
二.CL-200A通信命令
模式 |
命令 |
---|---|
PC connect | 02 30 30 35 34 31 20 20 20 03 31 33 0D 0A |
Set Hold | 02 39 39 35 35 31 20 20 30 03 30 32 0D 0A |
Ext mode | 02 30 30 34 30 31 30 20 20 03 30 36 0D 0A |
Measure | 02 39 39 34 30 32 31 20 20 03 30 34 0D 0A |
Command 45(X2YZ) | 02 30 30 34 35 31 30 30 30 03 30 33 0D 0A |
47(1) | 02 30 30 34 37 31 31 20 20 03 30 30 0D 0A |
47(2) | 02 30 30 34 37 32 31 20 20 03 30 33 0D 0A |
47(3) | 02 30 30 34 37 33 31 20 20 03 30 32 0D 0A |
Command 01(XYZ) | 02 30 30 30 31 31 32 30 30 03 30 31 0D 0A |
Command 02(Evxy) | 02 30 30 30 32 31 32 30 30 03 30 32 0D 0A |
Command 08(EvTcpΔuv) | 02 30 30 30 38 31 32 30 30 03 30 38 0D 0A |
我们测量时需要依次发送:
1.PC connect
2.Set Hold
3.Ext mode
4.Measure
5.Command 45(X2YZ)/47(1)/47(2)/47(3)/Command 01(XYZ)/Command 02(Evxy)/Command 08(EvTcpΔuv)
三.参考文档下载地址
https://www.konicaminolta.com.cn/instruments/download/software/CL-200A/agree.html
四.读环境光案例代码:
# coding=utf-8
import serial
import threading
import time
import serial.tools.list_ports
# 0x20 空格
# 0x30 0
# 0x31 1
# 0x32 2
# 0x33 3
# 0