Giter Club home page Giter Club logo

pi_adhoc_script's Introduction

Pi Ad Hoc Creator

This bash script performs the following:

  • Checks for the type of Pi:

    • Raspberry Pi 2 Model B
    • Raspberry Pi 3
  • Checks for either:

    • internal wireless chipset for Pi - 3
    • external wireless chipsets for Pi - 2
  • Adds appropriate kernel modules in the /etc/modules folder for boot

  • changes the /etc/rc.local file for setting up an ad-hoc network on boot with following parameters:

    • Mode Ad-Hoc
    • Channel 1
    • ESSID test-adhoc
    • Tx power to 0dBm (if possible)
  • Changes the /network/interfaces file and other networking files to provide:

    • IPv6 SLAAC addresses on wlan0
    • no IPv6 addresses on eth0

External Wireless Chipsets

  • ONLY dongles with following drivers are capable to work in ad-hoc operation:

    • r8188eu
    • rt2x00lib
  • Edimax 7811UN with 8192cu drivers are INCOMPATIBLE.

Accessibility

Pis can be accessible once running the script and rebooted using:

ping6 -I wlan0 ff02::1

from a native Linux PC with the Same ad-hoc network configuration or from a Pi with the same configuration. Pis are addressed with fe80:: link-local addresses.

to perform ssh in to the pi:

ssh -l pi fe80::abcd:1ff:fe22:dead%wlan0

the %wlan0 is important

to perform scp use [] as follows:

scp someFile.txt pi@[fe80::abcd:1ff:fe22:dead%wlan0]:/home/pi/

Requirements

Just your Pi with an external chipset based USB dongle and root privileges to trigger the script.

sudo ./adhoc_setup.sh

ISSUES with External Dongles

  • r8188eu chipsets are miserable with not letting the user set txpower and also channel parameters. txpower will return an Error, whileas channel set to another value will not.

  • even upon setting sudo iwconfig wlan0 channel 06 or another value, only the default value of channel 1 i.e. 2.412 GHz is set.

License

Issued under MIT License

pi_adhoc_script's People

Contributors

shantanoo-desai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pi_adhoc_script's Issues

Dropout Issue with r8188eu dongles

Cannot reach nodes with r8188eu dongles.

Check with Adafruit by adding a .conf file for r8188eu:

sudo nano /etc/modprobe.d/r8188eu.conf

options r8188eu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1 

comment out blacklist rtl8188eu from /etc/modprobe.d/blacklist-rtl81xxxu.conf

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.