User Tools

Site Tools


project:raspberry_pi_semafor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
project:raspberry_pi_semafor [2015/02/16 11:23]
dp created
project:raspberry_pi_semafor [2015/02/16 13:51]
dp Page name changed from project:raspberry_semafor to project:raspberry_pi_semafor
Line 1: Line 1:
 +====== Raspberry Pi Semafor ======
  
-=== Raspberry Pi B+ ===+===== Raspberry Pi B+ =====
  
 {{::gpio_b_plus.jpg|}} {{::gpio_b_plus.jpg|}}
  
-=== spajanje računalom na Raspberry PI B+ preko mreže ===+===== Spajanje računalom na Raspberry PI B+ preko mreže =====
  
-[[Raspberry Pi network connection]]+saznaj IP računala ili laptopa koji pristupa na Raspberry PI B+
  
-[[dokuwiki test page]]+<html> 
 +<pre> 
 +$ ifconfig 
 +em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500 
 +        inet <span style="color: blue;">192.168.1.7</span>  netmask 255.255.255.0  broadcast 192.168.1.255 
 +        inet6 fe80::224:e8ff:febf:26c5  prefixlen 64  scopeid 0x20<link> 
 +        ether 00:24:e8:bf:26:c5  txqueuelen 1000  (Ethernet) 
 +        RX packets 5443259  bytes 6983092676 (6.5 GiB) 
 +        RX errors 0  dropped 0  overruns 0  frame 0 
 +        TX packets 3286753  bytes 302335548 (288.3 MiB) 
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 
 +        device interrupt 22  memory 0xf6fe0000-f7000000   
 +</pre> 
 +</html>
  
-=== spajanje LED na Raspberry PI B+ ===+saznaj IP adresu Raspberry PI B+ 
 +<code> 
 +$ nmap -sP 192.168.1.0-255 
 + 
 +Starting Nmap 6.45 ( http://nmap.org ) at 2015-01-18 19:15 CET 
 +Nmap scan report for dsldevice.lan (192.168.1.1) 
 +Host is up (0.0015s latency). 
 +Nmap scan report for Unknown-00-11-22-33-44-55.lan (192.168.1.7) 
 +Host is up (0.00020s latency). 
 +Nmap scan report for Unknown-00-11-22-33-44-66.lan (192.168.1.8) 
 +Host is up (0.00034s latency). 
 +Nmap scan report for pidora.lan (192.168.1.9) 
 +Host is up (0.0012s latency). 
 +Nmap done: 256 IP addresses (4 hosts up) scanned in 2.92 seconds 
 +</code> 
 + 
 +sa računala ili laptopa, sa komandom ssh spoji se na Raspberry Pi B+ 
 +   ssh root@192.168.1.9 
 +<code> 
 +The authenticity of host '192.168.1.9 (192.168.1.9)' can't be established. 
 +ECDSA key fingerprint is 31:be:79:c5:f5:c3:7d:cc:61:7b:42:4b:0f:3f:5c:73. 
 +Are you sure you want to continue connecting (yes/no)? yes 
 +Warning: Permanently added '192.168.1.9' (ECDSA) to the list of known hosts. 
 +root@192.168.1.9's password:  
 +Last login: Sun Jan 18 19:44:41 2015 
 +[root@pidora ~]#  
 +</code> 
 + 
 +===== Spajanje LED na Raspberry PI B+ =====
  
 {{::led.png|}} {{::led.png|}}
Line 35: Line 77:
 </code> </code>
  
-=== spajanje crvene, žute i zelene LED na Raspberry PI B+ ===+===== Spajanje crvene, žute i zelene LED na Raspberry PI B+ =====
  
 {{::gpio_b_wpi_marks_7_8_9.jpg|}} {{::gpio_b_wpi_marks_7_8_9.jpg|}}
  
-=== isprobavanje semafora ===+===== Isprobavanje semafora =====
 u terminal natipkati u terminal natipkati
 <code> <code>
Line 66: Line 108:
  
  
-=== semafor bash skripta ===+===== Semafor bash skripta =====
 preko terminala (ssh) na Rasperry Pi B+ napravi file semafor preko terminala (ssh) na Rasperry Pi B+ napravi file semafor
 <code> <code>
Line 122: Line 164:
 </code> </code>
  
-=== pokretanje semafor skripte ===+===== Pokretanje semafor skripte =====
 <code> <code>
  ./semafor  ./semafor
 </code> </code>
  
-=== fotografije ===+===== Fotografije =====
  
 {{::dscf5250.jpg|}} {{::dscf5250.jpg|}}
- 
 {{::dscf5251.jpg|}} {{::dscf5251.jpg|}}
- 
 {{::dscf5252.jpg|}} {{::dscf5252.jpg|}}
- 
 {{::dscf5257.jpg|}} {{::dscf5257.jpg|}}
  
project/raspberry_pi_semafor.txt · Last modified: 2015/02/16 14:12 by dp