-
Notifications
You must be signed in to change notification settings - Fork 92
HydraFW commands
I recommend Putty for terminal to be used with HydraBus hydrafw connected with USB1 or 2 When connected type h for help and use TAB key for completion, you can also use arrow up or down for history. mount, umount, ls, cat & erase work only when a micro SD card is inserted in HydraBus.
For microSD read performance test results (command sd_rperfo) see: https://github.com/bvernoux/hydrafw/wiki/HydraBus-microSD-read-perfomance
##HydraFW (HydraBus/HydraNFC) v0.3-beta a1c311e 2014-10-31 supported commands: ###1) HydraBus AND/OR HydraNFC:
? or h - Help
clear - clear screen
info - info on FW & HW
ch_mem - memory info
ch_threads - threads
mount - mount sd
umount - unmount sd
cd <dir> - change directory in sd
pwd - show current directory path in sd
ls [opt dir] - list files in sd
cat <filename> - display sd file (ASCII)
hd <filename> - display sd file (HEX)
sd_rperfo - sd read performance test
erase - erase sd
###2) HydraBus only: m - Change mode i - Mode information
####2-1) Mode supported (with command m
):
1=HiZ, 2=SPI, 3=UART, 4=I2C
####2-1-1) Mode HiZ options supported (with command m 1
):
This mode is just a safe mode (all I/O are set in HiZ)
This mode can be also use to test protocol interaction commands.
####2-1-2) Mode SPI options supported (with command m 2
):
SPI device number: 1=SPI1, 2=SPI2
SPI Mode: 1=Slave, 2=Master
SPI Freq depending on device number:
SPI1 Freq: 1=0.32MHz, 2=0.65MHz, 3=1.31MHz, 4=2.62MHz, 5=5.25MHz, 6=10.5MHz, 7=21MHz, 8=42MHz
SPI2 Freq: 1=0.16MHz, 2=0.32MHz, 3=0.65MHz, 4=1.31MHz, 5=2.62MHz, 6=5.25MHz, 7=10.5MHz, 8=21MHz
SPI Clock Polarity(POL)/Phase(PHA): 1=POL0/PHA0, 2=POL0/PHA1, 3=POL1/PHA0, 4=POL1/PHA1
SPI LSB/MSB Transmitted First: 1=MSB Tx first, 2=LSB Tx first
Hardware Info: Pins=SPI1 CS=PA15, SCK=PB3, MISO=PB4, MOSI=PB5 Pins=SPI2 CS=PC1(SW), SCK=PB10, MISO=PC2, MOSI=PC3
Example for SPI1:
m
2 1 2 8 4 1
-
SPI mode: 2
-
SPI device number: 1=SPI1,
-
SPI Mode: 2=Master,
-
SPI1 Freq: 8=42MHz,
-
SPI Clock Polarity(POL)/Phase(PHA): 4=POL1/PHA1,
-
SPI LSB/MSB Transmitted First: 1=MSB Tx first
When a mode is fully configured you can use "Protocol Interaction" commands.
####2-1-3) Mode UART options supported (with command m 3
):
UART device number: 1=UART1, 2=UART2
UART Freq:
1=300bps, 2=1200bps, 3=2400bps, 4=4800bps, 5=9600bps,
6=19200bps,7=38400bps,8=57600bps,9=115200bps, 10=31250bps,
manual up to 10.5mbps
UART Parity: 1=8/none, 2=8/even, 3=8/odd
UART Nb Stop Bit: 1=1 stop, 2=2 stop
Hardware Info: Pins=UART1 TX=PA9, RX=PA10
####2-1-4) Mode I2C options supported (with command m 4
):
I2C Freq: 1=50KHz, 2=100KHz, 3=400KHz
This mode support only Master I2C.
Hardware Info: Pins=I2C1 SCL=PB6, SDA=PB7
####2-2) Protocol Interaction
[
Start (for SPI, I2C means Enable Chip Select)
]
Stop (for SPI, I2C means Disable Chip Select)
{
Start with Read (for SPI means Enable Chip Select)
}
Stop (for SPI means Enable Chip Select)
:
Repeat (e.g. r:10
)
&
DELAY us (support optional repeat :
)
%
DELAY ms (support optional repeat :
)
123
0x12
0b110
Send 8bits val (support optional repeat :
)
r
Read (support optional repeat :
)
During a blocking read or write which wait for data(for example Slave mode) you can abort the wait by pressing HydraBus UBTN, else you can also wait timeout which is about 10s.
###3) Additional commands for HydraBus+HydraNFC:
nfc_mifare - NFC read Mifare/ISO14443A UID
nfc_vicinity - NFC read Vicinity UID
nfc_dump - NFC dump registers
nfc_sniff - NFC start sniffer ISO14443A
nfc_sniff can be started by K3 and stopped by K4 buttons
- CHANGELOG
- Console commands
- Binary mode guide
-
NFC/HydraNFC v1 guide
- Read UID of an ISO/IEC_14443 Tag
- Read UID and data of a MIFARE Ultralight Tag
- Read UID of an ISO/IEC 15693 Tag
- Emul ISO14443a Tag
- Emul MIFARE Ultralight Tag
- Emul Mifare Classic Tag
- Unique NFC sniffer design
- Launch NFC sniffer from console
- Sniffer ISO14443A wireshark pcap
- Autonomous/stand-alone sniffer mode
- Sniffer ISO14443A real-time infinite trace mode
- HydraFW-HydraNFC-v1.x-TRF7970A-Tutorial