External USB WiFi antenna

Discussion in 'UDOO NEO' started by Maurice, Oct 2, 2016.

  1. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I have my Neo in the garage, but it looks like it is loosing WiFi connection around every few days. I unplug and re-plug power to get it working again, but of course this is not what I want. It doesn't seem that the Neo itself hangs, as the indicator system I've made still works.

    I'm hoping that connecting a stronger external antenna will solve it. I'm not a tinkerer who is capable of soldering a WiFi antenna onto the board, which I know is possible.

    Would connecting any external WiFi dongle+antenna work? It is running the official distro of UDOO.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Why not? Only buy a usb dongle that is linux compatible. And be sure the build in wifi is switched off to be sure signals will not interfere.
     
  3. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hello @Maurice, the board sometimes loses Wi-Fi connection, just like any computer :p Of course a Wi-Fi antenna will make it better. Unfortunately I have no trusted Wi-Fi antenna to suggest you.
     
  5. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The wifi shouldn't be losing its connection every few days as stated by Maurice. Wifi should be rock solid for weeks if not months, if there is a problem then it may be driver related.

    I agree with your concerns, depending on the kernel version the driver to you acquire may or may not be stable for a wifi adapter. I'm currently testing with a RT5370 wifi adapter and the results have been mixed in AP mode. As well as the kernel drivers, you may also need to source the latest or stable firmware.

    Sadly the NEO never came with the U.FL connector soldered which would have a made it easier to attach an external antenna.
     
    Last edited: Oct 3, 2016
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  7. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I'm trying out a small WiFi dongle that I had lying around. The dongle works when I plug it into a RaspPi, and a Ubuntu based laptop.
    The Neo sees the dongle:
    udooer@udooneo:~$ lsusb
    Bus 001 Device 003: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter


    AFAIK the drivers could be found:
    udooer@udooneo:~$ lsmod
    Module Size Used by
    rt2800usb 16114 0
    rt2800lib 76387 1 rt2800usb
    rt2x00usb 11244 1 rt2800usb
    rt2x00lib 41300 3 rt2x00usb,rt2800lib,rt2800usb


    ifconfig does not list the dongle
    iwconfig lists the dongle with:
    wlan1 no wireless extensions.

    ip link shows the following:
    udooer@udooneo:~$ ip link show wlan1
    5: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0f:55:a8:b5:d3 brd ff:ff:ff:ff:ff:ff



    If I try to change the state to 'UP' I get a 'no such file or directory' error
    udooer@udooneo:~$ sudo ip link set wlan1 up
    RTNETLINK answers: No such file or directory


    I noticed on Neo's GUI when I select the Network connection it says: 'device not managed' and 'device not ready (firmware is missing)'.

    So, wrong drivers? How to know which drivers are right?
     
  8. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    You also need to ensure you have the firmware installed otherwise the drivers will fail to load.

    See here about installing the firmware.
     
  9. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    @jas-mx, thanks! This solved it.

    udooer@udooneo:~$ sudo apt-get install firmware-ralink
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    firmware-ralink
    0 upgraded, 1 newly installed, 0 to remove and 82 not upgraded.
    Need to get 22.8 kB of archives.
    After this operation, 103 kB of additional disk space will be used.
    Get:1 http://repository.udoo.org/ udoobuntu/main firmware-ralink all 0.44 [22.8 kB]
    Fetched 22.8 kB in 0s (46.9 kB/s)
    Selecting previously unselected package firmware-ralink.
    (Reading database ... 86245 files and directories currently installed.)
    Preparing to unpack .../firmware-ralink_0.44_all.deb ...
    Unpacking firmware-ralink (0.44) ...
    Setting up firmware-ralink (0.44) ...
     
  10. Vinz87

    Vinz87 UDOOer

    Joined:
    Nov 11, 2015
    Messages:
    105
    Likes Received:
    19
    I use a script that every 10 mins checks for internet connectivity, if it results offline it automatically turns off and on wifi, if next time is still offline it reboots the Neo.
    I'm monitoring its behaviour and it seems working pretty well, a few times a reboot occurs, but most of the times a wifi restart is sufficient to make it up and running again. This without human interaction.
     
    Andrea Rovai likes this.
  11. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I have replaced my test antenna with a different one. I'm back at square one.
    lsusb shows the device;
    Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
    On a support page of Debian I can find some instructions, and as far as I can understand the 8188 is not intel only supported, so it should work. It does work on my Intel laptop.

    The page states "
    Non-free firmware is required for all drivers, which can be provided by installing the firmware-realtek package. RTL8192U firmware is currently not packaged (588142)."

    However, if I try to install the firmware-realtek package I get the following error:
    udooer@udooneo:~$ sudo apt-get install firmware-realtek
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package firmware-realtek


    And then I'm stuck... :-(
     
  12. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  13. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Hmm he did not got it working, but the topic gives a lot of hints.
     
  14. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    @waltervl, it is plug and play on my Ubuntu 16 laptop, but not on the Neo...
     
  15. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @Maurice ,
    if your PC has Ubuntu 16 and the antenna works it justs a problem of drivers. Have you written/ported/found the drivers?
    Moreover, are you using Android or Linux on UDOO Neo?
     
  16. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    You will need to right kernel drivers built into your kernel for this to work (along with necessary firmware). For x86 the prebuilt kernels include driver support for a wide range of perpherials. Whether they always work or not is another story.

    @waltervl I suggest you don't always post links without first understanding what is the problem is or context of the question. This can cause more confusion.
     
  17. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I know, just trying to help if no one is helping with more knowledge than me. I can only answer the dumb questions.
     
    Maurice and Andrea Rovai like this.
  18. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I'm using the Linux Neo, the latest release on the website. I haven't tried to compile the drivers. I'm kind of afraid to sink into a deeper quicksand, where I have to install complete toolchains in order to get it up and running.... And many vague webpages just not explaining the entire story...
     

Share This Page