[aravis] Re: understanding command events

  • From: Ran Shalit <ranshalit@xxxxxxxxx>
  • To: aravis@xxxxxxxxxxxxx
  • Date: Sun, 25 Feb 2018 11:58:52 +0200

On Sun, Feb 25, 2018 at 11:41 AM, Emmanuel Pacaud
<emmanuel.pacaud@xxxxxxxxxxxxx> wrote:

Hi,
Le dim. 25 févr. 2018 à 9:53, Ran Shalit <ranshalit@xxxxxxxxx> a écrit :

Yet, I don't see that aravis use ARV_UVCP_COMMAND_EVENT_CMD , but
instead use the 0xc3 define.

I would please like to ask:
1. What is the meaning of 0xc3, and why I can't find it in standard ?
2. How does events are being recieved in host ? Does host required to
poll the events from device ? if yes - in which rate ?


Events are not supported by aravis yet. So any use of the EVENT related
defines is not tested and probably broken.

I have the same misunderstanding with other commands too.
for example, write memory is defined as
ARV_UVCP_COMMAND_WRITE_MEMORY_CMD = 0x0802,
in arvuvcp.h , and used here :

arv_device_write_memory->write_memory->arv_gv_device_write_memory->arv_uv_device_write_memory->_write_memory->arv_uvcp_packet_new_write_memory_cmd
I also assume that above is responsible for sending write commands.

But in the other list (in packet-gvcp.c)  I see it defined as:
#define GVCP_WRITEMEM_CMD (0x0086)
and used as following:
dissect_gvcp ->DissectWriteMemCmd
What is DissectWriteMemCmd? Is it sending command write command to device ?



As we can not use the USB3Vision specification documents, the values you are
seeing come from freely available sources. Most probably from the usb3vision
driver hosted on github and the protocol parsers from wireshark.

Is aravis using usb3vision git driver, or is it implementing the usb3
vision as part of the aravis package ?


Cheers,

Thanks for the time,
ranran


   Emmanuel.



Other related posts: