Forum Rule: Always post complete source code & details to reproduce any issue!
Page 13 of 13 FirstFirst ... 3 11 12 13
Results 301 to 311 of 311

Thread: USB Host Ethernet Driver

  1. #301
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    464
    That’s probably the issue, I only have it setup to work with the AX88772B chipset, likely my driver is trying to claim it since I’m only testing for the manufacturer and not the specific device, but each chipset has to be setup a little bit differently. I would have to look through the Linux driver to get some of the specifics and rearrange some stuff in my driver to better support different chipsets.

  2. #302
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,163
    Ok.. was a bad buy, then.
    I've enabled the USB logging on the t4. It says:
    Code:
    USB Host InputFunctions example
    
    USB2 PLL running
    
     reset waited 6
    
    USBHS_ASYNCLISTADDR = 0
    
    USBHS_PERIODICLISTBASE = 20016000
    
    periodictable = 20016000
    
    USB Ready
    
    port change: 10001803
    
        connect
    
      begin reset
    
    port change: 18001205
    
      port enabled
    
      end recovery
    
    new_Device: 480 Mbit/sec
    
    new_Pipe
    
    enumeration:
    
    enumeration:
    
    enumeration:
    
    Device Descriptor:
    
      12 01 00 02 FF FF 00 40 95 0B 20 77 01 00 01 02 03 01 
    
        VendorID = 0B95, ProductID = 7720, Version = 0001
    
        Class/Subclass/Protocol = 255 / 255 / 0
    
        Number of Configurations = 1
    
    enumeration:
    
    enumeration:
    
    Manufacturer: ASIX Elec. Corp.
    
    enumeration:
    
    Product: AX88772A
    
    enumeration:
    
    Serial Number: 000544
    
    enumeration:
    
    Config data length = 39
    
    enumeration:
    
    Configuration Descriptor:
    
      09 02 27 00 01 01 04 A0 7D 
    
        NumInterfaces = 1
    
        ConfigurationValue = 1
    
      09 04 00 00 03 FF FF 00 07 
    
        Interface = 0
    
        Number of endpoints = 3
    
        Class/Subclass/Protocol = 255 / 255 / 0
    
      07 05 81 03 08 00 0B 
    
        Endpoint = 1 IN
    
        Type = Interrupt
    
        Max Size = 8
    
        Polling Interval = 11
    
      07 05 82 02 00 02 00 
    
        Endpoint = 2 IN
    
        Type = Bulk
    
        Max Size = 512
    
        Polling Interval = 0
    
      07 05 03 02 00 02 00 
    
        Endpoint = 3 OUT
    
        Type = Bulk
    
        Max Size = 512
    
        Polling Interval = 0
    
    enumeration:
    
    Descriptor 4 = INTERFACE
    
    ASIXEthernet claim this=200025A0
    
    type=1
    
    vid=B95, pid=7720, bDeviceClass = 255, bDeviceSubClass = 255, bDeviceProtocol = 0
    
    numEndpoints=3
    
          interrupt_size = 8
    
          interrupt_ep = 129
    
          interrupt_interval = 11
    
          rx_size = 512
    
          rx_ep = 130
    
          rx_interval = 0
    
          tx_size = 512
    
          tx_ep = 3
    
          tx_interval = 0
    
    new_Pipe
    
    new_Pipe
    
    new_Pipe
    
    allocate_interrupt_pipe_bandwidth
    
      ep interval = 11
    
      interval = 256
    
     best_bandwidth = 3, at offset = 0
    
    Control - ASIX...
    
    Descriptor 5 = ENDPOINT
    
    Descriptor 5 = ENDPOINT
    
    Descriptor 5 = ENDPOINT
    
    control callback (asix) 1
    
    Done
    
    control callback (asix) 2
    
    Done
    
    control callback (asix) 3
    
    nodeID: 00 0E C6 59 FB D5 
    
    control callback (asix) 4
    
    Done
    
    control callback (asix) 5
    
    Done
    
    control callback (asix) 6
    
    Done
    
    control callback (asix) 7
    
    Done
    Manufacturer: ASIX Elec. Corp.
    Product: AX88772A

    so, it is chip revision A

  3. #303
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,571
    Hopefully there is a simple fix? I got two of the same from Amazon - USBDeview:
    Click image for larger version. 

Name:	ASIX_ethernetUSB.png 
Views:	4 
Size:	59.6 KB 
ID:	19036

    Amazon 'Basics' USB 2.0 version

    And another exe - USBView.exe:
    Code:
    Device Descriptor:
    bcdUSB:             0x0200
    bDeviceClass:         0xFF
    bDeviceSubClass:      0xFF
    bDeviceProtocol:      0x00
    bMaxPacketSize0:      0x40 (64)
    idVendor:           0x0B95 (ASIX Electronics Corp.)
    idProduct:          0x772B
    bcdDevice:          0x0001
    iManufacturer:        0x01
    0x0409: "ASIX Elec. Corp."
    iProduct:             0x02
    0x0409: "AX88772B"
    iSerialNumber:        0x03
    0x0409: "E225AB"
    bNumConfigurations:   0x01
    
    ConnectionStatus: DeviceConnected
    Current Config Value: 0x01
    Device Bus Speed:     High
    Device Address:       0x2E
    Open Pipes:              3
    
    Endpoint Descriptor:
    bEndpointAddress:     0x81  IN
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x0B
    
    Endpoint Descriptor:
    bEndpointAddress:     0x82  IN
    Transfer Type:        Bulk
    wMaxPacketSize:     0x0200 (512)
    bInterval:            0x00
    
    Endpoint Descriptor:
    bEndpointAddress:     0x03  OUT
    Transfer Type:        Bulk
    wMaxPacketSize:     0x0200 (512)
    bInterval:            0x00
    
    Configuration Descriptor:
    wTotalLength:       0x0027
    bNumInterfaces:       0x01
    bConfigurationValue:  0x01
    iConfiguration:       0x04
    0x0409: "0"
    bmAttributes:         0xA0 (Bus Powered Remote Wakeup)
    MaxPower:             0x64 (200 Ma)
    
    Interface Descriptor:
    bInterfaceNumber:     0x00
    bAlternateSetting:    0x00
    bNumEndpoints:        0x03
    bInterfaceClass:      0xFF
    bInterfaceSubClass:   0xFF
    bInterfaceProtocol:   0x00
    iInterface:           0x07
    0x0409: "0"
    
    Endpoint Descriptor:
    bEndpointAddress:     0x81  IN
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x0B
    
    Endpoint Descriptor:
    bEndpointAddress:     0x82  IN
    Transfer Type:        Bulk
    wMaxPacketSize:     0x0200 (512)
    bInterval:            0x00
    
    Endpoint Descriptor:
    bEndpointAddress:     0x03  OUT
    Transfer Type:        Bulk
    wMaxPacketSize:     0x0200 (512)
    bInterval:            0x00

  4. #304
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,316
    It still works for me. Amazon USB ether dongle hooked to T4B2 USB host port. Ethernet hooked to switch -> router/switch
    dongle's yellow and green LED are ON. Built/ran example ASIXEthernet_Test sketch which says:
    Code:
    USB Host InputFunctions example
    USB Ready
    Mutex initialized: 0
    Mutex initialized: 1
    TCP/IP stack initialization is done.
    
    SetMACAddress: 0050B6BE8BB4
    MulticastJoin: 333300000001
    MulticastTable: 
    0
    0
    10000000
    0
    0
    0
    0
    0
    MulticastJoin: 3333FFBEAAE2
    MulticastTable: 
    0
    1
    10000000
    0
    0
    0
    0
    0
    netif Initialized
    Initializing DHCP
    DHCP initialization done!
    IPAddress: 0.0.0.0
    SubnetMask: 0.0.0.0
    Gateway: 0.0.0.0
    DHCPServer: 0.0.0.0
    State: 2
    
    
    IPAddress: 192.168.1.132
    SubnetMask: 255.255.255.0
    Gateway: 192.168.1.1
    DHCPServer: 192.168.1.1
    State: 5
    MAC address matches sticker on dongle.

    T4 is listening for TCP on port 7007, on my linux box I do
    Code:
    ttcp -t -s -p 7007 192.168.1.132
    ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=7007  tcp  -> 192.168.1.132
    ttcp-t: socket
    ttcp-t: connect
    ttcp-t: 16777216 bytes in 5.95 real seconds = 2755.87 KB/sec +++
    ttcp-t: 2048 I/O calls, msec/call = 2.97, calls/sec = 344.48
    ttcp-t: 0.0user 0.0sys 0:05real 0% 0i+0d 740maxrss 0+2pf 280+0csw
    
    and serial monitor reports
    Megabytes: 16.777216  Seconds: 5.9730  KBits/Sec: 22470.7397
    if i plug dongle into linux, lsusb says: Bus 001 Device 004: ID 0b95:772b ASIX Electronics Corp. AX88772B
    Last edited by manitou; 02-11-2020 at 06:55 PM.

  5. #305
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,163
    Yes I had no luck with my buy.
    None of these dongles have their exact chipset published. I just hoped it was okay - the description said AX88772<- no "B" or "A" - and i did not expect a real difference.
    So, I just put it away and do other things. I try it again later, in a few weeks.

  6. #306
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,571
    Quote Originally Posted by Frank B View Post
    Yes I had no luck with my buy.
    None of these dongles have their exact chipset published. I just hoped it was okay - the description said AX88772<- no "B" or "A" - and i did not expect a real difference.
    So, I just put it away and do other things. I try it again later, in a few weeks.
    Wondering if you got the USB2 or USB3? As linked above the 'Basics' version USB 2.0 has 'black' insert block in the USB connector - as pictured on the U.S. Amazon site. I ordered two at different times - and both arrived with the same compatible chipset on them. I wanted an extra for my Surface laptop with no built in Ethernet and it worked well there too.

  7. #307
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,163
    USB 2.0 - it's not the "Basics" version, it is "Amazon's choice", and looks identical from the outside. It has a "UGREEN" printing on it.
    Amazon's choice was wrong
    https://www.amazon.de/gp/product/B00...?ie=UTF8&psc=1
    I'll send it back.
    Last edited by Frank B; 02-12-2020 at 09:32 AM.

  8. #308
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,571
    Quote Originally Posted by Frank B View Post
    USB 2.0 - it's not the "Basics" version, it is "Amazon's choice", and looks identical from the outside. It has a "UGREEN" printing on it.
    Amazon's choice was wrong
    https://www.amazon.de/gp/product/B00...?ie=UTF8&psc=1
    so close … not choice but indeed 'basics' > https://www.amazon.de/dp/B00M77HLII

  9. #309
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,163
    Quote Originally Posted by defragster View Post
    so close … not choice but indeed 'basics' > https://www.amazon.de/dp/B00M77HLII
    Ok, the Amazon Basics USB2.0 adapter works.
    Code:
    USB Host InputFunctions example
    
    USB Ready
    
    Mutex initialized: 0
    
    Mutex initialized: 1
    
    TCP/IP stack initialization is done.
    
    
    SetMACAddress: 0050B6BE8BB4
    
    MulticastJoin: 333300000001
    
    MulticastJoin: 3333FFE776CB
    
    netif Initialized
    
    Initializing DHCP
    
    DHCP initialization done!
    
    IPAddress: 0.0.0.0
    
    SubnetMask: 0.0.0.0
    
    Gateway: 0.0.0.0
    
    DHCPServer: 0.0.0.0
    
    State: 2
    
    
    
    
    
    DHCP Released
    
    Mutex released
    
    Mutex released
    
    Mutex initialized: 0
    
    Mutex initialized: 1
    
    TCP/IP stack initialization is done.
    
    
    SetMACAddress: 0050B6E776CB
    
    MulticastJoin: 333300000001
    
    netif Initialized
    
    Initializing DHCP
    
    DHCP initialization done!
    
    IPAddress: 0.0.0.0
    
    SubnetMask: 0.0.0.0
    
    Gateway: 0.0.0.0
    
    DHCPServer: 0.0.0.0
    
    State: 2
    
    
    
    
    
    IPAddress: 192.168.178.46
    
    SubnetMask: 255.255.255.0
    
    Gateway: 192.168.178.1
    
    DHCPServer: 192.168.178.1
    
    State: 5
    Thanks Good work!

  10. #310
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,163
    Do you have a simple http-request example ?

  11. #311
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    464
    I haven’t done much work with it outside of TCP, this whole project was just because I needed faster TCP than I could get with a w5500 for a custom euphonix controller.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •