pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
337 stars 209 forks source link

Can't access the web application after loading the alpin linux #830

Closed ssooffiiaannee closed 5 years ago

ssooffiiaannee commented 5 years ago

Description of the setup:

Description of the problem:

After copying the alpine linux into the SD card, when I try to run the web application using my browser and typing rp-fxxxxx.local , it doesn't work, but it worked fine when I loaded the image in the red pitaya website.

alandong93 commented 5 years ago

I believe Pavel's Alpine Linux OS does not have a web interface like the original OS does.

Edit: My mistake. I had forgotten because I use the auto-start bash script. Thank you for correcting me!

pavel-demin commented 5 years ago

@alandong93, my SD card images based on Alpine Linux do have a web interface.

@ssooffiiaannee, please provide more information. What SD card image are you using? What is your network setup?

If I use the red-pitaya-alpine-3.9-armv7-20190215.zip SD card image, my web browser connects to rp-f0xxxx.local without any problem (f0xxxx should be changed to the last 6 characters from the MAC address written on the Ethernet connector of the Red Pitaya board).

You can find more details about the SD card image based on Alpine Linux at this link.

ssooffiiaannee commented 5 years ago

I've put the zip file's content into the sd card, I did rp-f0xxxx into my web browser, nothing happens, the led is blinking on the red pitaya, It works when I load the image provided in red pitaya website.

pavel-demin commented 5 years ago

The information that you provide is still not sufficient for me to understand and reproduce the problem.

Are you using red-pitaya-alpine-3.9-armv7-20190215.zip or your custom built SD card image?

How is the Red Pitaya board connected to your network? Do you have a router, a DHCP server?

If the rp-fxxxxx.local address doesn't work, maybe you could try using the IP address of the board?

If the image from the Red Pitaya website works for you, maybe the easiest solution would be to continue using this image. With this image, the MCPHA application can be installed via the application marketplace.

ssooffiiaannee commented 5 years ago

I connected it directly to my pc, I can't find its ip address. I'm using two sd cards, one with the image from red pitaya website, the other with the zip file you provided.

pavel-demin commented 5 years ago

Please make an effort and try to answer all the questions from my previous comment and please do read what is already written in my notes at the following link: http://pavel-demin.github.io/red-pitaya-notes/alpine/

ssooffiiaannee commented 5 years ago

Now I'm using the OS provided by the RP website, I'm trying to download the mcpha project from application marketplace, but the RP needs access to the internet

"RedPitaya is offline and cannot access the server!Please follow quick start instructions to put it online."

and I don't know how to make the configurations. Even though I made the configurations in the RP website here : https://redpitaya.readthedocs.io/en/latest/quickStart/quickStart.html

I directly wired my RP to the PC, and I'm using windows 10 When I try to make an update of my OS I get: Your redpitaya currently offline, May I have to have a usb dongle for wifi connection?

pavel-demin commented 5 years ago

If you can't provide detailed answers to all my previous questions (the phrases with a question mark at the end), then I don't have enough information to help you.

ssooffiiaannee commented 5 years ago

1-I'm using this image : https://redpitaya.readthedocs.io/en/latest/quickStart/SDcard/SDcard.html, I'll try to download the projects from application marketplace(as you said it may work). 2-The red pitaya is directly connected to my ethernet socket (to my PC). 3- In this case, I can access the RP with rp-0xxxx, but my problem now is that the RP can't access internet

pavel-demin commented 5 years ago

Thanks for your effort. However, I need more information about your network setup. Don't hesitate to provide as much details as you can. Do you have an Internet connection? If yes, then how it's done? Do you have a network router?

ssooffiiaannee commented 5 years ago

Thank you, you have been of great help. Yes I do have internet connection, yes I do have a network router, but I don't know what you mean by how it's done. When you try to upload that same image to the sd card, and plugging the RP into the pc, does it have internet connection immediatedly?

pavel-demin commented 5 years ago

yes I do have a network router,

Then why you don't connect both PC and Red Pitaya board to the router as it's shown in the Red Pitaya documentation?

I don't know what you mean by how it's done.

I mean how PC, Red Pitaya, network router and Internet are connected to each other and how the network interfaces are configured on your PC.

When you try to upload that same image to the sd card, and plugging the RP into the pc, does it have internet connection immediately?

It depends on how the PC is configured. If I'm not mistaken, Windows 10 is by default configured to not provide the Internet connection to the devices connected to the Ethernet ports of the PC.

ssooffiiaannee commented 5 years ago

The pc is connected by wifi, and I connected the RP to the router. I can't even access the web page by doing that.

pavel-demin commented 5 years ago

This is strange.

Anyway, if the router doesn't work, then the only solution that I can think about is to connect Red Pitaya directly to your PC as you did before and to enable the Internet connection sharing as it's explained in this article or in many other articles that can be easily found with a web search engine.

Rolf-L commented 5 years ago

Could be that the PCs IP-section is outside of the IP-adress of your RP? this tool could help to figure out it: https://www.softperfect.com/products/networkscanner/

ssooffiiaannee commented 5 years ago

Thank your for all of your help, It turns out that I'm in a protected local network, my PC does not have network previleges to share network connection, so when I used another computer, it worked very well, sorry for all of the time I took from you. and again, thank you !!