Comments (14)
You'll have to add ARP entries manually. Please see the shell script in the apps folder.
from gr-ieee802-11.
This is already a rather complex setting where many things can go wrong. You will have to find out where it breaks. When you ping:
- is there an IP route to the other PC
- is there a static ARP entry for the other PC
- if so the packet should be put in TUN/TAP and reach GNU Radio. Does that work?
- does GNU Radio modulate the packet and send it out without underruns
- is the other SDR receiving the frame
- does the MAC address match so that the packet is accepted for that host
- does the IP address match, so that the packet is put into the IP stack, where it finally causes a ping reply.
- make sure that ping replies are not disabled on that host
This reply, then, has to pass the very same chain in reverse. Use the logging options of my module and wireshark to find out where things break.
from gr-ieee802-11.
Hi Basitan
Does the BSS MAC mean Broadcast MAC or Something else?? Do I have to change the BSS MAC to the MAC address of an intermediate router/USRP along with the two host machines connected to two USRPs to be able to ping from one host to another using the nic.sh script?
Looking forward for your answer
Thank you
Hrishekessa Raghu
from gr-ieee802-11.
There is no intermediate router in this case, so the BSS is ignored. If that doesn't fit your use case, you can change that in the block that translates between WiFi and Ethernet.
from gr-ieee802-11.
I am able to ping from host1 to host2 after going through your steps and making the required configuration.
I made host1 with usrp as a router with tap0 as virtual interface and I tried to access host1 with usrp by configuring the host 1's tap0 as a gateway from host2 we are able to ping google.com from terminal but we are unable to reach the www.google.com from web browser like chrome or mozilla. Any suggestion is greatly appreciated.
following are commands used on host1 to make it as a router.
sudo iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
sudo iptables -A FORWARD -i tap0 -o eno1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i tap0 -o eno1 -j ACCEPT
Thank you
Hrishekessa Raghu Eeti
from gr-ieee802-11.
I'm not sure I understand your setup, but you could try something like:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
The others are not required.
Also check that the router has a default gateway set and that DNS is working (i.e., see if you can connect to any website through its IP)
from gr-ieee802-11.
We are running 2 USRP N210 from 2 different hosts, we are trying to ping each other with the tap0 interface IP, but we are not getting successful pings.
Finally, we want to transfer text files between the 2 devices.
Can you please help us with that?
from gr-ieee802-11.
Before you start with the more complex scenarios, did you actually make sure that you can send or receive anything (from a normal AP and another SDR)?
from gr-ieee802-11.
Like sending between 2 SDR's? What does AP exactly mean? Access point? What do you mean sending and receiving from a normal AP and another SDR?
from gr-ieee802-11.
Like receiving something from another WLAN card. Or sending something to another WLAN card. Or sending something from one SDR to the other. In general, simpler setups. Immediately starting with the most complex setup is very hard to debug.
from gr-ieee802-11.
I am having the same issue. Able to send and receive file data using general setup from one usrp device to other. But not able to send or receive to other device using ieee 802.11.
from gr-ieee802-11.
setting up networking is not totally trivial. You have to configure ARP and IP. Please see the shell script in the apps folder to get an idea how that works. Other than that use Wireshark to debug, i.e., find out where it is breaking or where you don't get a response.
from gr-ieee802-11.
It says network unreachable , how are we supposed to add ARP entries when networks are not connected.
from gr-ieee802-11.
Thank you. We are able to send and receive message using message strobe. But in between the messages there is no definite interval , and we stop receiving frame after some time. We are getting overflows(that are the D's observed (we assume that is overflow)).
We tried to send message simultaneously from the other USRP device using the tranceiver.py, but we are able to only send or receive message at the same time , both does not take place .
from gr-ieee802-11.
Related Issues (20)
- GrSwig Missing HOT 7
- no data packet, just ack packets HOT 3
- static assertion failed HOT 6
- Tx is router,Rx is USRP HOT 4
- Readme has bad instruction for git clone HOT 1
- Port is not connected HOT 3
- wifi_loopback.grc - flowgraph stops with warning messages "Could not find port out in" and "system" HOT 2
- capturing only 2 out of 4 in handshake HOT 4
- Need help in generating wifi Becons using HackRF (wifi_tx.grc) HOT 9
- Filtering IQ samples using MAC address HOT 2
- Becacon and eapol receive error HOT 5
- gr-ieee802-11for bladerf? HOT 5
- Estimating Angle of arrival and distance from CSI values in Frame Equalizer HOT 1
- How to use this repo to view WiFi Halow (802.11ah)? HOT 1
- Other wireless packet attributes aside CSI
- GNU Radio install methods to be updated in README HOT 1
- [Feature request] Support others SDR hardware devices HOT 1
- Failed to receive 802.11g wireless signal HOT 2
- updation needed for IEEE 802.11n packet capturing HOT 3
- An error in block <chunks_to_symbols> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr-ieee802-11.