This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DCA1000EVM: Expected packet loss rate?

Part Number: DCA1000EVM

Hi,

When streaming ADC data to my PC I find that UDP packet loss is quite high. In fact after the first 11 packets transmitted I've already lost data. This is after just 13KB of data:

Seq numb 9, byte count 11648.
Seq numb 10, byte count 13104.
Seq numb 18, byte count 24752.

I've googled and it appears that the buffer sizes on my ethernet (gigabit) are at the max. I'm not doing any processing accept trying to get the data.  

I really need to stream the data out as live as possible - so storing it to the sd card on the DCA1000EVM would not be acceptable. In the data capture user guide it talks about slowing down the ethernet packet delay options from 25us. Is this my best option and if so what command do I issue and what value to set it to (CONFIG_PACKET_DATA_CMD_CODE???).

I'm not even getting one radar frames worth of data so cant make up the data cube and a bit stuffed at the moment. Any help greatly appreciated

Best regards

  • John,

    I'll go ask about it and let you know.

    Regards,
    Michelle
  • Please increase the Ethernet packet delay to reduce the data loss.

    Thanks and Regards,
    Michelle
  • Hi Michelle,

    Thanks  for your reply. However, I'm having to guess what the command is to do this. Can you confirm that it is "CONFIG_PACKET_DATA_CMD_CODE" because the user guide doesn't provide a description for it.

    The user guide also doesn't provide a description for the data fields either it only says min and max bytes. However, what is the min and max delay range that can be entered plus what units does that correspond to (us, ms, s)?

    Thanks

  • This is called Configure Record Data Packets Command Code, , used in call back function.
    When matching the command code which corresponds to 0x0B, response/event status will be checked, showing whether Config data packet is done successfully or not.


    Not sure what data fields are referring to? Also, for the delay, is Ethernet packet delay? default is 25us.

    Regards,
    Michelle
  • Hi Michelle,

    In regards to data fields I mean what value needs to be supplied as per the diagram in section 5.1 of the DCA1000EVM user guide for the data field. Only command codes are given in table 12. So for this instance I guess that if I wanted a 50us delay then I need to convert 50 to a number of bytes as specified by the data size but it would be good to know that it has units of 'us' and the lower and upper bounds it can be set to.

    Descriptions for the other commands in table 12 would be really useful and also the values that can be set in the data field.

    Thanks

  • Would this table help?

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x0B

    -

    -

    Command code

    Size

    UINT16

    2

    6

    -

    -

    Data size

    Packet size

    UINT16

    2

    1472

    48

    1472

    Packet size

    Delay

    UINT16

    2

    3125 in API (25 in GUI)

    625 in API (5 in GUI)

    62500 in API (500 in GUI)

    Inter-packet delay 

    (Delay in GUI as usec * 1000) / 8

     

    Future use

    UINT16

    2

    NA

    NA

    NA

    NA

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x0B

    -

    -

    Command code

    Status

    UINT16

    2

    0

    0

    1

    0 – Success

    1 – Failure

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Thanks and Regards,

    Michelle

  • Thanks Michelle that is precisely the type of table I was after. Would you also have similar tables for the other commands?
  • The support is currently limited to mmwave studio related issues. All description of all the commands require an API document release which is not allowed for now. I can only help you on the needed bases. Most commands are the same as FPGA reset example. Here are some that are different:

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x0E

    -

    -

    Command code

    Size

    UINT16

    2

    0

    -

    -

    Data size

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x0E

    -

    -

    Command code

    Status

    UINT16

    2

    -

    0

    0xFFFF

    0 – 6th bits -> Major version

    7th – 13th bits -> Minor version

    14th bit -> 0 – Record bit file

    14th bit -> 1 – Playback bit file

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x03

    -

    -

    Command code

    Size

    UINT16

    2

    6

    -

    -

    Data size

    Data Logging Mode

    UINT8

    1

    1

     

    1

    2

    1 – Raw mode

    2 – Multi mode

    LVDS mode

    UINT8

    1

    1

     

    1

    2

    1 – AR1243

    2 – AR 1642

    Data transfer mode

    UINT8

    1

    1

     

    1

    2

    1 – LVDS capture

    2 – DMM playback

    Data capture mode

    UINT8

    1

    2

     

    1

    2

    1 – SD card storage

    2 – Ethernet stream

    Data format mode

    UINT8

    1

    2

     

    1

    3

    1 – 12-bit

    2 – 14-bit

    3 – 16-bit

    Timer

    UINT8

    1

    30

    0x0

    0xFF

    Timer info in seconds

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x03

    -

    -

    Command code

    Status

    UINT16

    2

    0

    0

    1

    0 – Success

    1 – Failure

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x04

    -

    -

    Command code

    Size

    UINT16

    2

    18

    -

    -

    Data size

    System IP address

    UINT8

    4

    192.168.33.30

     

    0x0

    0xFF

    IP address in 4 bytes

    For example:

    0th byte - 30

    1st byte – 33

    2nd byte – 168

    3rd byte - 192

    FPGA IP address

    UINT8

    4

    192.168.33.180

     

    0x0

    0xFF

    IP address in 4 bytes

    For example:

    0th byte - 180

    1st byte – 33

    2nd byte – 168

    3rd byte - 192

    FPGA MAC address

    UINT8

    6

    12-34-56-78-90-12

     

    0x0

    0xFF

    MAC address in 6 bytes

    For example:

    0th byte- 12

    1st byte – 90

    2nd byte – 78

    3rd byte – 56

    4th byte – 34

    5th byte - 12

    Configuration port

    UINT16

    2

    4096

    0x1

    0xFFFF

    Port number

    Data port

    UINT16

    2

    4098

    0x1

    0xFFFF

    Port number

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Name

    Data Type

    Number of bytes

    Default Value

    Min value

    Max value

    Description

    Header

    UINT16

    2

    0xA55A

    -

    -

    0xA55A always.

    Start bits of packet

    Command code

    UINT16

    2

    0x04

    -

    -

    Command code

    Status

    UINT16

    2

    0

    0

    1

    0 – Success

    1 – Failure

    Footer

    UINT16

    2

    0xEEAA

    -

    -

    0xEEAA always.

    Stop bits of packet

    Regards,

    Michelle