Cannot connect to wifi via terminal with Wifi Module 4

Post Reply
ClownBaby
Posts: 2
Joined: Wed Mar 07, 2018 12:12 am
languages_spoken: english, swedish
ODROIDs: odroid xu4
Contact:

Cannot connect to wifi via terminal with Wifi Module 4

Unread post by ClownBaby » Wed Mar 07, 2018 12:52 am

Hello all!

I have recently run in to a problem that I cannot solve.

For a project I am working on I want to be able to connect to wifi via only the terminal so I don't have to connect a monitor to the odroid. As wifi adapter I am using odroid wifi module 4. Connecting via the regular network manager is no problem and when inspecting it I can see that the correct driver (RT2800USB) is in use. When disabling network manager and using

sudo iwconfig

I only get "no wireless extension" for wlan0 (which I know it is since when i unplug the module wlan0 disappears). When researching this problem I only encounter people who hasn't installed the driver properly or that they haven't turned the wifi adapter on via sudo ifconfig [client] up. I have done all these steps but it still doesn't work.

Does anyone have any good ideas how to turn the module on in software? Or make the odroid recognize it as a wireless unit.

Thanks in advance
Adam

User avatar
mad_ady
Posts: 5096
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: Cannot connect to wifi via terminal with Wifi Module 4

Unread post by mad_ady » Wed Mar 07, 2018 1:05 am

You can still use networkmanager via nmcli.

User avatar
odroid
Site Admin
Posts: 29367
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Cannot connect to wifi via terminal with Wifi Module 4

Unread post by odroid » Wed Mar 07, 2018 9:47 am

If you use a minimal image for headless application, refer this guide too.
https://wiki.odroid.com/troubleshooting ... wifi_setup

ClownBaby
Posts: 2
Joined: Wed Mar 07, 2018 12:12 am
languages_spoken: english, swedish
ODROIDs: odroid xu4
Contact:

Re: Cannot connect to wifi via terminal with Wifi Module 4

Unread post by ClownBaby » Wed Mar 07, 2018 4:54 pm

Thank you mad_ady! That did the trick, cannot believe i never found that command.

I used:

nmcli c

to find my network and:

nmcli device wifi con "SSID" password "PASSWORD"

to connect and that worked like a charm.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest