Re: Accessing I2C-Bus via ELV USB-I2C

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Tue, 04 Oct 2022 08:39:35 UTC
On 10/4/22 01:35, Axel Rau wrote:
> 
> 
>> Am 03.10.2022 um 17:57 schrieb Hans Petter Selasky <hps@selasky.org>:
>>
>> Can you show the full sequence from the SUBM-CTRL-EP ?
> - - -
> 15:46:38.538480 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
>   frame[0] WRITE 8 bytes
>   0000  41 07 01 01 00 00 00 00  -- -- -- -- -- -- -- --  |A.......        |
>   flags 0 <0>
>   status 0xca1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.539679 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
>   frame[0] WRITE 8 bytes
>   flags 0 <0>
>   status 0xca1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.539719 usbus1.3 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
>   frame[0] WRITE 8 bytes
>   0000  41 07 02 02 00 00 00 00  -- -- -- -- -- -- -- --  |A.......        |
>   flags 0 <0>
>   status 0xea1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> 15:46:38.540291 usbus1.3 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=0
>   frame[0] WRITE 8 bytes
>   flags 0 <0>
>   status 0xea1a1 <OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
> - - -

That looks normal.

The DONE transaction transferred the SETUP packet, but still lists frame 
[0], but is not dumping the data, because it has already been sent. 
frame [0] is always the SETUP packet for control endpoints.

--HPS