dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

HLF1081A USB-OTG to LAN

Fri Jun 02, 2017 2:33 pm

Hi - Trying to find out if a "HLF1081A NO:9700" Micro USB 2.0 to Ethernet 10/100 RJ45 Network LAN Adapter will work on Raspbian. Currently I do not owe a PiZERO therefore like to find out if one uses this adapter succesfully and moreover which kernel driver is being used, ( r8152 ) ? Cheers

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: HLF1081A USB-OTG to LAN

Fri Jun 02, 2017 2:51 pm

dolphs wrote:Hi - Trying to find out if a "HLF1081A NO:9700" Micro USB 2.0 to Ethernet 10/100 RJ45 Network LAN Adapter will work on Raspbian. Currently I do owe a PiZERO therefore like to find out if one uses this adapter succesfully and moreover which kernel driver is being used, ( r8152 ) ? Cheers
Confused by post title, what has USB-OTG got to do with using a USB to RJ45 Adaptor ?


It would appear that the USB-RJ45 Adaptor uses a Asix Chipset which is supported in a fully updated Raspbian Jessie.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Fri Jun 02, 2017 2:55 pm

Hi - Thanks for your reply . Please note this one has a Micro USB 2.0 to Ethernet RJ45 Network LAN Adapter which I like to connect directly ( thus without USB to micro-USB converter ) to my PiZERO. Anyway ASIX should be good too! thanks again

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Fri Jun 09, 2017 2:01 pm

looks like the USB dongle gets identified as " ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter " on my Linux Distro ( Mint 18.1 ) - will find out shortly if it will be detected on my RPi ( with Raspbian ) and if it does, will it be stable for VPN ( referring to buggy drivers/ etc ).

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: HLF1081A USB-OTG to LAN

Fri Jun 09, 2017 2:15 pm

dolphs wrote:looks like the USB dongle gets identified as " ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter " on my Linux Distro ( Mint 18.1 ) - will find out shortly if it will be detected on my RPi ( with Raspbian ) and if it does, will it be stable for VPN ( referring to buggy drivers/ etc ).
viewtopic.php?f=46&t=175596&p=1120431&h ... 1#p1120431
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: HLF1081A USB-OTG to LAN

Fri Jun 09, 2017 2:23 pm

dolphs wrote:looks like the USB dongle gets identified as " ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter " on my Linux Distro ( Mint 18.1 ) - will find out shortly if it will be detected on my RPi ( with Raspbian ) and if it does, will it be stable for VPN ( referring to buggy drivers/ etc ).
The DM9601 is fully supported now and some bugs have been ironed out. It still has a USB1 interface though and can't cope with data much over 10Mb/s

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Fri Jun 09, 2017 3:13 pm

hmm where is that documented it has a USB1 interface as it is sold as USB2?
Or you mean the Linux driver has only support for 10Mbit ?
Anyway plugged it in to the PiZero and following can be seen, modules sr9700 and dm9601 loaded :

root@raspberrypi:~# uname -a
Linux raspberrypi 4.9.31+ #1005 Thu Jun 8 12:55:36 BST 2017 armv6l GNU/Linux

root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@raspberrypi:~# lsmod
Module Size Used by
cfg80211 500739 0
rfkill 21397 1 cfg80211
sr9700 6122 0
snd_bcm2835 23131 0
dm9601 7037 0
snd_pcm 95473 1 snd_bcm2835
snd_timer 22556 1 snd_pcm
snd 68400 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_gpiomem 3759 0
bcm2835_wdt 4133 0
uio_pdrv_genirq 3718 0
uio 10230 1 uio_pdrv_genirq
ipv6 367697 24


root@raspberrypi:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes





specs from vendor/seller:

Description:
Micro USB 2.0 to Ethernet RJ45 network adapter
Provides an Ethernet port for network connection
Suitable for those who don’t have an Ethernet port on their computers
Converts RJ45 female to micro USB male
Enables to connect to the internet via the USB interface
Half/full duplex 10/100Mbps operation.
Switch 10Mbps or 100Mbps network automatically
Support all USB standard commands
Compliant to USB interface version 1.0/1.1/2.0
Support suspend/resume detection logic
Support 10Mbps and 100Mbps N-way auto-negotiation operation.
Integrated Fast Ethernet Mac, physical clip and transceiver in one chip
Powered by USB port, no external power required
Not need CD driver
Cable Length: 15 cm
Dimension: 65 x 20 x 15 mm
Net Weight: 18 g
Color: White
System support: Windows/2000/2003/XP/Vista/7/Linux/Win CE(5.0 6.0)/ANDROID(2.1 2.2 2.3 4.0)/MAC

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 6:59 am

Hi,

Coming back to
rpdom wrote:The DM9601 is fully supported now and some bugs have been ironed out. It still has a USB1 interface though and can't cope with data much over 10Mb/s
Is this for all USB OTG devices on the RPiZ as I quickly tested a Realtek 8152 device, but iperf did not show more than 12,5M/bit which is close to USB1.1 speed. Hopefully this can be tuned close to 100M/bit


:~$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

[ 5] local 192.168.20.11 port 5001 connected with 10.8.0.1 port 39176
[ 5] 0.0-31.1 sec 46.1 MBytes 12.4 Mbits/sec

# below PiZero Realtek device connected
iperf -c 192.168.20.11 -t30 -P1

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 8:15 am

dolphs wrote:
rpdom wrote:The DM9601 is fully supported now and some bugs have been ironed out. It still has a USB1 interface though and can't cope with data much over 10Mb/s
Is this for all USB OTG devices on the RPiZ as I quickly tested a Realtek 8152 device, but iperf did not show more than 12,5M/bit which is close to USB1.1 speed. Hopefully this can be tuned close to 100M/bit
No, just the DM9601.
The RTL8152 is a full USB2.0 device supporting 480Mb/s. The ARM in the Pi zero isn't powerful enough to maintain full USB2.0 rates, but it should be able to go a bit faster than 12.5Mb/s (which is about twice what I'd expect from a USB1.1 device).

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 8:35 am

that is a pity, though 25Mbit should be fine in my case.

Therefore I tested a 2nd vpn, which is identical configured as the RPiZ but running on a RPi2.
That shows indeed the results as expected ( note my upload speed is max 27.0Mbit/s ):


iperf -c 192.168.20.11 -t30 -P1
------------------------------------------------------------
Client connecting to 192.168.20.11, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 3] local 10.8.0.1 port 42968 connected with 192.168.20.11 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-30.1 sec 93.1 MBytes 26.0 Mbits/sec



The other way round measured is roughly 30Mbit ( while 100Mbit/s ) is the maximum:

iperf -s ( to 192.168.10.57 with settings -t30 -P1 )
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.10.57 port 5001 connected with 10.8.0.2 port 36506
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.7 sec 113 MBytes 31.0 Mbits/sec


If similar could be achieved with the RPiZ ( r8152 ) that would be great.

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 9:04 am

indeed omitting the VPN things look quite different I can confirm rt8152 is 100M/bit.
Did a quick test between RpiZ and RPi2

root@rpivpn01:~# iperf -c 192.168.10.57 -t30 -P1
------------------------------------------------------------
Client connecting to 192.168.10.57, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.10.59 port 51286 connected with 192.168.10.57 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-30.0 sec 337 MBytes 94.3 Mbits/sec

root@rpivpn01:~# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.10.61 port 5001 connected with 192.168.10.57 port 39284
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.3 sec 339 MBytes 94.1 Mbits/sec

dolphs
Posts: 21
Joined: Mon Jan 06, 2014 11:57 am

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 9:09 am

and to be on topic again ...
Please dont buy this HLF1081A adapter if you expect 100Mbit speeds it will disappoint you greatly.

below shows why:

pi@rpivpn01:~ $ iperf -c 192.168.10.57 -t30 -P1
------------------------------------------------------------
Client connecting to 192.168.10.57, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.10.61 port 33738 connected with 192.168.10.57 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-30.1 sec 18.5 MBytes 5.16 Mbits/sec


pi@rpivpn01:~ $ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.10.61 port 5001 connected with 192.168.10.57 port 39286
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.2 sec 24.4 MBytes 6.77 Mbits/sec

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: HLF1081A USB-OTG to LAN

Sat Jun 10, 2017 3:28 pm

dolphs wrote:and to be on topic again ...
Please dont buy this HLF1081A adapter if you expect 100Mbit speeds it will disappoint you greatly.

below shows why:

pi@rpivpn01:~ $ iperf -c 192.168.10.57 -t30 -P1
------------------------------------------------------------
Client connecting to 192.168.10.57, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.10.61 port 33738 connected with 192.168.10.57 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-30.1 sec 18.5 MBytes 5.16 Mbits/sec


pi@rpivpn01:~ $ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.10.61 port 5001 connected with 192.168.10.57 port 39286
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.2 sec 24.4 MBytes 6.77 Mbits/sec
Actually this one does work, see: https://www.jeffgeerling.com/blogs/jeff ... networking


Realtek Chipsets RTL8152 USB2 & RTL8153 USB3 they work good.


If you can buy from Google this is a neat PSU / Ethernet: https://store.google.com/product/ethern ... chromecast


.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Return to “Raspberry Pi OS”