필터 지우기
필터 지우기

Read the outgoing serial data to an IR camera

조회 수: 3 (최근 30일)
Haider Ali
Haider Ali 2015년 7월 9일
댓글: Haider Ali 2015년 7월 13일
Hi,
I have an infrared (IR) camera which can be operated serially. It comes with a GUI which provides various buttons to zoom in, zoom out, control brightness and contrast, display overlay etc. The protocol consists of a total 77 bytes, out of which I am concerned only with a few bits regarding zoom in and zoom out.
My question is if there is any way I can read the data that is sent on the serial port (connected to the IR camera) whenever I press a particular button (e.g. zoom in) on that GUI? I need to see that data because I need to control that camera without using that GUI (for example using MATLAB). I tried using hyper terminal but I guess only one software can connect to the COM port at one time, either hyper terminal or that GUI. Can both MATLAB and that GUI connect to the same COM port (created using a usb-to-serial converter) at the same time?
Thanks.

채택된 답변

Vinod
Vinod 2015년 7월 12일
편집: Vinod 2015년 7월 12일
The serial port functionality in MATLAB is "exclusive" in that only one process can communicate with the serial port - MATLAB or your application's utility.
If you are looking for port monitoring tools, you will likely need to use something that operates at the kernel level. If you are on Windows, you can try Microsoft's portmon utility to monitor the COM port traffic.
If you are interested in programmatically controlling the device, contact the vendor of the hardware and ask if they have an API to the hardware. It is usally far easier to use that than to reverse engineer the protocol by inspecting the COM port traffic.
  댓글 수: 1
Haider Ali
Haider Ali 2015년 7월 13일
I do have an API (with minimal documentation) and it has buttons to zoom in, zoom out etc. I just wanted to 'confirm' what data is sent when a particular button is pressed. I'll try the portmon utility. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by