HydraNFC
Revision as of 13:31, 10 March 2015 by <bdi>PhilippeTeuwen</bdi> (talk | contribs) (→Flashing firmware)
Some personal notes...
HydraBus
Links
Getting firmware sources
sudo apt-get install git dfu-util python python-git
cd .../path_to_hydrabus
wget http://www.bialix.com/intelhex/intelhex-1.4.zip
unzip intelhex-1.4.zip
cd intelhex-1.4
python setup.py install --user
cd .../path_to_hydrabus
wget https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
tar xjf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
git clone https://github.com/bvernoux/hydrabus.git hydrabus
cd hydrabus/
git submodule init
git submodule update
cd firmware/hydrafw
git submodule init
git submodule update
Compiling firmware
cd .../path_to_hydrabus
export PATH=$PATH:$(pwd)/gcc-arm-none-eabi-4_7-2013q3/bin
cd hydrabus/firmware/hydrafw
make clean
make
Flashing firmware
cd .../path_to_hydrabus
cd hydrabus/firmware/hydrafw
python dfu-convert.py -i ./build/hydrafw.hex ./build/hydrafw.dfu
Now connect HydraBus pin BOOT0 to 3V3 (using a dual female splittable jumper wire) to enter USB DFU and connect microUSB (USB1) to PC
Since v0.5-beta, no need for wires, just press UBTN at PowerOn/RESET
sudo dfu-util -a 0 -d 0483:df11 -D ./build/hydrafw.dfu
Disconnect MicroUsb cable from HydraBus and Disconnect 'BOOT0 to 3V3' and Reconnect microUSB to PC
Getting ready to use HydraBus
sudo apt-get install screen
cat |sudo tee /etc/udev/rules.d/09-hydrabus.rules << EOF
# UDEV Rules for HydraBus boards, http://www.hydrabus.com
# Avoid modem-manager to mess with this device:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0664", GROUP="plugdev"
EOF
sudo udevadm trigger
Users members of plugdev group are now ready to use HydraBus
Using HydraBus
Connect microUSB (USB1 or USB2) to PC
screen /dev/ttyACM0
"h" for help, TAB for autocompletion
HydraNFC
HydraNFC must be plugged on the front side of HydraBus!
Links
- http://hydrabus.com/hydranfc-1-0-specifications/
- https://github.com/bvernoux/hydranfc
- http://www.ti.com/product/trf7970A
- http://bvernoux.blogspot.fr/2012/01/nfc-ti-trf7970a-breakout-board-v10-for.html
Sniffing
- "nfc_sniff" or press K3
- Press K4 to interrupt
If a MicroSD is present, it will automatically save the trace in a txt file