Giter Site home page Giter Site logo

Comments (14)

bastibl avatar bastibl commented on September 12, 2024 1

You'll have to add ARP entries manually. Please see the shell script in the apps folder.

from gr-ieee802-11.

bastibl avatar bastibl commented on September 12, 2024

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.

raghu25 avatar raghu25 commented on September 12, 2024

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.

bastibl avatar bastibl commented on September 12, 2024

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.

raghu25 avatar raghu25 commented on September 12, 2024

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.

bastibl avatar bastibl commented on September 12, 2024

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.

akshayy29 avatar akshayy29 commented on September 12, 2024

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.

bastibl avatar bastibl commented on September 12, 2024

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.

akshayy29 avatar akshayy29 commented on September 12, 2024

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.

bastibl avatar bastibl commented on September 12, 2024

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.

dattajigosavi avatar dattajigosavi commented on September 12, 2024

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.

bastibl avatar bastibl commented on September 12, 2024

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.

dattajigosavi avatar dattajigosavi commented on September 12, 2024

It says network unreachable , how are we supposed to add ARP entries when networks are not connected.

from gr-ieee802-11.

dattajigosavi avatar dattajigosavi commented on September 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.