User Tools

Site Tools


opus:fall2012:nsano:part2

Part 2

Entries

Entry 1: October 2&4, 2012

October 2nd

  • there are two ways to set up a link system into the lair from a outside location via digital phone VPN and open port
  • if u use a VPN u will need a VPN server dealing with just VPN and its communication between ur sip phone and the link your trying to find
  • VPN config and set up
  • trying to find something unique and diverse that i can do for data comm

October 4th

  • all we did was turn on a light bulb via a phone(WE FRICKING TURNED ON A LIGHT BY A DAMN PHONE)

Entry 2: October 11, 2012

October 11,

  • we are in the lair and im going to press pressly for details and possible things and stuff needed to set up a sip phone via my house to the lair
  • this is significant due to the fact if and when we do this it might shed a bit more light on the process in which asterisk+freeswitch+google talk can communicate to one another and possible be able to make a phone call out of the lair eventually
  • the concept i am having the hardest time with is the configuration of asterisk and free switch and what steps are required to set up basic funtionality
  • the biggest challenge i have had in this corse is the follow though i am ending up short with my understanding of concepts of modifiying settings and files inside a PBX sever

Entry 3: Date unknown , Time unknown

  • What action or concept of significance, as related to the course, did you experience on this date?
  • the last few weeks will be warped up into this one entry for the lack of better judgement or just absent mindedness i will be short an entry this month, how ever what i did this last month is finished setting up my from home to asterisk sip phone how ever when i went to plug in the phone i would be using to the sip adapter it was the wrong connection(odd as hell)
  • Why was this significant?
  • this is significant due to the fact yes i was able to make an artificial connection but not a phone over ip link i was unable due to the lack of equipment s next Tuesday i will be bringing back the sip adapter.
  • What concepts are you dealing with that may not make perfect sense?
  • what isn't making sense to me at the moment is when i started my second project i looked at the code and realized even tho i did much of the socket programming practice myself in the same manner with Joe Oppenhiem i found my self have lost the information i learned previously so i started to read beej's guide to data communications and networking
  • What challenges are you facing with respect to the course?
  • time constants i am running out of time and my first project was only partially successful

Keywords

datacomm Keyword 2

Network Sockets

Definition

Network sockets are used to send and recive data via a out side source and are widely used for intenet applications and data comunications.

References

    * Data coomuncations class
    * and yes belive it or not we did touch on this in Cisco fundementals
    * Beej's guid to network programing

Demonstration

thsi would be here if i knew a smaple cod ei could write to show this but only thing i have are other peoples work none of my oun yet still reading

datacomm Keyword 2 Phase 2

Raspberry Pi is a mini perosnal computer not much larger then a smart phone. However the rasberry pi dose not have a screen nor a normal I/O busses system it has 2 micro USB 2.0 i belive and a single ethernet buss. With this and the right equipment a person who I know did this project named Andrew Sowers established that you could make a coffee pot brew a pot of coffee using the rasberry pi as an interfact with the on off switch, While using the asterisk pbx server to call in and tell the rasberry pi to turn on coffee mechine could brew coffee and in this he is showing that there are C and C++ libarys built into most standard libary packages that allow an interface with a basic appliance such as turn on and turn off. The more common reason they have this is when you shut down a computer your telling it do what you need to do save what you need to save and turn off all processing and programs and turn off the power supply and in this case more or less an applaince.

Raspberry Pi GPIO Programming

The Raspberry Pi hosts a General Purpose Input Output board for interfacing with low level peripherals. Dragon.net was nice enough to write a detailed C library for the GPIO to make electronics programming super easy! Here's an example of a program that turns on and off an LED:

/*
 * blink.c:
 *      Simple test program to blink an LED on pin 7
 */
 
#include <wiringPi.h>
#include <stdio.h>
 
int main (void)
{
  int pin = 7;
  printf("Raspberry Pi wiringPi blink test\n");
 
  if (wiringPiSetup() == -1)
    exit (1);
 
  pinMode(pin, OUTPUT);
 
  for (;;){
    printf("LED On\n");
    digitalWrite(pin, 1);
    delay(250);
    printf("LED Off\n");
    digitalWrite(pin, 0);
    delay(250);
  }
 
  return 0;
}

by way of this reference I hope to setup a simple c application using a solid state relay for my future automated “Dial a Coffee” via Asterisk and Pi ingenuity:http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28C.29

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Experiment 2

Question

What is the question you'd like to pose for experimentation? State it here.

Resources

Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.

Hypothesis

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

  • Was your hypothesis correct?
  • Was your hypothesis not applicable?
  • Is there more going on than you originally thought? (shortcomings in hypothesis)
  • What shortcomings might there be in your experiment?
  • What shortcomings might there be in your data?

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

opus/fall2012/nsano/part2.txt · Last modified: 2012/11/02 07:49 by nsano