Mudanças entre as edições de "Curso Técnico em Telecomunicações - Projeto Integrador IV (PJI4)"
Ir para navegação
Ir para pesquisar
Linha 1: | Linha 1: | ||
+ | ==Totem== | ||
+ | <syntaxhighlight lang=bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | if [ "${3}" = "" ] | ||
+ | then | ||
+ | echo "Use: ${0} map <interface_mesh> <interface_ap>" | ||
+ | echo " ${0} mpp <interface_mesh> <interface_internet>" | ||
+ | exit 1 | ||
+ | else | ||
+ | TIPO=${1} | ||
+ | MESH=${2} | ||
+ | AP=${3} | ||
+ | INTERNET=${3} | ||
+ | fi | ||
+ | |||
+ | function basico(){ | ||
+ | service network-manager stop | ||
+ | ip link set ${1} down | ||
+ | iw dev ${1} interface add mesh0 type mp mesh_id Gourmet-Backhaul | ||
+ | iw dev mesh0 set channel 9 | ||
+ | ip link set mesh0 up | ||
+ | } | ||
+ | |||
+ | function map(){ | ||
+ | brctl addbr br0 | ||
+ | brctl addif br0 mesh0 | ||
+ | ip link set br0 up | ||
+ | ip -4 address add 10.0.0.X/8 dev br0 | ||
+ | ip -4 route add 0.0.0.0/0 via 10.0.0.1 | ||
+ | killall -TERM hostapd | ||
+ | sleep 1 | ||
+ | killall -KILL hostapd | ||
+ | echo "interface=${2}" > /etc/hostapd.conf | ||
+ | echo "bridge=br0" >> /etc/hostapd.conf | ||
+ | echo "driver=nl80211" >> /etc/hostapd.conf | ||
+ | echo "ssid=Gourmet" >> /etc/hostapd.conf | ||
+ | echo "channel=3" >> /etc/hostapd.conf | ||
+ | hostapd -B /etc/hostapd.conf | ||
+ | } | ||
+ | |||
+ | function mpp(){ | ||
+ | ip link set mesh0 up | ||
+ | ip -4 address add 10.0.0.1/8 dev mesh0 | ||
+ | iw mesh0 set mesh_param mesh_gate_aqnnouncements 1 | ||
+ | iw mesh0 set mesh_param mesh_hwmp_rootmode 1 | ||
+ | restart isc-dhcp-server | ||
+ | } | ||
+ | |||
+ | case ${TIPO} in | ||
+ | "map") | ||
+ | basico | ||
+ | map ${MESH} ${AP} | ||
+ | ;; | ||
+ | "mpp") | ||
+ | basico | ||
+ | mpp ${MESH} ${INTERNET} | ||
+ | ;; | ||
+ | esac | ||
+ | </syntaxhighlight> | ||
+ | |||
==Documentação== | ==Documentação== | ||
Edição das 21h18min de 11 de maio de 2016
Totem
#!/bin/bash
if [ "${3}" = "" ]
then
echo "Use: ${0} map <interface_mesh> <interface_ap>"
echo " ${0} mpp <interface_mesh> <interface_internet>"
exit 1
else
TIPO=${1}
MESH=${2}
AP=${3}
INTERNET=${3}
fi
function basico(){
service network-manager stop
ip link set ${1} down
iw dev ${1} interface add mesh0 type mp mesh_id Gourmet-Backhaul
iw dev mesh0 set channel 9
ip link set mesh0 up
}
function map(){
brctl addbr br0
brctl addif br0 mesh0
ip link set br0 up
ip -4 address add 10.0.0.X/8 dev br0
ip -4 route add 0.0.0.0/0 via 10.0.0.1
killall -TERM hostapd
sleep 1
killall -KILL hostapd
echo "interface=${2}" > /etc/hostapd.conf
echo "bridge=br0" >> /etc/hostapd.conf
echo "driver=nl80211" >> /etc/hostapd.conf
echo "ssid=Gourmet" >> /etc/hostapd.conf
echo "channel=3" >> /etc/hostapd.conf
hostapd -B /etc/hostapd.conf
}
function mpp(){
ip link set mesh0 up
ip -4 address add 10.0.0.1/8 dev mesh0
iw mesh0 set mesh_param mesh_gate_aqnnouncements 1
iw mesh0 set mesh_param mesh_hwmp_rootmode 1
restart isc-dhcp-server
}
case ${TIPO} in
"map")
basico
map ${MESH} ${AP}
;;
"mpp")
basico
mpp ${MESH} ${INTERNET}
;;
esac
Documentação
Cronograma das Atividades
Semestre 2015-2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Planejamento da disciplina | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Conhecimentos sobre Telefonia IP para tratar no PI digraph VoIP { subgraph clusterIP { label="Redes" IP SIP DNS SDP RTP } DNS -> SIP Tarifação -> "Telefonia IP" VoIP -> "Telefonia IP" SIP -> VoIP SDP -> VoIP RTP -> VoIP IP -> SIP IP -> SDP IP -> RTP Binário -> IP Codec -> SDP Modulação -> Codec Sinais -> Modulação Criptografia -> SIP Segurança -> Criptografia QoS -> RTP "Plano de Numeração" -> Tarifação "Telefonia IP" -> Asterisk Sinalização -> SIP } </graphviz>
Atividades em dois dias por semana (divididas em duas aulas de 1:30 h/ 20 semanas por semestre;
|
Diário de bordo
Semestre 2016-1 |
---|
Semestre 2015-2 |
---|
|
Material de Aula
Programação:
- Algoritmos - Parte 01
- Exercícios - Parte 01
- Introdução ao PHP - Parte 02
- Introdução ao MySQL - Parte 03
- Atividades Adicionais - Nova opção Menu
Linux:
Comandos HTML: