Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: RPi 3 Set-up

  1. #1
    Join Date
    Jan 2007
    Location
    Portsmouth
    Posts
    1,144

    Default RPi 3 Set-up

    As reported in a previous thread I am now the owner of a new RPi 3 courtesy of Secret Santa (who can obviously read Radio Spares part numbers).

    So far I've got OpenPlotter running headless using a laptop or tablet when needed for display and control.

    I've connected NMEA2000 (Simnet) data on the boat via Actisense through USB Manager and NMEA0183 to OpenCPN and can see all instrument data in Dashboard with AIS and GPS on the CM93 charts. So far so good.

    I've not got to grips with Node Red or any of the other good stuff yet but am well impressed with the device so far. Speed for OpenCPN is quite acceptable - faster than my old Win10 laptop, even running headless!

    So, my first question - has anyone managed to load the driver for an external wifi USB nano device? I'm trying to set-up an RTL8192 device ( so I can bridge other wifi devices to the internet) but the Makefile (I think) is failing (Error 2) because a (library?) file is missing - lib/modules/4.4.50-v7+/build: No such file). I have checked the RPi community and apparently it is a known problem. However, I'm having trouble getting any of the suggested solutions to work.

    I'm running OpenPlotter 0.10.0.

    Thoughts (and please keep it simple - I'm still learning)?
    Last edited by Playtime; 03-01-18 at 20:47.
    ------------------------------------
    Loves sailing, hates gardening

  2. #2
    Join Date
    Jun 2013
    Location
    Hopefully somewhere warm
    Posts
    7,127

    Default Re: RPi 3 Set-up

    I've never had any problems with wifi dongles, so far it's been plug them in and the work stright away, not sure of the chipsets though, the dongles are all probably from within the past 2 or 3 years.

    The software is up to v0.17 now, though from 0.10 it's quite a leap with lots of software updates, not just openplotter., well worth doing though. You might need a monitor for the update, ISTR several restarts and some manual OKs to click.


    Sounds like you've done great so far

  3. #3
    Join Date
    Jan 2004
    Location
    Wiltshire
    Posts
    1,218

    Default Re: RPi 3 Set-up

    Can anybody translate the OP's post into Welsh?

  4. #4
    Join Date
    Apr 2011
    Location
    Brighton
    Posts
    4,090

    Default Re: RPi 3 Set-up

    Quote Originally Posted by Playtime View Post
    the Makefile (I think) is failing (Error 2) because a (library?) file is missing - lib/modules/4.4.50-v7+/build: No such file).
    The average user doesn't want to re-build their kernel (or bits of it) so the stuff required to do that is not normally distributed with the base OS. The name of the packages you need varies according to the flavour of linux you're using, but a little googling (I don't have a pi to hand) shows that on raspbian (which I'm guessing openplotter is based on) it's raspberrypi-kernel-headers. So....
    sudo apt-get install raspberrypi-kernel-headers
    might get you a little further BUT....are you sure you need to compile a driver for rtl8192? I believe that may be supported on the 4.4 kernel. Or are you trying to compile hostapd and the bundle it comes with includes an rtl8192 driver?

  5. #5
    Join Date
    Jan 2007
    Location
    Portsmouth
    Posts
    1,144

    Default Re: RPi 3 Set-up

    Thanks. That's interesting. I started with Openplotter (including NOOBs) direct from the sailoog site and the latest version is still 0.10.0 (beta). Is there a better way to load Openplotter, maybe separate from NOOBS? If there is and it includes the preloaded drivers for wifi dongles, then I will give it a try. Installing (compiling) drivers in Linux seems to be a major pain.
    ------------------------------------
    Loves sailing, hates gardening

  6. #6
    Join Date
    Jun 2013
    Location
    Hopefully somewhere warm
    Posts
    7,127

    Default Re: RPi 3 Set-up

    Quote Originally Posted by Playtime View Post
    Thanks. That's interesting. I started with Openplotter (including NOOBs) direct from the sailoog site and the latest version is still 0.10.0 (beta). Is there a better way to load Openplotter, maybe separate from NOOBS? If there is and it includes the preloaded drivers for wifi dongles, then I will give it a try. Installing (compiling) drivers in Linux seems to be a major pain.
    Pretty sure that's the latest officially available download - then quite a big update to V0.17.0.

    There was talk of a new image being available updated to raspbian Stretch once everything was working OK on Stretch, which sounds faster. One guy has had success upgrading to Stretch, I gave up quite quickly after burning a load of mobile data, will wait for the Openplotter guys to do the work.

    Now, interestingly, I've never had a problem with plug & play wifi dongles....... until now!
    From memory I haven't ever had to mess around with drivers for anything on Openplotter/Raspbian... until now maybe

    Got one from maplin the other day which doesn't seem to be loading, from dmesg in a console -

    Code:
    [  335.968488] usb 1-1.5.3: new high-speed USB device number 11 using dwc_otg[  336.099714] usb 1-1.5.3: New USB device found, idVendor=2357, idProduct=0109
    [  336.099729] usb 1-1.5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  336.099737] usb 1-1.5.3: Product: 802.11n NIC 
    [  336.099745] usb 1-1.5.3: Manufacturer: Realtek 
    [  336.099753] usb 1-1.5.3: SerialNumber: 00e04c000001
    The other smaller nano works fine -

    Code:
    [  579.131167] usb 1-1.5.3: USB disconnect, device number 11[  595.809988] usb 1-1.5.2: new high-speed USB device number 12 using dwc_otg
    [  595.958297] usb 1-1.5.2: New USB device found, idVendor=148f, idProduct=5370
    [  595.958311] usb 1-1.5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  595.958320] usb 1-1.5.2: Product: 802.11 n WLAN
    [  595.958328] usb 1-1.5.2: Manufacturer: Ralink
    [  595.958336] usb 1-1.5.2: SerialNumber: 1.0
    [  596.069947] usb 1-1.5.2: reset high-speed USB device number 12 using dwc_otg
    [  596.210848] ieee80211 phy2: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
    [  596.237113] ieee80211 phy2: rt2x00_set_rf: Info - RF chipset 5370 detected
    [  596.237888] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
    [  597.334767] ieee80211 phy2: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
    [  597.334881] ieee80211 phy2: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
    [  619.188755] w1_master_driver w1_bus_master1: Family 0 for 00.d00000000000.57 is not registered.
    [  622.837252] wlan1: authenticate with a2:39:f7:5f:3f:da
    [  622.878286] wlan1: send auth to a2:39:f7:5f:3f:da (try 1/3)
    [  623.064794] wlan1: authenticated
    [  623.070545] wlan1: associate with a2:39:f7:5f:3f:da (try 1/3)
    [  623.180088] wlan1: associate with a2:39:f7:5f:3f:da (try 2/3)
    [  623.310151] wlan1: associate with a2:39:f7:5f:3f:da (try 3/3)
    [  623.530052] wlan1: association with a2:39:f7:5f:3f:da timed out
    [  638.919754] wlan1: authenticate with a2:39:f7:5f:3f:da
    [  638.995211] wlan1: send auth to a2:39:f7:5f:3f:da (try 1/3)
    [  639.014617] wlan1: authenticated
    [  639.020184] wlan1: associate with a2:39:f7:5f:3f:da (try 1/3)
    [  639.039350] wlan1: RX AssocResp from a2:39:f7:5f:3f:da (capab=0x431 status=0 aid=1)
    [  639.046018] wlan1: associated
    ps - If you haven't found it yet the Openplotter forums are a good place for problem solving Openplotter issues -
    http://forum.openmarine.net/

    And googling for 'Product: 802.11n NIC problem raspbian' came up with a load of stuff to do with my not working dongle - maybe get the product info from dmsg & search for that?

    Code:
    dmesg | grep Product:
    Last edited by GHA; 04-01-18 at 10:20.

  7. #7
    Join Date
    Jan 2007
    Location
    Portsmouth
    Posts
    1,144

    Default Re: RPi 3 Set-up

    Thanks GHA - useful stuff as ever.

    Trying to compile the wifi dongle driver seemed to mess up OP 0.10.0 so I have now reloaded 0.10.0 and then immediately updated OpenCPN (to 4.8.0), Raspian (to Linux openplotter 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux), and OpenPlotter to 0.17.0. It all seems to work fine, except there is still no sign of the USB wifi dongle (although it's plugged in). I'll try doing dmesg etc as you suggest above and see what that shows.

    BTW the dongle is fairly new (bought 6 months ago) and is an AddOn AWU650. It was working OK on my desktop machine. If there is a problem with this device I will buy a new one that is known to work. Can you suggest a dongle that work out of the box? Thanks
    ------------------------------------
    Loves sailing, hates gardening

  8. #8
    Join Date
    Jan 2007
    Location
    Portsmouth
    Posts
    1,144

    Default Re: RPi 3 Set-up

    Right - I've now done the DMESG as you suggested and received the following response

    pi@openplotter:~ $ dmesg | grep Product:
    [ 0.791543] usb usb1: Product: DWC OTG Controller
    [ 2.236464] usb 1-1.2: Product: USB Keyboard
    [ 2.636502] usb 1-1.4: Product: 802.11ac WLAN Adapter
    [ 2.870152] usb 1-1.5: Product: USB OPTICAL MOUSE

    Question - is the WLAN Adapter on 1-1.4 the dongle or the built-in wifi adapter? If it's the dongle, how do I get it activated? I'm nervous about trying the run the install.sh that was supplied with the dongle as it seemed to screw up the system yesterday. It took several hours today to rebuild and update everything!
    ------------------------------------
    Loves sailing, hates gardening

  9. #9
    Join Date
    Jun 2013
    Location
    Hopefully somewhere warm
    Posts
    7,127

    Default Re: RPi 3 Set-up

    Quote Originally Posted by Playtime View Post
    Right - I've now done the DMESG as you suggested and received the following response

    pi@openplotter:~ $ dmesg | grep Product:
    [ 0.791543] usb usb1: Product: DWC OTG Controller
    [ 2.236464] usb 1-1.2: Product: USB Keyboard
    [ 2.636502] usb 1-1.4: Product: 802.11ac WLAN Adapter
    [ 2.870152] usb 1-1.5: Product: USB OPTICAL MOUSE

    Question - is the WLAN Adapter on 1-1.4 the dongle or the built-in wifi adapter? If it's the dongle, how do I get it activated? I'm nervous about trying the run the install.sh that was supplied with the dongle as it seemed to screw up the system yesterday. It took several hours today to rebuild and update everything!
    More money on a cd card reader & spare SD card helps.. Or back up the card on windows, win32sdiskimager seems to be the most popular prog to back up Pi SD cards. Or there's an SD card copier in the accessories menu n Raspbian.

    That certainly looks like the dongle in dmesg, mine came up with different text for different dongles.

    I've a new spare Pi so might try installing start to finish headless with the not working dongle I now have just to see what happens, something came up about drivers on GIT for it.

    List here of what should work...
    https://elinux.org/RPi_USB_Wi-Fi_Adapters

  10. #10
    Join Date
    Jan 2007
    Location
    Portsmouth
    Posts
    1,144

    Default Re: RPi 3 Set-up

    There is definitely a general problem on Linux with the dongle I've got; it's not just an RPi issue. There is a lot on the web about it - probably the best source of potential solutions I've found is here.

    However, the simplest solution for me will be to buy a different £10 dongle and return the one that doesn't work to it's home on my desktop machine. A quick trip to Novatech tomorrow methinks.
    ------------------------------------
    Loves sailing, hates gardening

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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

Find Boats For Sale

to
to