element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Difficulty setting up WiFi dongle
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 662 subscribers
  • Views 1036 views
  • Users 0 members are here
  • wifi
  • realtek
  • rtl8188cus
  • raspberry_pi
Related

Difficulty setting up WiFi dongle

Keith_Rhodes
Keith_Rhodes over 12 years ago

I recently received a few more bits and pieces: a model B board, a PiFace, a Raspian Wheezy SD card and a WiFi dongle (Farnell ref 1790361). And I'm having some trouble with the dongle: I can't get the network config GUI to set it up…

 

The dongle is plugged directly into a USB port, the other port goes to my powered external hub to which I connect a keyboard and mouse for now, and a USB memory stick if I need it. There is more than enough power to spare, and the WiFi dongle is seen by lsusb.

 

lsusb tells me

Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp, RTL8188CUS 801.11n WLAN Adapter

 

dmesg tells me

usb 1-1.3: new high-speed USB device number 6 using dwc_otg

usb 1-1.3: New USB device found, idVendor=0bda, idProduct=0608

usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-1.3:  Product: 802.11n WLAN Adapter

usb 1-1.3: Manufacturer: Realtek

usb 1-1.3:  SerialNumber: [looks like a MAC address]

 

But when I look at what modules are loaded, I see (among others)

8192cu     485042     0    

 

But I don't see a driver for the 8188 chip. So I tried loading one.

 

sudo modprobe rtl8187

 

Now there are some extra lines from lsmod.

rtl8187          49993     0

mac80211     236178     1 rtl8187

cfg80211          171957     2 mac80211 rtl8187

eeprom _93cx6     1559     1 rtl8187

 

And what really surprises me is the output from iwlist:

wlan0     Scan completed :

          Cell 01 - Address: [looks like a MAC address]

           ESSID:"SFR WiFi Public"

          Protocol:IEEE 80211.bg

          Mode:Master

          Frequency:2.462 GHz (Channel 11)

          Encryption key:off

          Bit Rates:54 Mb/s

          Quality:56 Signla level:0 Noise level:0

 

Now this is not at all what I see from my little laptop I'm using to type this post… here I see my home nework: a different ESSID, same frequency and channel, and with encryption.

 

So I don't understand a few things here… the driver must be loaded, in order to get information from iwlist, but I can't see my home network. I hope that this dongle can do 802.11b/g as well as n… that would be the first time I've seen that lack of backward compatibility.

  • Sign in to reply
  • Cancel
  • Keith_Rhodes
    Keith_Rhodes over 12 years ago

    I haven't had any time to spend on this for the last few days,

    so the lack of replies hasn't slowed me down at all. ;-)

    I moved the Raspberry Pi to the room where the modem/router is, so I

    could use an ethernet cable to connect the two together. Now the set-up is like as below

     

     

    Connected to Raspberry Pi:

              USB Hub: CP technologies powered 7  port hub

              Screen: LG M1962D, HDMI and 3.5mm audio

              Router: SFR box, through ethernet cable

     

     

              Connected to USB hub:

                        Logitech trackball and Casino AZERTY keyboard

                        SanDisk Cruzer 4GB USB key

     

     

    Power on, and the desktop appears; the digital clock in the panel is

    already set to the correct time and date.

     

     

    Start Midori, point it at http://news.bbc.co.uk and the News site appears.

     

     

    Plug SanDisk media player (running Rockbox) into the USB hub;

    both the internal memory and the micro SD card are detected.

    There seem to be no player applications installed yet.

     

     

    Plug the LM006 WiFi dongle into the Rapsberry Pi's remaining USB port; the computer reboots!

    Everything is detected again and the clock is correct again.

     

     

    Start Midori; the BBC news page was remembered in the history and loads again.

     

     

    pi@raspberrypi ~ $ lsusb

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

    Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

    Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB

    Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB

    Bus 001 Device 007: ID 0781:7421 SanDisk Corp. Sansa E200 Series (msc)

    Bus 001 Device 008: ID 0781:5530 SanDisk Corp. Cruzer

    Bus 001 Device 009: ID 1a2c:0021 

    Bus 001 Device 010: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)

     

     

    Send the output from dmesg to a text file to make things easier to find.

    pi@raspberrypi ~ $ dmesg >> /media/C816-B6DA/dmesg.txt

     

     

    Now looking in that file...

    [    3.423344] usb 1-1.2: new high-speed USB device number 4 using dwc_otg

    [    3.555362] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8176

    [    3.567389] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [    3.579823] usb 1-1.2: Product: 802.11n WLAN Adapter

    [    3.589853] usb 1-1.2: Manufacturer: Realtek

    [    3.599162] usb 1-1.2: SerialNumber: 00e04c000001

     

     

    Look at which kernel modules are loaded.

    pi@raspberrypi ~ $ lsmod

    Module                  Size  Used by

    snd_bcm2835            12808  0

    snd_pcm                74834  1 snd_bcm2835

    snd_seq                52536  0

    snd_timer              19698  2 snd_seq,snd_pcm

    snd_seq_device          6300  1 snd_seq

    snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835

    snd_page_alloc          4951  1 snd_pcm

    8192cu                485042  0

    evdev                   8682  8

    joydev                  9102  0

     

     

    Use Midori to do a "duck duck go" search for "RTL8188CUS" finds me a page on raspberrypi.org.

    http://www.raspberrypi.org/phpBB3/viewtopic.php?t=6256

    This has an automated script to set up Realtek RTL8188CUS based wifi adapters.

     

     

              "The instructions are available at: http://dl.dropbox.com/u/80256631/install-rtl8188cus.txt

              and the script at http://dl.dropbox.com/u/80256631/install-rtl8188cus.sh"

     

     

     

     

    Download the script and save it to the boot SD card.

    pi@raspberrypi ~ $ sudo wget http://dl.dropbox.com/u/80256631/install-rtl8188cus-latest.sh \

    -O /boot/install-rtl8188cus-latest.sh

    Resolving dl.dropbox.com (dl.dropbox.com)... 23.21.249.25

    Connecting to dl.dropbox.com (dl.dropbox.com)|23.21.249.25|:80... connected.

    HTTP request sent, awaiting response... 200 OK

    Length: 58361 (57K) [text/x-sh]

    Saving to: `/boot/install-rtl8188cus-latest.sh'

     

     

    100%[============================================================>] 58,361       197K/s   in 0.3s   

     

     

    2013-03-25 10:41:21 (197 KB/s) - `/boot/install-rtl8188cus-latest.sh' saved [58361/58361]

     

     

     

     

    Looking in the instructions there is this worrying warning

              "If you are installing your first wifi adapter or adding a new wifi adapter to a Pi that

              already has a different one installed the driver should be installed BEFORE plugging in the

              new wifi adapter.

     

     

              DO NOT PLUG IN THE WIFI ADAPTER UNTIL ASKED TO - LOOK AT THE SCREEN OUTPUT FOR INSTRUCTIONS."

     

     

    The last time I tried to plug in the WiFi dongle while the Pi was running, it rebooted…

    so I'm naturally wary of doing that again.

     

     

    Well, I've downloaded the script, I'll take a quick look and do as the instructions say, at the risk of

    rebooting the Raspberry Pi like the previous time. But to try to avoid that, I'll plug it into the

    hub, rather than directly into the Pi's USB port.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube