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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MiniZed Hardware Design MiniZed wifi not connecting
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 325 subscribers
  • Views 1027 views
  • Users 0 members are here
Related

MiniZed wifi not connecting

chrisp_002
chrisp_002 over 7 years ago

Hi all,

 

Having trouble getting the MiniZed wifi to connect to anything. I've flashed the eMMC with stock image, and adjusted the wpa_supplicant at location..

/run/media/mmcblk1p1/wpa_supplicant

After doing this, I nativate to..

/usr/local/bin

Then I run the wifi.sh script at the above location. All I'm getting is 'Sending Discover', which repeats infinitely.

The ssid and psk entered into wpa_supplicant are both 100% correct, and the format of the document is the same as specified in the MiniZed getting started guide.

Any help would be appriciated! 

 

Cheers, 

Chris.

  • Sign in to reply
  • Cancel
  • jafoste4
    0 jafoste4 over 7 years ago

    Hi Chris,

    please post your wpa_supplicant come text. Feel free to ***** our your ssid and password

    —josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chrisp_002
    0 chrisp_002 over 7 years ago in reply to jafoste4

    Hi Josh,

    My wpa_supplicant currents reads as follows, the  " " marks are included in the actual document.

     

    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    update_config=1
    
    network={
    
             key_mgmt=WPA-PSK
             ssid="SomeAccessPoint"
             psk="password"
    
    }

     

    Cheers,

    Chris.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 7 years ago

    Hello Chris,

    Could you show some logs to help with diagnosing this?  After reset, to show what you are running, enter

    cat /proc/version

    Then please show the commands you enter and the results .

    Thank you,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 7 years ago

    Hi Chris,

    What are you using as your Wifi? Can you try using your Phone as  hotspot to the device?

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chrisp_002
    0 chrisp_002 over 7 years ago in reply to jafoste4

    I've tried connecting to a standard 2.4GHz router, and a rapsberry pi set up as an access point. I can connect to both using other devices.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 7 years ago

    Hi Chris,

    Were you able to do what was described by Stefan above?

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chrisp_002
    0 chrisp_002 over 7 years ago

    I've managed to sort out this problem for now.

    I'm not longer using the wifi.sh script and bypassing wpa_supplicant. I'm now bringing up the wlan0 interface myself and using the command 'iw dev wlan0 connect' to make a connection to AP.

     

    Thanks for the replies,

    Chris.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • stefanrousseau
    0 stefanrousseau over 7 years ago

    Hello Chris,

    It is great that your problem is resolved.  It woulkd be useful if you could please post the exact commands you are using instead of using the commands in wifi.sh.  Others who find this forum post and have the same issue that you were experiencing would value the detail.

    Thank you,

    Stefan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • chrisp_002
    0 chrisp_002 over 7 years ago in reply to stefanrousseau

    stefanrousseau, Good call.

    This is the small script I used to connect to an access point over wifi.

     

    #Wifi startup script

    #Bring up wlan0
    ifconfig wlan0 up
     
    #First initialize wlan0 and connect to AP
    iw dev wlan0 connect -w ssidOfNetworkGoesHere!
     
    #Now start UDHCPC client side
    udhcpc -i wlan0
     
     
     
     
    Cheers,
    Chris.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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