I just downloaded Wireshark on Windows 8.1, and when I try to capture packet it works just fine, just only for the current machine. I've "promiscuous mode" enabled, but nothing seems to happen? During the installation I installed WinPcap, and set it to run on boot. Is there any way to solve this? I've also tried to plug in a USB network adapter, without luck.
Wi-Fi network? Promiscuous mode generally doesn't work on those, especially on Windows; you need monitor mode, but, unfortunately, WinPcap doesn't support that, so Wireshark doesn't support it, either.
Switched wired network? Promiscuous mode isn't enough on a switched network; you need a "monitor port" or "SPAN port" or whatever the switch vendor calls it.
Related
I've been struggling to get wifi working on my BBB for the better part of a week now. I sort of succeeded at one point, but I couldn't tell how I did it. Anyway, long story short, I noticed this morning that when I start a fresh debian image with my Edimax usb wifi installed, it defaults to AP mode and is broadcasting a SSID called "Beaglebone-710C". This makes sense with my problems because I could see the wifi dongle and see it was recognized, but I couldn't scan or connect. Does anyone know why it would default to AP mode? I think it might have something to do with me accessing the beaglebone via command line over USB? Thoughts? thanks!
Try the following after logging in your BBB via SSH on the USB connection:
http://www.erdahl.io/2016/07/beaglebone-green-wifi-bluetooth-connect_18.html
For some reason, when I open wireshark, it only displays incoming packets (and broadcast), but there isn't a single outgoing traffic.
I searched in google and there was something about interfering software, but none of them are active on my computer.
Does anyone know why does it happen and how to fix it?
If you have "DNE Lightweight Filter" checked in your network adapter properties, uncheck it.
On Windows, Wi-Fi device drivers often mishandle promiscuous mode; one form of mishandling is failure to show outgoing packets.
In addition, promiscuous mode won't show you third-party traffic, so it doesn't help.
Try capturing with promiscuous mode turned off.
I tried disabling the extra drivers on my adapter but that didn't work. Turns out my problem was that I had previously installed an older version of Wireshark and I suspect that it's uninstaller failed to fully clean up after itself.
If you've previously installed nmap for Windows or an older version of Wireshark, check that you don't have any extra npcap/loopback adapters that might be interfering.
This worked for me:
Uninstall Wireshark and npcap
Open the Device Manager and expand the Network adapters list
Right-click any loopback adapters and click Uninstall
Now, hopefully everything works when you re-install Wireshark.
I am currently running a robotic's project using an Hokuyo (URG-04LX-UG01 - http://www.hokuyo-aut.jp/02sensor/07scanner/urg_04lx_ug01.html). This one is plugged to my computer using USB. Although it creates the port "/dev/ttyACM0" when I plug it, I can't connect to it using the associated library (serial connection error). Until here, nothing's strange, bugs or misprogramming happens but here is my problem :
When I plug the hokuyo to an USB HUB, which is also plugged to my computer, I can connect to it and everything works perfectly.
My laptop is a samsung 900x3c running Linux Mint 15.
Do you know what an USB HUB changes in the USB communication ?
Is there a link with my laptop ? (I used to face the same problem using an ARM-Based embedded computer)
Is it possible to fix the issue without using any hardware solution ?
If it's not, is there anything more compact than an USB HUB which could fix it ?
Thanks !
Is your USB-HUB powered from external power adapter? URG-04LX-UG01 seems to consume 2,5W/5V=0,5A. This is limit for USB. Laptop USB ports are not so powerful and if device consumes a little bit more than max, then they just cut the power.
Update
The device is USB 2.0 Full Speed. I've seen USB controller, that had problems with USB 1.0 or USB 2.0 devices. Hub presents itself as USB 2.0 High Speed and handles USB 2.0 Full Speed transparently for the Laptops USB controller. Do you have another Laptop/PC to check this?
I'm kind of late on my feedback for that issue, but better late then never so :
I've been able to determine that the whole issue came from my USB cable. Somehow there was an electrical issue in that cable and the computer-or the hokuyo- was not able to properly communicate through it. I think that the USB HUB was somehow able to correct theses electrical issues.
Anyway, problem solved !
I am pretty new to Linux so I apologize if I will ask some really simple stuff.
I am working on a custom board with SAM9G25 and Angstrom distribution as operating system.
The board as to act as a USB Device (Mass storage device), when will be connected to a Host computer. Right now I am simply enabling and removing the g_mass_storage module and the things are working fine.
In the final version, I need to manage the g_mass_storage module according to the connection and disconnection of a USB cable. I tought to use VBUS as an interrupt (also polling will be fine).
Here it comes my problem.
Since the VBUS GPIO is handled by the USB driver i cannot read it's status from userspace. I only see an interrupt count in /proc/interrupt.
I am asking if there is a way to get an interrupt (from the Driver) or to be able to read the VBUS GPIO value when the usb cable is connected/disconnected from the system.
I apreciate any kind of help.
I know this is a bit old, but I found the same problem, and found from userspace you can view the connection status from the udc sys class device. For example, on my architecture the status of USB can be viewed from:
/sys/class/udc/ci_hdrc.0/status
PC connection: configured
Power adapter: powered
Disconnected: not attached
I've read the AM335x architecture can be observed from:
/sys/class/udc/musb-hdrc.0.auto/current_speed
Best of luck
I have a peculiar question.
The case is that I have a TV that can use as source a USB flash drive for playing movies.
Do you think it would be possible to directly connect a PC and the TV USB to USB and using some software interface to determine the PC to act like a flash drive.
I think it can be done with a hardware driver, but I'm wondering if it can be done without that.
No, you can't, not even by writing a new driver.
A flash drive is a USB device, but your computer has only USB host ports. There's different circuitry needed in a device vs. a host (there are circuits that can do both, called USB on-the-go, but those are only found in peripherals).
Actually, you can - kind of.
http://www.eye.fi
This is a special adapter with a Wi-Fi adapter built in that allows you to connect to a computer (or the Internet).
Not quite what you asked but the effect is similar.