Skip to main content
Visitor II
February 14, 2024
Solved

RNDIS over USB STM32F746-Discovery ping time out problem

  • February 14, 2024
  • 3 replies
  • 1934 views

Hello,

I have problem with ping request and RNDIS server. I use STM32F746G-Discovery and Windows 7,10,11.

My steps:

  1. I compiled the example STM32Cube_FW_F7_V1.17.1\Projects\STM32746G- Discovery\Applications\USB_Device\CDC_RNDIS_Server for FS and uploaded stm32 board.
  2. I set network in Windows for Remote NDIS:

  - Deactivate IPv6 and activate IPv4 mode

  - Static addresses as follows:

                - Address = 192.168.0.11

                - Network Mask = 255.255.255.0

                - Gateway = 192.168.0.1

  - Automatic DNS and Routing deactivated.

pferd_4-1707905565348.png

 

  1. I opened command line and created ping request „ping 192.168.0.10 –t”. It works ok.

pferd_5-1707905565360.png

 

  1. I reconnected usb in PC. Ping doesn’t work. I still have „Request timed out”:

pferd_6-1707905565365.png

 

To restore communication I need to change the network settings. I have to set IP6 active and click OK.

 

pferd_7-1707905565383.png

 

Why is communication restored after IP6 activation? I think than communication should start after connect USB to PC. Can you explain to me what is the problem ?

    This topic has been closed for replies.
    Best answer by pferd

    Hi,

    I believe the problem was the antivirus program. When I tested the device without an antivirus program it worked fine. Using Wireshark I could see that not all network packets were arriving.

    I gave up using RNDIS over USB.

    3 replies

    Technical Moderator
    March 1, 2024

    Hello @pferd 

    You are trying to run STM32746G-DISCOVERY_USBD-FS example from cube firmware without any modifications using our reference board MB1191-C03? You followed readme with no success?
    If not, please don't hesitate to share your hardware setup and the minimum software to reproduce the issue.

    pferdAuthor
    Visitor II
    March 6, 2024

    Hello,

    I used the example without any modifications:

    ...\STM32Cube_FW_F7_V1.17.1\Projects\STM32746G-Discovery\Applications\USB_Device\CDC_RNDIS_Server

    I read "readme.txt" file.

    I used your reference board MB1191 B-04 2155003701.

    Technical Moderator
    March 12, 2024

    Hi @pferd 

    After several tests, I couldn't reproduce. It appears that deactivating and then reactivating IPV6 allows the target and the host to restore communication without any issues.

    pferdAuthorAnswer
    Visitor II
    April 19, 2024

    Hi,

    I believe the problem was the antivirus program. When I tested the device without an antivirus program it worked fine. Using Wireshark I could see that not all network packets were arriving.

    I gave up using RNDIS over USB.