open-eio / Open-Pipe-Kit-Project

Documentation and planning for the Open Pipe Kit. An OPK is a device that pipes data from sensors to anywhere you want, no programming required.
8 stars 0 forks source link

Network Command Line Interface (pirate.sh/ip) #2

Open rjcorwin opened 9 years ago

rjcorwin commented 9 years ago

User story

601f605a-944b-11e4-8399-d2640400a7b9

Interesting links

interesting discussions

What matters seems to be whether or not the WiFi USB hardware is AP mode capable, AKA promiscuous mode.

Thinking about the geofence technique could be useful in making this user friendly and performant. For example, activating WiFi link between the Ground Server and the Client given the GPS coordinates of the Ground Server and the Client, this would be both user friendly and save on energy by not broadcasting when there is no point in doing so.

The goal at the moment is to achieve and test the following configurations (see link for diagrams)

Testing

bioligoy commented 9 years ago

Byzantium mesh networking

By setting up the groundserver as an adhoc network it may be possible to have a mesh of groundserver nodes all offering clients access to the entire network from any location where the client can access the wifi of one node. Byzantium project does this by creating an open olsr access point on each node and automatically links nodes 2 + hops away(this is its main advantage of using byzantium project rather than just using adhoc alone) It also implements an apache webserver hosting a simple homepage (not sure if this will work great with the node.js yet) They have released some scripts that can configure your raspian to connect with other byzantium nodes. I'll post feedback when my pi2 arrives and i get a chance to test this setup out.

byzpi install instructions about byzantium project uses avahi for zeroconf/mDNS avahi

treehouse-su commented 9 years ago

Network command language design

pirate.sh [/ip] = script ala virsh, drush, git, docker and ala in javascript to clone image and configure raspberry pi networkstack by copying functionality of the PirateBox

FIXME bring picture of symbol PI in a skull

Arrgghh to hook up your PI-rate into (Outdoor- Sensor-, GSM-, Wifi-) Space :P

A command to detect systems and their constrains

$ pirate detect
rpi A/B/B+/2B
ram 256/512/1024MB
...

A command to detect sdcard and size and is able to cleanly clone the build.

$ pirate clone

thing to do when doing this command

A command to reboot

$ pirate reboot

$ pirate list 
eth0 ...
wlan0 ...
...
br0 ...
...
<dev> ...
...

$ pirate show <dev>

$ pirate reset default
$ pirate reset <dev>

$ pirate test <dev>

$ pirate config <dev> (dhcp=default)
$ pirate config <dev> dhcp
$ pirate config <dev> ip?
treehouse-su commented 9 years ago

pirateboxes

new raspberry pi 2 dev kit and old piratebox router