Difference between revisions of "HydraNFC"
Jump to navigation
Jump to search
m |
m (→HydraNFC) |
||
Line 61: | Line 61: | ||
=HydraNFC= |
=HydraNFC= |
||
HydraNFC must be plugged on the front side of HydraBus! |
HydraNFC must be plugged on the front side of HydraBus! |
||
+ | ==Sniffing== |
||
+ | * "nfc_sniff" or press K3 |
||
+ | * Press K4 to interrupt |
Revision as of 15:49, 7 October 2014
Some personal notes...
Links
HydraBus
See https://github.com/bvernoux/hydrabus/tree/master/firmware/hydrafw
Getting firmware sources
sudo apt-get install git dfu-util python
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
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 or USB2) to PC
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!
Sniffing
- "nfc_sniff" or press K3
- Press K4 to interrupt