Serial port interfacing the Bus Pirate, Infrared Toy, and Logic Sniffer

Serial port interfacing the Bus Pirate, Infrared Toy, and Logic Sniffer


While USB is all around us, the humble (virtual) serial port is still everywhere. Today we explore the serial interface on the Infrared Toy, Bus Pirate, and Logic Sniffer. See a demonstration of the binary interfaces and commands normally used only by software utilities.

More: http://dangerousprototypes.com/?p=52413
Closed Caption:

welcome to today's prototypes I mean
today I'm going to show you how to use
the serial port interface some of our
projects the serial port is a common to
our interface has been around computers
for decades now and even most
microcontrollers have a serial port in
the form of aur is actually the
different voltage levels so it's not
directly compatible with computers even
that with USB is the most popular face
the serial port still with us we're not
playing in serial port cables anymore
though
emulating over USB that's really handy
because devices can be powered by USB
and still appears a simple serial port
to the computer there's a lot of old
applications that work with serial ports
that are still very useful and it's also
a lot easier to write your own software
to work with the serial port even a
simple scripting language like Python or
pearl can use a serial port was just a
few lines of code but if you want to use
USB even something simple like USB HID
going to end up pulling in a lot of
drivers a lot of setup involves gonna be
a lot more difficult
we'll start with the bus pirate because
it's an easy device interface used in ft
2 3 2 USB to serial converter chip that
takes the USB signals and converts them
to 3.3 volt you are that the pic uses to
do all the bus pirate stuff the best
powers interface from a simple serial
terminal freezing teraterm open a
connection to the bus pirate on compton
and we hit enter the command line in the
bus pirate shows this is the high
impedance mode command prompt
it means that nothing is going out of
the bus pirate that means it's safe to
connect your project without worry
there's going to be any damage to it we
can hit I to get some information about
this bus pirate is a version 3d hardware
hit ? and enter to see the menu for the
bus pirate this is all simple stuff this
is just using a simple serial terminal
interface but the most part also has a
binary mode and that's something scripts
can use to send raw by commands to it
and control the different features of
the bus pirate the binary mode needs
characters that we can't type from a
keyboard have to be raw fight values
that are sent to the bus pirate will use
that using a program called Hercules
will open up the most part on content
we're going to type some simple commands
here to like I to get into binary mode
we send 00 20 times it actually 00 typed
out this is the byte value type is a hex
value is sent to the bus pirate and the
best part response it bang I am owed
version 1 so now we're in the binary
mode we can send some other commands
like you're 20 and i squared C mode and
it responds i squared C version one is
all easy stuff all these commands are
completely documented on the wiikey so
if you're writing a script you want to
control the bus hire on these modes it's
just a matter of sending these simple
commands as x values to the bus pirate
over the serial port now let's move on
to the logics never this is a logic
analyzer we could develop with the
gadget factory they can record signals
between two chips and show it as a graph
on the screen
it's a lot easier to debug your project
when you can see why things aren't
working and it is to work blind
this is one of the handiest tools in our
workshop we highly recommend it will
connect to the logics differ on comport
13 it's in normal mode right now and
this speaks was called the some protocol
this is a protocol defines how the field
programmable gate array takes
instructions from the computer and don't
data back to be shown on the display so
first with some protocol will send 05
times to reset it no matter what command
it's stuck in or where it's stuck at the
logic analyzer will be completely reset
after we send 05 times command to
returns the protocol version response
one ALS which is actually some logic
analyzer version one backwards that's a
quirk of the old equipment that was
originally based on one of our
extensions to the sub protocol was a
metadata command returns some extended
data so the software can adjust to
different hardware this wasn't part of
the original some protocol we say
command 04 we get back a descriptor the
first part of the descriptor is filled
01 and that's a text description of the
hardware this attached here it says open
audition for version 1.01 the string is
terminated with the null character which
is 00 the next bit is 0-2 which is the
version and simple tax form also
terminated with the null character and
then from there we have some actual
fight values that so things like the
number of probes the amount of memory so
the client can adapt to the capabilities
of the hardware now connect to the
largest never again this time in update
mode the commands here a little
different
each command is four bytes we send all
four times we get back hardware version
1 firmware 3.0 bootloader version to
point out
other interesting come and we can set
his command one and i'll return the
version of the flash chip on the board
there's actually a whole bunch of
different flash chips out there because
supply changes all the time so we've had
to tweak the software and the firmware
to handle different ships we can get
that version by setting the jtech
command which is a standard command all
flash chips respond to the one command
again is a four by command the first
fight is won the last three by 2017 that
and we get back the jtech ID now
currently we're in text mode way to
switch over to full hex mode and do that
again we said our command 1000 we get
back cf-30 1300 if you look on the
weekly if you look on the internet
you'll find out that that's a win bond
ship with four megabytes of storage
space
another interesting commands the
self-test command that's command seven
this is the same self-test this run
every time the logic analyzer starts up
send it it takes a second the board will
reset our result code zero and that
means there's no errors but let's hold
on the Update button and try it again
this time we get there 20 if you look at
the area code table will show that this
is a problem with the pull-up resistor
on the Update button and it's correct
now let's close that out and move on to
the final device USB infrared toy
this is an infrared receiver training
center computer so you can control your
computer with the remote control you can
also look at the signal logic analyzer
and see what it's doing the IRS way as a
couple different commands it will
actually work from normal serial
terminal so let's check those out first
we sent via will get the hardware and
firmware version in this case is
hardware version 1 firmware version 21
another command is the self-test which
we can get by sending t we type T in
this case it gives us the version again
which means it past the self-test
there's something wrong here we go to
failure code and finally the default
mode of the IR toys and ir man
compatible rc5 decoder the way the
ironman protocol works the pc says ir to
the device the device response ok
in our case we just respond ok anytime
we see the letter R if I had type r into
the terminal we get back okay we know
what we're in rc5 decoder mode most of
the IRA toid commands require all about
values
so now we're going to move over to
Hercules and said some of those this is
an RC 5 remote control the IRS will
decode the codes and show them as six
bike packets in the terminal will hit
play first the button press gave 26 by
packets the remote protocol is money
specific button is 75 and then we've got
four device that will never be anything
with zero we had different buttons we
get different values is play and rewind
and fast-forward and number 1 2 3 4 5 6
and so on the IR 24 MOS the subject
analyzer protocol just like the logics
never logic analyzer does that we can
capture remote control codes and
visualize them on the screen just like
with the logics never will send 05 times
that are reset in the logic analyzer
mode now we can send some simple logic
analyzer commands like to get the
response one analyst which is some logic
analyzer version one just like the
logics never did today we explored three
devices using a serial terminal even
though we live in a world dominated by
USB serial ports are still everywhere
you can use simple techniques like these
to rescue a router or talk to the
bootloader on your digital camera will
be back next week with a new workshop
video thank you for watching

Video Length: 09:27
Uploaded By: iantube
View Count: 15,089

Related Software Products
Serial Port Monitor
Serial Port Monitor

Published By:
ELTIMA Software GmbH

Description:
Serial Port Monitor is a professional application for RS232/422/485 COM ports monitoring. It monitors, displays, logs and analyzes all serial port activity in a system. It can effectively be used for monitoring serial data exchange between serial devices and any Windows application, debugging computer connection with peripheral devices using COM port - such as modem, mini-ATS, projector, etc, for solving problems with serial (RS232/422/485) data communication control networks and devices, for ...

Serial Port Terminal
Serial Port Terminal

Published By:
ELTIMA Software GmbH

Description:
Advanced Serial Port Terminal is a session-based, multi-purpose application that provides simple communication interface to connect to any serial port device (modem;fax;GPS;mouse;printer and so on). Whether you want to connect to remote computer using null-modem cable, send or receive various types of data (ASCII string, binary, octal and hexadecimal) over a serial line, redirect input or output data streams into a specified file, monitor data exchange between serial devices, troubleshoot and ...


Related Videos
Serial COM Tutorial Part 3 (Verify with Putty Hyperterminal)
Serial COM Tutorial Part 3 (Verify with Putty Hyperterminal)

This tutorial shows how one can use their PC virtual COM ports for easy serial communication. hr / bClosed Caption:/b hello welcome back to the third part of the serial comport tutorial for this tutorial I'll show us how to use putty to test your hardware step back in the second tutorial so first thing you do is make sure you have a plug in your USB to tease out TTL converters into the USB ports so I'll do that right ...
Video Length: 02:00
Uploaded By: Kelvin Le
View Count: 73,455

SerialPort Example
SerialPort Example

Serial Port Testing using VB.net 2010 Express Edition
Video Length: 01:30
Uploaded By: LMX9835
View Count: 41,501

RS232 Monitor software for COM ports monitoring
RS232 Monitor software for COM ports monitoring

http://www.eltima.com/products/serial... RS232 Monitor is a good software for COM port monitoring. You can easily analyze and monitor all serial port activity in a system. This is an ideal way to track down problems that may occur during application or driver development, testing and optimization of serial devices, etc. Keywords: rs232 monitor monitor rs232 rs232 port monitor rs232 port monitor download rs232 monitor software monitor rs232 portbr ...
Video Length: 02:39
Uploaded By: David Turner
View Count: 32,130

Serial Port Bluetooth (SPP) HC 05 for Android
Serial Port Bluetooth (SPP) HC 05 for Android

This video show how to Connect the HC-05 Bluetooth module and sending data from/to PC via android phone. More detail please visit my blog at http://tutorial.invention-zone.com/bl...
Video Length: 03:39
Uploaded By: Langga Rimon
View Count: 31,493

serial port setup.wmv
serial port setup.wmv

Troubleshooting tips for PC serial comm port, using a USB to serial adapter. We show how to install and test a USB to serial adapter, and how to test it by using a terminal emulator program like Hyper Terminal, or FunTerm in this case. By shorting across pins 2 and 3 you can verify that your USB to Serial adapter is working. You can also see if a serial com port is working by using an LED. On the male DB-9 connector, you can put an LED across pins 5 and 3 and when data is sent the LED will ...
Video Length: 03:28
Uploaded By: microwizard
View Count: 23,226

Serial Port Monitor: analyze serial port activity
Serial Port Monitor: analyze serial port activity

http://www.eltima.com/products/serial... Powerful system utility for serial ports monitoring. The program monitors, displays, logs and analyzes all serial port activity in a system. Perfect software solution for serial port monitoring. Keywords: download serial port monitor free serial monitor free serial port monitor serial analyzer serial com port monitor serial data analyzer serial data logger serial data monitor serial loggerbr ...
Video Length: 02:40
Uploaded By: USB Software
View Count: 17,915

Connecting Ubuntu to Real Cisco Hardware Using USB-to-Serial Adapter
Connecting Ubuntu to Real Cisco Hardware Using USB-to-Serial Adapter

This quick video will show you how you can connect your real hardware networking equipment such as Cisco routers and switches into your PC running Ubuntu 11.10/12.04 using serial-to-USB adapter. Most, if not all, of the current motherboards do not come with pre-built COM (AKA serial) ports any more, so this video will show you how you can connect to the adapter using an excellent program called 'minicom'. Regards hr / bClosed Caption:/b font ...
Video Length: 10:14
Uploaded By: GNS3Talk
View Count: 13,330

232Analyzer - Advanced RS232 Serial Port Monitor Terminal Protocol Analyzer Software
232Analyzer - Advanced RS232 Serial Port Monitor Terminal Protocol Analyzer Software

232Analyzer is an advanced serial port protocol analyzer software that allows programmers, engineers, and others to control, monitor and analyze serial port (RS232 / RS485 / RS422 / TTL, etc.) activities. 232Analyzer supports data input and monitoring in ASCII, Hexadecimal, Decimal, Octal and Binary formats. It also allows you to monitor or change RS-232's Handshaking line states: RTS, DTR, CTS, DSR, DCD, and RI. With the port-powered RS232 to RS485/RS422 or RS232 to TTL converter, ...
Video Length: 01:22
Uploaded By: CommfrontComm
View Count: 10,453

TISHITU (Serial Port Rs232 Protocol Simulation In Keil Compiler ) Input Through 232 Port
TISHITU (Serial Port Rs232 Protocol Simulation In Keil Compiler ) Input Through 232 Port

RS232 is a asynchronous serial communication protocol widely used in computers and digital systems. It is called asynchronous because there is no separate synchronizing clock signal as there are in other serial protocols like SPI and I2C. The protocol is such that it automatically synchronize itself. We can use RS232 to easily create a data link between our MCU based projects and standard PC. Excellent example is a commercial Serial PC mouse (not popular these days, I had got one with my old PC ...
Video Length: 10:49
Uploaded By: tishitu
View Count: 8,569

RS232 sniffer software for monitoring serial pors.
RS232 sniffer software for monitoring serial pors.

http://www.eltima.com/products/serial... RS232 sniffer helps you to track and analyze all data flows from any software or hardware that works with a serial port. Advanced filtering and search will help you to manage the program. Keywords: rs232 sniffer rs232 sniffer software rs232 sniffer download sofrware for rs232 sniffer download rs232 sniffer sniff rs232 port sniff rs232 port download sniff rs232 port soft sniff rs232 port ...
Video Length: 02:33
Uploaded By: David Turner
View Count: 8,441

Copyright © 2025, Ivertech. All rights reserved.