@ECHO OFF
REM "find" command error codes:
REM 0 – The string you were searching for was found.
REM 1 – The string you were searching for was not found.
REM 2 – This means you had a bad switch or your parameters were incorrect.
REM To test: "arp -d [IP]" cancels entry from arp table. Root privilages are required.
setlocal enabledelayedexpansion
set IPclass=%1
set MACaddress=%2
set "result="
IF "%MACaddress%"=="" (
ECHO Ver. 3.0
ECHO Usage: rarp [IP class] [MAC address]
ECHO My popular MAC addresses:
ECHO Raspberry B = "b8-27-eb-xx-xx-xx"
GOTO break
) ELSE (
FOR /l %%i IN (1,1,254) DO (
CALL :searchMAC
IF ERRORLEVEL 1 GOTO break
ping -n 1 -w 1 %IPclass%.%%i | find "Reply" > NUL
)
)
REM There will be a for cycle if 'arp -a ^| findstr %MACaddress%' gives a reult of at least one line!!
:searchMAC
SET ERR=0
FOR /f "tokens=*" %%j IN ('arp -a ^| findstr %MACaddress%') DO (
ECHO Found: %%j
SET ERR=1
)
IF %ERR% == 0 ECHO|set /p="."
EXIT /b %ERR%
:break
Pokazywanie postów oznaczonych etykietą Raspberry Pi. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą Raspberry Pi. Pokaż wszystkie posty
czwartek, 12 stycznia 2017
RARP batch script
This is my batch script with functionality of reversed arp protocol. It is useful for finding IP address of computers with dynamic IP address like Raspberry Pi.
wtorek, 25 listopada 2014
3D printed box for RaspFPGA
This is my first printout using the fused deposition modelling technique. I've made an enclosure for the RaspFPGA board. Preparing CAD files I took the measurements of the second version of the RaspFPGA board but the first version of the RaspFPGA should also fit inside. It has been printed out on the Leapfrog creatr. For the final result look at the pictures below.
piątek, 13 września 2013
RaspFPGA mezzanine board for Raspberry Pi
I present to you an extension card for Raspberry Pi. This circuit connects all GPIO pins of Raspberry Pi to Spartan3 FPGA chip and leaves all remaining inputs/outputs pins of FPGA for the final user. I used Spartan3AN chip which can be configured from internal flash memory at start up or by SPI from Raspberry Pi.
The circuit is mechanically and electrically compatible with LCD TFTDisp 4 RaspPAR design published on my blog in March. It contains 25MHz clock source for FPGA, USB to RS232 converter and real time module.
I share this piece of hardware with community as OpenHardware.
RaspFPGA-E6 v1.1_4MBEcho.zip
piątek, 29 marca 2013
LCD TFTDisp 4 RaspPAR
Here it is! An LCD display for Raspberry Pi (v2). Lately I play with Raspberry Pi micro-computer. I've found bothering lack of small display and real-time clock (RTC) on-board. Necessity is the mother of invention, so I bought a TFT display, designed a mezzanine PCB and wrote patch for Linux Raspbian "Wheezy". In this post I would like to share it with you my work in few steps.
1. I bought an LCD module, with SSD1298 controller.
2. I prepared a mezzanine PCB to fix the screen and RTC.
3. I manufactured the PCB.
4. Finally I present you the display working with Raspberry Pi.
At the beginning of this post it's written that the screen and kernel patch works with Raspberry board version 2 but it is possible to modify either the patch and PCB to make it works with version 1.
If you want to have the screen functional at the boot remember to remove default frame buffer form config files before kernel compilation.
Special thanks to Jeroen Domburg from SpritesMods for help in code development and to my wife who supports my hobby.
ssd1298_kern3.6.11_rasp_v2.patch
UPDATE:
I've prepared the patch for revision 1.0 of Raspberry Pi. The display connection to the board rev. 1.0 requires some soldering skills. Below there is a list of resistors which one has to remove in order to connect missing IO pins.
ssd1298_kern3.6.11_rasp_v1.patch
1. I bought an LCD module, with SSD1298 controller.
3. I manufactured the PCB.
4. Finally I present you the display working with Raspberry Pi.
At the beginning of this post it's written that the screen and kernel patch works with Raspberry board version 2 but it is possible to modify either the patch and PCB to make it works with version 1.
If you want to have the screen functional at the boot remember to remove default frame buffer form config files before kernel compilation.
Special thanks to Jeroen Domburg from SpritesMods for help in code development and to my wife who supports my hobby.
ssd1298_kern3.6.11_rasp_v2.patch
UPDATE:
I've prepared the patch for revision 1.0 of Raspberry Pi. The display connection to the board rev. 1.0 requires some soldering skills. Below there is a list of resistors which one has to remove in order to connect missing IO pins.
GPIO28 - R8 & R10
GPIO29 - R7 & R9
GPIO30 - R4 & R6
GPIO31 - R3 & R5
ssd1298_kern3.6.11_rasp_v1.patch
niedziela, 18 listopada 2012
Raspberry Pi Rev1 & 2 EAGLE PCB library
Pod adresem: Raspberry Pi udostępniam bibliotekę PBC w formacie EAGLE 5 zawierającą obie wersje płytki Raspberry Rev1 oraz Rev2. Plik jest to zmodyfikowaną wersją biblioteki udostępnionej przez użytkownika jaclag na oficjalnym forum Raspberry Pi. Informacje o lokalizacji złącz i ich wyprowadzeniach pobrałem z:
http://elinux.org/RPi_Low-level_peripherals#Graphical_User_Interfaces
http://www.raspberrypi-spy.co.uk/2012/09/raspberry-pi-p5-header/
Poprawność elementów w tej bibliotece nie została sprawdzona w rzeczywistości. Proszę o komentarz kogoś kto posiada wersję Rev2 płytki i skorzystał z tej biblioteki.
http://elinux.org/RPi_Low-level_peripherals#Graphical_User_Interfaces
http://www.raspberrypi-spy.co.uk/2012/09/raspberry-pi-p5-header/
Poprawność elementów w tej bibliotece nie została sprawdzona w rzeczywistości. Proszę o komentarz kogoś kto posiada wersję Rev2 płytki i skorzystał z tej biblioteki.
Subskrybuj:
Posty (Atom)
