Tag: hacking

Bus Pirate + FSA03 GPS How to:

Posted by Ril3y on April 2, 2010 | One comment


DSC_5713.JPG

I have a few projects that I would like to include GPS data in, in the near future.  So I went ahead and picked up a nice ublox based GPS.  YOu can get it here:  I wanted to used it right away.  So rather than coding up some AVR C or arduino stuff I decided to use my bus pirate for the job.  Here is the settings I used to get it up and going:

Hardware Settings Table:

Hardware Pinout Table
BPv3 to FSA03 (GPS)
3.3v to 3v
MISO to TXL
MOSI to RXL
GND GND

Mode: UART
SPEED: 9600
Then default everything else:


Bus Pirate v3
Firmware v3.1
DEVID:0×0447 REVID:0×3003 (A3)
http://dangerousprototypes.com
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. JTAG
7. RAW2WIRE
8. RAW3WIRE
9. PC KEYBOARD
10. LCD
(1) >3
Mode selected
Set serial port speed: (bps)
1. 300
2. 1200
3. 2400
4. 4800
5. 9600
6. 19200
7. 38400
8. 57600
9. 115200
10. 31250 (MIDI)
(1) >5
Data bits and parity:
1. 8, NONE *default
2. 8, EVEN
3. 8, ODD
4. 9, NONE
(1) >
Stop bits:
1. 1 *default
2. 2
(1) >
Receive polarity:
1. Idle 1 *default
2. Idle 0
(1) >
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1) >
READY
UART>W
POWER SUPPLIES ON
UART>r
READ: -f 0×00
UART>r
READ: 0×24
UART>r
READ: -f 0x8F
UART>r
READ: -f 0xA0
UART>r
READ: -f 0×48
UART>r
READ: -f 0×48
UART>
So you can see I am getting hex data.  Note you can just enter { in the BPv3 command prompt to enable reading from the UART port constantly.  However for copy paste issues for this post I chose to issue single byte read (r).  Next is to write some arduino or avr code to translate this NEMA standard output to a human readable format.  (Yes I know there are libs available however I prefer to learn by doing)  So up next Code!
Google Buzz

Tags: , , , , ,

Buss Pirate V3 Basics on Mac

Posted by Ril3y on November 16, 2009 | One comment

 

Bus Pirate - V3

Today I got home from my day job and found at small package with custom stamps all over it.  Needles to say this was the V3 Bus Pirate that I orded about 3 – 4 weeks ago.  After I took it out of the package I wanted to test it out a bit.  Kicked on the Macbook Air and hooked it up.  The quick and easy way to connect to the Bus Pirate V3 via OSX is just to do this:


screen /dev/tty.usbserial-A600aSlz  115200

After that you should see something like this: (If you don’t see anything just hit enter a few times)

Bus Pirate V3 - OSX





Once there I typed in capitol M and it quickly displayed a listing of supported protocols seen here:

Bus Pirate V3 - OSX



So just push something like 9 <enter> and it will change the mode of the bus pirate to PC KEYBOARD mode.  Very cool stuff.  Will blog more on it after my work on the contraptor.org project for the lightning talks @hacdc is over.

Screen shot 2009-11-16 at 6.01.39 PM





ril3y

Google Buzz

Tags: , , , ,

OpenWRT + Router Station Pro + Arduino = Fun

Posted by Ril3y on September 30, 2009 | 3 comments

Around 11PM last night I finally was able to get all the Arduino Hardware talking to my Openwrt Router Station Pro Installation.  These are the packages you need to have on your system.  (if you built your own firmware with theses great! otherwise just opkg install them)

Like So:

root@OpenWrt:~# opgk install usbutils

Install the rest of these packages the exact same way:

  • usb-ohci
  • kmod-usb-serial-ftdi
  • kmod-usb2
  • kmod-usb-serial(Note: these packages are needed if you want to us the MMC/SD Card on the RS PRO)
  • kmod-usb-storage
  • kmod-mmc

Once that is done you can issue the lsusb command to see if your system recognizes the Arduino FTDI interface.  You should see something like this.

Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0723 Genesys Logic, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you do not see the UART (FTDI) device go ahead and reboot your system and it should come up.  If it does not you are missing a package email me we can see whats up.

Will add more later but here some screenshots of the system working.

DSC_4002

Google Buzz

Tags: , , , , , ,

Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)

Bad Behavior has blocked 88 access attempts in the last 7 days.