Raspberry Pi - Network cannot connect on one wifi connection, but can another - networking

I setup my raspberry pi with a wifi connection (from a wifi extender), and had no issues. I could connect to the internet, everything was great.
I then changed my wifi extender, so went to my raspberry pi and logged into the new wireless. It says its connected to the wireless, but I can no longer connect to the internet or the network. Any thoughts?? When I switch back to my original wifi connection / extender, it works fine again.
Thanks
EDIT: This seems to be related to this!
https://github.com/raspberrypi/linux/issues/1542

In my opinion, I honestly dislike wireless. You could always get a Ethernet cable and plug it in, and it'll never do the error again. You can find them very cheap, and it's faster than wireless.
But, for some friendly Raspberry Pi reference, if you have another computer (it doesn't matter how old or slow, it'll work either way), you can download VNC Viewer, plug in your Ethernet cable to your Raspberry Pi (or you can use a WiFi adapter too!!), then find your Raspberry Pi's IP address, and use VNC Viewer to control your Raspberry Pi from that other computer. That's what I'm doing.
I hope I help with this :)

Related

How do I recover when Arduino USB Port randomly disappears?

I'm using my computer remotely and have an Arduino Every attached to a powered USB 3.0 hub. Anyway, the Arduino is part of a hardware tool that does some nice things for me. I communicate with it through the COM port.
The problem is that sometimes, after several days or even weeks, the Arduino's COM port just disappears. Is there some way to recover that COM port without physically unplugging it?
Sometimes restarting the computer works, but since the Arduino is plugged into a Powered USB Hub, it doesn't lose its power during a computer reset, so it doesn't reset itself and the COM port doesn't show up.
This used to happen frequently when I was using Arduino Nano knock-offs. I changed over to using Genuine Arduino Every devices and it hasn't been a problem for the last couple months. However, I'm now seeing it happen again.
Does anybody have a solution for this problem, or is this just something that happens from time to time with an Arduino when its connected for weeks/months at a time?
So, I replaced all usages of String with char[] and the problem still persisted.
I finally went online and purchased an internal PCI-E USB expansion card with 7 ports. I started using that 2 weeks ago and haven't seen the problem since. The other benefit to the internal card is that when I reboot the computer, the card reboots and forces a disconnect/reconnect of all COM ports.
I guess there was just something about having an external USB Hub that was causing the problems in the first place and the internal card was much more stable.
UPDATE - After week 3, I lost communication with a couple of my Nano Every devices. Unplugging and replugging them in fixes the problem, but I need them to NOT have that problem again. I guess the internal PCI-E Usb Hub didn't solve the problem. Maybe if I plug the Every's directly into the Computers standard USB ports that might help. I'll give that a try...
UPDATE 2 - I ended up purchasing a couple wifi wall plugs. Now, I can remotely unplug my computer and remotely unplug the USB Hub Power. I just 'Shut Down' my computer remotely and then remotely power it off for a few minutes and power off the USB hub for a few minutes. I then power up the computer (I have it's BIOS set to auto boot on power-cycle) and after it boots up, I power up the USB HUB and get all devices recognized again. Sometimes, I can just power-cycle the USB HUB to get the COM Ports visible again. It's a pain, but unless somebody comes up with a better idea, that's what I'm goin' with...

Upload Arduino sketches to Raspberry Pi via serial port

I am using the Arduino IDE and RasPiArduino (https://github.com/me-no-dev/RasPiArduino) to compile sketches for my Raspberry Pi Zero. It's working fine.
I figured that the Pi's USB OTG port could be used to directly upload the sketches via USB. So I have set up g_serial on the Pi and successfully logged into it using minicom. The Arduino IDE also lists the port under Tools -> Port. So far so good.
However, I am not yet able to actually upload a sketch over that port or to open the Serial Monitor. As far as I know, the IDE uses avrdude to upload sketches, but it seems that only works for Atmel chips? I am completely stuck here. Can this be done at all? Any ideas or pointers are greatly appreciated.
Thanks!
OK, I got it working as follows, thanks to the tip from jikuja:
Set up ethernet over USB using the gadget driver g_ether You may also have to set up a DHCP server (e.g. dnsmasq) on the Raspberry Pi in order to assign IPs to the Pi and the host. Details can be found here, for instance: https://gist.github.com/gbaman/50b6cca61dd1c3f88f41
Configure avahi to only provide the arduino service over the USB interface. To do this, modify /etc/avahi/avahi-daemon.conf and set options allow-interfaces=usb0 and deny-interfaces=wlan0.
The Arduino IDE (using RaspiArduino) should not be able to detect the Pi on the USB interface, but not the WiFi. Uploading sketches and serial monitor all work fine for me that way. :)

How to connect Arduino with Internet?

I have gone through several links online but I have not found any appropriate solution to it. I am wondering if there is a way to connect an Arduino with WiFi without using any shield or any other external hardware. My laptop is connected to WiFi and the arduino board is connected to the laptop with an USB cable. I want to access/run the data for the Arduino using WiFi. Is there a way to do it?
Hope my query makes a sense.
Thanks.
Let's restate your question for clarity - you want to share the laptop's Internet connection (e.g. via WiFi) with the Arduino connected to the laptop with a USB cable, with no additional hardware?
Assuming I restated it correctly, the Arduino's USB connection provides a virtual "serial port" for communication. This means you can use an "IP over serial" solution for Internet access. One such common and widely supported solution is PPP.
However, programing the Arduino with IP over PPP stack requires significant amount of memory and is probably an overkill for whatever it is you're trying to do.
You're probably better off designing a custom-tailored protocol for the serial communication between the Arduino and a small gateway program you can program and run on the laptop.
If you're bent on a complex solution that provides full Internet access to the Arduino, the steps to achieve what you're after are:
Program the Arduino with a TCP/IP over PPP protocol stack, running on the serial port. You'll probably need an Arduino MEGA.
Setup the laptop to be a PPP endpoint on the Arduino's serial port. For a Windows machine you can refer to this page for information on how to do that.
Once the PPP link is up, you can setup the laptop's OS to share Internet access to the PPP link.

how to set up a static ip for raspberi pi through the sd card

My school gave me a static IP address, sub/mask, DNS and alternate DNS in one of the outlets in my room.
What I want:
Set up through the SD card (windows explorer->sd->config something ip=)
Then I want to use putty to connect to it with the IP provided to me.
What I don't want is
To connect it to a monitor (I don't own one or a keyboard)
Can someone help me, I have no other way connecting to it.
You don't need a monitor to know the IP of Raspberry Pi.
Step 1: Connect it to ethernet.
Step 2: Find the IP of Raspberry Pi by a IP Scanner software or by accessing to the router (normally through address 192.168.1.1)
Step 3: Access to Raspberry Pi with the IP through Putty
Step 4: Set the static IP for Raspberry Pi with this tutorial
what you want is a direct connection between your raspberry and computer via a cross-over ethernet cable (wiki-link). If you are going for this solution you need to set up a DHCP-Server on your computer to give the raspberry an ip-address. If you done this you will be able to connect via ssh to you raspberry pi.
This isn't a trivial way to connect to your raspberry, i recommend you to get a screen and a keyboard. If this is not a option, i wish you good luck.

Arduino yun wifi network not appearing in my available network on windows 8

I'm connecting my Arduino Yún to my laptop via USB cable and as I read in Arduino documentation:
When you first power on the Yún, it will create a WiFi network called
ArduinoYun-XXXXXXXXXXXX. Connect your computer to this network.
But in my case nothing appears and I didn't found anything related to this on the web.
I'm running Windows 8.1 on my laptop.
Any idea how I can solve this problem?
It sounds as if something is wrong with the wifi configuration on the Yún. Has it previously been configured? Try resetting the wifi by pressing the "Wifi RST" button for more than five seconds (but less than 30).
More info here.
The question you asked is already answered by #mellbratt. You have successfully configured Yun and connected it to the network (configuration of WiFi by providing SSID and security key in web panel). The thing you have to do now, is to find what IP your Yun device is assigned on that network. You can use tools like Angry IP Scanner to scan the network and find your IP if you cannot access it from myusername.local. Using that IP you can access the web panel.

Resources