Why my raspberry pi can not connect to the wireless network ? - raspberry-pi

I run the command wifi-menu in my archARM system ,and it already found the Wi-Fi hotspot,
but the the connection failed.
here has a photo: http://i.imgur.com/yIQpQaL.jpg?1
note: I use the EDUP EP-N8508GS USB wireless adapter.
So now,what should I do?

I've seen this problem on an x86 Arch system, this is what fixed it: Look in /etc/netctl/ and find the config for your wireless connection. Add the line WPA_DRIVER='wext'. If you already have a WPA_DRIVER line, change it and make sure it is using the wext driver. If /etc/netctl/ doesn't exist it is because you haven't updated Arch in a while, and the files you are looking for are located in /etc/network.d

Related

Raspberry Pi 3+ and MATLAB

I am attempting to connect MATLAB with a Raspberry Pi 3+. Using the application installer in MATLAB, I downloaded and installed the necessary support hardware (https://www.mathworks.com/hardware-support/raspberry-pi-matlab.html) and then used the configuration dialog in those apps to flash a microSD card. Booting the Pi with that card, I set up passwordless sudo and enabled SSH. Using an ethernet cable to connect my laptop with the Pi, I can ping the Pi from MATLAB, and I can SSH in using PuTTy. However, when I try to connect in MATLAB (having opened MATLAB in admin mode), I get the following error:
I'm not sure where to go from here -- this error isn't listed on MATLAB's help page, and I cannot find anything online. Any help is appreciated.
Answer is straightfoward: problem found between user and keyboard. The device address should ONLY be the IP address of the Pi.

Movesense: how to determine wbcmd port on Windows 10

I have a movesense device with the programming jig.
I can connect to the jig using j-link, I can program/firmware update the device, but I can-not connect to the device using "wbcmd". Keeps coming up with "No device connected"
The programming jig is listed in device manager as USB device "J-link driver" but does not have a corresponding COM port.
What is the connection I put in "port" settings in the following command:-
wbcmd --port xxxx --path /Info --op GET
Thanks in advance.
Connect the J-Link and run SEGGER J-Link Configuration tool, select your probe and enable Virtual COM-Port.
Unplug and reconnect the J-Link, the COM port should appear.
The COM port of Movesense jig is completely separate from the SEGGER (in fact you don't need to have SEGGER connected to use it). The easiest way to get the COM port number is to open the Windows "Device Manager" and open the "Ports" sub tree. The "Ports" is not visible if there are no COM/LPT ports in the system:
To access the sensor over COM-port the UART must be swithced on (it's off by default since it uses over 1 mA of current). That can be done using Android version of Movesense Showcase App (wrench icon in top-right corner). Sensor needs to be reset/power cycled for UART setting to take effect.
Full disclosure: I work for the Movesense

Android Things - Setup with Laptop only

Is this possible? I've no LAN cable, no USB to TLL cable and want to connect my raspberry pi 3 with my WLAN.
I've found this: How to set wifi to Android Things without an ethernet cable or adb but I can't boot the img file (https://developer.android.com/things/preview/download.html) and edit it. If I boot it on windows 10, it tells me errorenous image. If I boot it with a third party app like OSFMount I can boot it, but the content looks like opening the sd card after flashing the image, like following:
So no /data/misc/wifi/wpa_supplicant.conf file that I could edit... Am I mounting it wrong?
Any ideas on how to get this working without buying something? All I need to do is setting up the WLAN on the sd card directly somehow...
I could not find a way to successfully AND correctly mount all partitions on windows. A virtual machine with ubuntu helped mounting everything, but I could only mount it successfully with read permissions.
Final solution: I bought a UST to TTL cable, connected via putty to my raspberry pi and set up wifi via the console...
It's somehow sad, that there is no setup file on the boot partition (like the cmdline.txt and confix.txt file) that could simply be added, this would make things a lot easier...

UART serial access with Rpi 3

I am trying to establish a serial connection between the RPI3 and an Arduino. Because that wasn't working I connected a USB to TTY cable from my laptop to the Rx/Tx pins of RPI. I was eventually able to use PuTTy to connect to it.
I am running Android Things on the RPI and the android code I have running is supposed to be a loopback (reading from UART and writing back what was read).
Here is where I am confused....
When PuTTy connected I was presented with a command line console on the RPI.
How do I get the Rx/Tx pins on the RPI to just be serial connections into and from my application and NOT a way to log into the console?
Is that a bad idea? I suppose if I ever needed to log into the RPI this would make it more difficult...
I figured out what I was doing wrong...
When following the setup directions at the below site I was using the Bluetooth mode instead of the Application mode. When I followed the directions for Application mode I was able to start using UART0 for serial comms
Set the console attribute to the following in cmdline.txt:
console=tty0
Add the following line in config.txt:
dtoverlay=pi3-disable-bt
Remove the following lines from config.txt:
enabled_uart=1
core_freq=400
https://developer.android.com/things/hardware/raspberrypi.html#disabling_the_console
Beginning with Developer Preview 3, in which USB-Serial devices support added, You can use external USB-UART dongles like this instead of UART of Raspberry Pi 3.

Passive WiFi detection system using WiFi router

As part of my project requirement I want to make a system which will detect all the WiFi devices in my router range either its connected or not, I did some research on it then I found something like wireshark ,kismate etc I just tried the wireshark by making my Mac machine's WiFi as an adhoc network and its all fine I am able to list all the WiFi devices in wireshark, now I want to make a real-time system based on a real WiFi router I don't know how I will configure my router using my PC and how I will monitor the router from my PC , one more thing if I am using this wireshark how I will use this data for my requirement. If any one worked with similar scenarios please help me..thanks in advance
To do that you will need more than the usual API that you have on commercial WiFi routers (by that I mean a full SSH access). I would:
flash my router with OpenWRT (you can search for your router on this page for detailed instructions)
Install the aircrack-ng suite on the flashed router with
opkg update
opkg install aircrack-ng
Put my WiFi card in monitor mode and run the airodump service:
airmon-ng start wlan0 #Put your NIC in monitor mode
airodump-ng mon0 #Sniff surrounding packets
You don't necessarily have to install aircrack-ng, you can just put your card in monitor mode using command line (look at the documentation for your WiFi driver) and then run tcpdump (command line equivalent to wireshark) but aircrack works very well and has a nice format.
Also, I should warn you that you can brick your router by flashing it. I never had such a problem when flashing router mentioned on the OpenWRT wiki and there are (most of the times) ways to restore a bricked router depending on the brand but I am not responsible if you break it ;)