stevehenderson / gsm_simulator

Simulates a real life scenario where people use their phones around an area and generate gsm packets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#gsm-simulator

This node app simulates a crowded scenario like a shop or cinema, where people visit these places out of habit and use their phones according to the behavior prescribed.

The app takes argument such as:

  1. population: Number of people

  2. high,medium,low for frequency of visits: These number are percentages. Each percentage controls the fraction of population which will have a set behavior. For example, 32,23,45 means that, 32% will visit the place very frequently per day, 23% will visit moderately and 45% won't visit much per day.

  3. high,medium,low for frequency of phone usage: frequency of phone usage means the number of times the user will use her/his phone per visit to the place.

  4. high,medium,low for stay time: stay time is time in minutes the user spends at the place per visit.

  5. high,medium,low for crowd tolerance limit: If the crowd at the place is higher than this limit then the user won't visit the place.

##Install

  1. Do a git clone
  2. cd to the directory and npm install

##Usage

node --expose-gc index.js 2 13,23,45 22,33,12 12,13,11 13,23,45

The arguments have already been explained.

##Output

The output is gsm packets. You can receive them using websocket client. Install sudo pip install websocket-client. Run python client.py to test.

About

Simulates a real life scenario where people use their phones around an area and generate gsm packets


Languages

Language:CoffeeScript 95.7%Language:Python 3.8%Language:JavaScript 0.5%