简体   繁体   English

USB WiFi Dongle RaspberryPi

[英]Usb WiFi Dongle RaspberryPi

I want to set raspberrypi network ssid and password over Android application. 我想通过Android应用程序设置raspberrypi网络的ssid和密码。 My problem is how can I do. 我的问题是我该怎么办。 I know command line method or raspi wifi settings in desktop. 我知道桌面中的命令行方法或raspi wifi设置。 I just want to do usb wifi dongle setting over Android app. 我只想通过Android应用设置USB wifi加密狗。

Have you tried ssh applications on android ? 您是否在Android上尝试过ssh应用程序? You can remote access Rpi if both your phone and Rpi are on the same network. 如果您的电话和Rpi都在同一网络上,则可以远程访问Rpi。 Hope it helps. 希望能帮助到你。

You can edit the configurations using command line. 您可以使用命令行编辑配置。 hope you are using Linux. 希望您正在使用Linux。

Open the wpa-supplicant configuration file in nano: 在nano中打开wpa-supplicant配置文件:

network={
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"
}

Now save the file by pressing Ctrl+X then Y, then finally press Enter. 现在按Ctrl + X,然后按Y,然后最后按Enter,保存文件。

At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. 此时,wpa-supplicant通常会在几秒钟内注意到已发生更改,并且它将尝试并连接到网络。

And if not 如果不

sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot. sudo ifdown wlan0和sudo ifup wlan0,或者使用sudo reboot重启Raspberry Pi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM