Page 1 of 2

Wi-Fi configuration with Alpine Linux

Posted: Wed Nov 29, 2017 3:14 pm
by pavel
The beginning of this discussion can be found at this link.
amin wrote: My network setup is " wifi laptop - wifi hotspot- wifi redpitaya ".
Is your USB Wi-Fi adapter connected to Red Pitaya recognized by the OS running on Red Pitaya? Have you switched your Red Pitaya to the client Wi-Fi mode as explained at this link? If not, do you see the RedPitaya hotspot from your PC?

Re: Wi-Fi configuration with Alpine Linux

Posted: Wed Nov 29, 2017 3:40 pm
by amin
Pavel,

Thank you for making new thread.
Have you switched your Red Pitaya to the client Wi-Fi mode as explained at this link?
Should i setting client wi-fi mode using Alpine linux?
oh dear, i should learn Alpine linux first.
you know, i did not have experience deeply about linux.
OK, i will learn to make bootable USB first.
After that i will inform you later.

Thank you very much.
I learn many project from you.

Regards,

Re: Wi-Fi configuration with Alpine Linux

Posted: Wed Nov 29, 2017 5:46 pm
by pavel
Should i setting client wi-fi mode using Alpine linux?
I'm not sure if I understand this question.

Switching to the client Wi-Fi mode can be done in two relatively easy steps:
  1. Connect to the Red Pitaya command line interface via SSH as described at this link. For the SD card image based on Alpine Linux, the login is root and the password is changeme.
  2. Type the first three commands from this link. Here is a copy of these commands:

    Code: Select all

    wpa_passphrase SSID PASSPHRASE > /etc/wpa_supplicant/wpa_supplicant.conf
    ./wifi/client.sh
    lbu commit -d
    
    SSID and PASSPHRASE should be replaced with the correct parameters of your Wi-Fi network.

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 4:33 am
by amin
Pavel,

I can easily connect from the network setup (wifi PC - Wifi hotspot - wifi Redpitaya) by using sd card that contain default image of redpitaya OS 0.97-42
as you can see the image below:
redpitayaweb.PNG


But if i use your image, it is difficult to connect.
i also already using Putty and setting the login and password according as your first step:
Connect to the Red Pitaya command line interface via SSH as described at this link. For the SD card image based on Alpine Linux, the login is root and the password is changeme.
I already setting the putty with IP 192.168.42.1
But i can not connect.
So, it is imposible continue to next step ,that is, setting login and password.
I hope you can understand my problem.

Thanks and regards

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 4:35 am
by amin
Pavel,

This is my setup in putty:
putty.PNG
putty network error.PNG

Thanks and Regards

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 8:05 am
by pavel
If you want me to try to help you, then please try to answer the three questions from my first post in this forum thread. If you missed them, then here is a copy of these questions:
  • Is your USB Wi-Fi adapter connected to Red Pitaya recognized by the OS running on Red Pitaya?
  • Have you switched your Red Pitaya to the client Wi-Fi mode as explained at this link?
  • If not, do you see the RedPitaya hotspot from your PC?
With the SD card image based on Alpine Linux with the default network configuration, you have several options to connect to Red Pitaya command line interface:
  • wireless with a PC directly connected to the RedPitaya Wi-Fi hotspot
  • wired Ethernet via a router
  • wired Ethernet with a PC directly connected to the RedPitaya RJ45 port
  • wired USB with a PC directly connected to the RedPitaya USB/console port
Connecting to 192.168.42.1 only makes sense with the first option when your PC is connected to the RedPitaya Wi-Fi hotspot.
I can easily connect from the network setup (wifi PC - Wifi hotspot - wifi Redpitaya) by using sd card that contain default image of redpitaya OS 0.97-42
If you have a SD card image that works well for you, then the easiest solution would be to continue using this image.

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 8:37 am
by amin
Pavel,

I am sorry if i misunderstand with your question.
Is your USB Wi-Fi adapter connected to Red Pitaya recognized by the OS running on Red Pitaya?
Of course, it can not recognized.
you can see when i use putty, it can not connect.
Have you switched your Red Pitaya to the client Wi-Fi mode as explained at this link?
again, when i use putty, i cannot connect to my redpitaya using IP 192.168.42.1.
So, i can not continue to next step, that is, setting login and password.

If not, do you see the RedPitaya hotspot from your PC?
using command "arp -a" in command prompt, i can not see IP 192.168.42.1

i hope this answer your question.

Thanks and regards,

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 8:45 am
by amin
Pavel,

With the SD card image based on Alpine Linux with the default network configuration, you have several options to connect to Red Pitaya command line interface:

wireless with a PC directly connected to the RedPitaya Wi-Fi hotspot
wired Ethernet via a router
wired Ethernet with a PC directly connected to the RedPitaya RJ45 port
wired USB with a PC directly connected to the RedPitaya USB/console port
Connecting to 192.168.42.1 only makes sense with the first option when your PC is connected to the RedPitaya Wi-Fi hotspot.
Yes, i already know about it.
If you have a SD card image that works well for you, then the easiest solution would be to continue using this image.
you mean i can copy contain of your image ( red-pitaya-alpine-3.6-armhf-20171025.zip) into sd card OS redpitaya 0.97-42 ?

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 8:55 am
by pavel
amin wrote: i hope this answer your question.
Sorry, but it only answers the second question.

Since English isn't my native language and since it looks like we have a language related communication problem, then I'm afraid that I can't help you with this problem.

Re: Wi-Fi configuration with Alpine Linux

Posted: Thu Nov 30, 2017 9:35 am
by amin
Pavel,

I apologize for not being word-perfect in English.

I try to answer the first question and third question.
Is your USB Wi-Fi adapter connected to Red Pitaya recognized by the OS running on Red Pitaya?
If I use default image of Red Pitaya OS 0.97-42, my USB Wi-Fi adapter - Red Pitaya can recognized. i use arp -a command prompt to recognized my redpitaya IP.
but if i use your image, how to check USB Wi-Fi adapter-Red Pitaya in your OS image?
If not, do you see the RedPitaya hotspot from your PC?
I can not see IP of Red Pitaya when using your image.
I check in arp -a command prompt in my PC.


Thanks and Regards,