Difference between revisions of "Woodpecker1 FAQ"

From rs_wiki
Jump to: navigation, search
Line 1: Line 1:
* '''<font size=4px>问题:是否可以自行购买比较短的HDMI线代替出厂的IO模块连接线?</font>'''<br/>
+
* '''<font size=4px>Q: Can I buy a short HDMI cable instead of the factory IO module cable?</font>'''<br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:可以的。我们的IO模块连接线是标准的HDMI线。只要是标准的HDMI线一般都可以替代。<br/>
+
:Our IO module connector is a standard HDMI cable. Any standard HDMI cable can be replaced.<br/>
:市面上有些价格比较便宜的线,由于并不是把所有引脚全部连接,所以可能有些会无法使用。<br/>
+
:There are some cheaper lines in the market. Because not all pins are connected, some may not be available.<br/>
:我们测试过可以使用的2款0.5米的HDMI线如下:<br/>
+
:We have tested two types of 0.5m HDMI cable that can be used as follow:<br/>
  机白金Gepekim 连接线 HDMI电脑连接线 3D电脑高清连接线1.4版 0.5米<br/>
+
  Machine Platinum Gepekim Cable, HDMI Computer Cable, 3D Computer HD Cable 1.4 Version, 0.5m<br/>
 
  https://item.jd.com/10365072469.html<br/>
 
  https://item.jd.com/10365072469.html<br/>
  价格为78元。<br/>
+
  RMB:78<br/>
 
  [[File:gepekim_hdmi_0.5m.jpg|100px]]<br/>
 
  [[File:gepekim_hdmi_0.5m.jpg|100px]]<br/>
  
  山泽(SAMZHE)HDMI线2.0臻心版2K*4K数字高清线 0.5米 镀金3D视频线 投影仪电脑电视机机顶盒连接线 CZ-AO5<br/>
+
  SAMZHE HDMI cable 2.0 heart version, 2K*4K digital HD line, 0.5 m, gold-plated 3D video cable, projector computer TV set-top box cable CZ-AO5<br/>
 
  https://item.jd.com/5160464.html<br/>
 
  https://item.jd.com/5160464.html<br/>
  价格为34元。<br/>
+
  RMB:34<br/>
 
  [[File:samzhe_hdmi_0.5m.jpg|100px]]<br/>
 
  [[File:samzhe_hdmi_0.5m.jpg|100px]]<br/>
  
  
* '''<font size=4px>问题:使用Windows自带地远程连接时,我们的Demo其他一切功能正常,保存到本地的图片也是正常,但是Demo的界面没有图像显示,有帧率和温度?</font><br/>
+
* '''<font size=4px>Q: When using the remote connection that comes with Windows, all other functions of the Demo are normal, and the pictures saved to the local are normal, but the interface of Demo has frame rate and temperature, and there is no image display?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:我们的相机地图像显示用的是Ddraw,Windows的远程用不了Ddraw,所以用Windows自带的远程连接看我们相机时,没有抓拍图像显示。<br/>
+
:The camera image is displayed using Ddraw, and Windows remote can't use Ddraw, so when using the remote connection camera that comes with Windows, there is no snap image display.<br/>
  
  
* '''<font size=4px>问题:使用usb转串口设备连接相机,以153600波特率交互时经常出错,但是其他波特率正常,为何?</font><br/>
+
* '''<font size=4px>Q:Why use USB to serial device to connect the camera, often error when interacting at 153600 baud rate, but other baud rate is normal?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:我们发现有些usb转串口的转换线在153600波特率时频率偏差比较大,经测试在8%左右,会造成此问题。<br/>
+
:We found that some USB to serial port conversion lines have a large frequency deviation at 153600 baud rate, and the test is around 8%, which will cause this problem.<br/>
:使用其他品牌的usb或采用PC自带的串口无此问题。<br/>
+
:The use of other brands of USB or the serial port that comes with the PC does not have this problem.<br/>
  
  
  
* '''<font size=4px>为什么获取图像之间的间隔波动很大?</font><br/>
+
* '''<font size=4px>Q: Why is the interval between acquired images fluctuating greatly?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:有几点需要注意:<br/>
+
:Here are a few points to note:<br/>
: '''1. 计时精度'''<br/>
+
: '''1. Timing accuracy'''<br/>
: 系统的GetTickCount精度为10-16ms,误差很大。<br/>
+
: The system's GetTickCount has an accuracy of 10-16ms with a large error.<br/>
: 应使用计数器来计算更准确。
+
: Use a counter to calculate more accurately.
 
  LARGE_INTEGER time1, time2, tc;
 
  LARGE_INTEGER time1, time2, tc;
 
  long long sTimeGap;
 
  long long sTimeGap;
Line 40: Line 40:
 
  sTimeGap = (time1.QuadPart - timeOld.QuadPart) * 1000 / tc.QuadPart;
 
  sTimeGap = (time1.QuadPart - timeOld.QuadPart) * 1000 / tc.QuadPart;
  
: '''2. Sleep 精度'''<br/>
+
: '''2. Sleep accuracy'''<br/>
: Windows系统默认Sleep精度为10-16ms。
+
: The Windows system default Sleep precision is 10-16ms.
: 如果想提高,需要使用如下方法:
+
: If you want to improve, you need to use the following methods:
 
  TIMECAPS timecaps;
 
  TIMECAPS timecaps;
 
  timeGetDevCaps(&timecaps, sizeof(timecaps));
 
  timeGetDevCaps(&timecaps, sizeof(timecaps));
Line 49: Line 49:
 
  timeEndPeriod(1);
 
  timeEndPeriod(1);
  
: '''3. 进程和线程优先级'''<br/>
+
: '''3. Process and thread priorities:'''<br/>
: 通过提高线程和进程的优先级来提高响应。
+
: Improve responses by increasing the priority of threads and processes.
 
  SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);<br/>
 
  SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);<br/>
 
  SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
 
  SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
Line 57: Line 57:
  
  
* '''<font size=4px>问题:是否可以在850nm红外波段成像?</font><br/>
+
* '''<font size=4px>Q:Is it possible to image in the 850nm infrared band?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:红外波段740nm、850nm都是是可以成像的。<br/>
+
:Infrared band 740nm and 850nm are all imaging.<br/>
:灵敏度随着波长的增加而衰减。<br/>
+
:The sensitivity decays as the wavelength increases.<br/>
  
  
  
* '''<font size=4px>问题:是否有800万或者1200万黑白相机?</font><br/>
+
* '''<font size=4px>Q: Are there 8 million or 12 million black and white cameras?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:黑白相机有1200万,大约在2017年8月底可以出来。<br/>
+
:12 million black and white cameras.<br/>
  
  
  
* '''<font size=4px>问题:最新版本SDK, 无法使用SniperViewer2修改IP</font><br/>
+
* '''<font size=4px>Q: Latest SDK version, unable to modify IP using SniperViewer2.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:在CTDemo.ini里增加ForceConfigIPAddr=1即可。<br/>
+
:Add ForceConfigIPAddr=1 to CTDemo.ini.<br/>
  
  
  
* '''<font size=4px>问题:如何安装.net framework 3.5</font><br/>
+
* '''<font size=4px>Q:How to install .net framework 3.5?</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:Woodpecker1 最新的镜像已预装.net 3.5<br/>
+
:The latest image of Woodpecker1 is pre-installed with .net framework 3.5.<br/>
:也可以在控制面板把windows update服务打开,再安装.net 也可以<br/>
+
:You can also open the windows update service in the control panel and install .net framework 3.5.<br/>
  
  
  
* '''<font size=4px>问题:打开灯环之后,关闭demo,灯环仍然没有关闭</font><br/>
+
* '''<font size=4px>Q: After turning on the light ring, turn off the demo, the light ring is still not closed.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:关闭Demo前应该先关闭LED,默认关闭demo不关闭LED灯环。<br/>
+
:The LED should be turned off before closing the Demo. By default, closing the demo does not turn off the LED.<br/>
  
  
  
* '''<font size=4px>问题:WP在插入加密狗以后无法识别,导致软件无法启动</font><br/>
+
* '''<font size=4px>Q: Woodpecker1 is not recognized after inserting the dongle, causing the software to fail to start.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:重新恢复系统。<br/>
+
:Recovery system.<br/>
  
  
  
* '''<font size=4px>问题:设备采集照片第一张时会出现白平衡不准的情况</font><br/>
+
* '''<font size=4px>Q: When the device collects the first photo, the white balance will be inaccurate.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:由于设置了自动白平衡所导致的,设备会在第一张照片采集的时候校正白平衡,因此会出现第一张白平衡失准的情况,在后面的采集会自动修正白平衡。<br/>
+
:Since the auto white balance is set, the device will correct the white balance when the first photo is taken, so the first white balance misalignment will occur, and the white balance will be automatically corrected in the subsequent acquisition.<br/>
  
  
  
* '''<font size=4px>问题:使用BGR24格式采集图像会出现成像异常,拉丝现象</font><br/>
+
* '''<font size=4px>Q:Imaging abnormalities and wire drawing phenomenon when images are acquired using the BGR24 format.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:需要重新烧写正确的BIOS<br/>
+
:Need to rewrite the correct BIOS<br/>
  
  
  
* '''<font size=4px>问题:WP在接上Output后会一直触发output信号,用户并未配置Output</font><br/>
+
* '''<font size=4px>Q: Woodpecker1 will always trigger the output signal after the Output is connected, and the user does not configure the Output.</font><br/>
:'''回答:'''<br/>
+
:'''A:'''<br/>
:用户需要在DEMO程序中关闭output后在运行自己的软件。<br/>
+
:Users need to close the output in the DEMO program before running their own software.<br/>

Revision as of 08:27, 2 November 2018

  • Q: Can I buy a short HDMI cable instead of the factory IO module cable?
A:
Our IO module connector is a standard HDMI cable. Any standard HDMI cable can be replaced.
There are some cheaper lines in the market. Because not all pins are connected, some may not be available.
We have tested two types of 0.5m HDMI cable that can be used as follow:
Machine Platinum Gepekim Cable, HDMI Computer Cable, 3D Computer HD Cable 1.4 Version, 0.5m
https://item.jd.com/10365072469.html
RMB:78
Gepekim hdmi 0.5m.jpg
SAMZHE HDMI cable 2.0 heart version, 2K*4K digital HD line, 0.5 m, gold-plated 3D video cable, projector computer TV set-top box cable CZ-AO5
https://item.jd.com/5160464.html
RMB:34
Samzhe hdmi 0.5m.jpg


  • Q: When using the remote connection that comes with Windows, all other functions of the Demo are normal, and the pictures saved to the local are normal, but the interface of Demo has frame rate and temperature, and there is no image display?
A:
The camera image is displayed using Ddraw, and Windows remote can't use Ddraw, so when using the remote connection camera that comes with Windows, there is no snap image display.


  • Q:Why use USB to serial device to connect the camera, often error when interacting at 153600 baud rate, but other baud rate is normal?
A:
We found that some USB to serial port conversion lines have a large frequency deviation at 153600 baud rate, and the test is around 8%, which will cause this problem.
The use of other brands of USB or the serial port that comes with the PC does not have this problem.


  • Q: Why is the interval between acquired images fluctuating greatly?
A:
Here are a few points to note:
1. Timing accuracy
The system's GetTickCount has an accuracy of 10-16ms with a large error.
Use a counter to calculate more accurately.
LARGE_INTEGER time1, time2, tc;
long long sTimeGap;
QueryPerformanceFrequency(&tc);
QueryPerformanceCounter(&time1);
QueryPerformanceCounter(&time2);
sTimeGap = (time1.QuadPart - timeOld.QuadPart) * 1000 / tc.QuadPart;
2. Sleep accuracy
The Windows system default Sleep precision is 10-16ms.
If you want to improve, you need to use the following methods:
TIMECAPS timecaps;
timeGetDevCaps(&timecaps, sizeof(timecaps));
timeBeginPeriod(1);
... your code with sleep ...
timeEndPeriod(1);
3. Process and thread priorities:
Improve responses by increasing the priority of threads and processes.
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);



  • Q:Is it possible to image in the 850nm infrared band?
A:
Infrared band 740nm and 850nm are all imaging.
The sensitivity decays as the wavelength increases.


  • Q: Are there 8 million or 12 million black and white cameras?
A:
12 million black and white cameras.


  • Q: Latest SDK version, unable to modify IP using SniperViewer2.
A:
Add ForceConfigIPAddr=1 to CTDemo.ini.


  • Q:How to install .net framework 3.5?
A:
The latest image of Woodpecker1 is pre-installed with .net framework 3.5.
You can also open the windows update service in the control panel and install .net framework 3.5.


  • Q: After turning on the light ring, turn off the demo, the light ring is still not closed.
A:
The LED should be turned off before closing the Demo. By default, closing the demo does not turn off the LED.


  • Q: Woodpecker1 is not recognized after inserting the dongle, causing the software to fail to start.
A:
Recovery system.


  • Q: When the device collects the first photo, the white balance will be inaccurate.
A:
Since the auto white balance is set, the device will correct the white balance when the first photo is taken, so the first white balance misalignment will occur, and the white balance will be automatically corrected in the subsequent acquisition.


  • Q:Imaging abnormalities and wire drawing phenomenon when images are acquired using the BGR24 format.
A:
Need to rewrite the correct BIOS


  • Q: Woodpecker1 will always trigger the output signal after the Output is connected, and the user does not configure the Output.
A:
Users need to close the output in the DEMO program before running their own software.