User Tools

Site Tools


tutorials:library:software:serialmonitor.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:library:software:serialmonitor.html [2011/08/01 18:38]
daigo created
tutorials:library:software:serialmonitor.html [2016/01/28 18:05] (current)
Line 1: Line 1:
-   +====== Moved! ======
-==== Introduction  ​====+
  
- +This tutorial ​has moved to [[http://learn.adafruit.com/maker-business-manufacturing-software-our-tips-and-tricks|http://learn.adafruit.com/​maker-business-manufacturing-software-our-tips-and-tricks]]
-A while ago we did a tutorial ​on how to reverse engineer USB protocols using a USB logic analyzer, for when you have to develop your own USB drivers (say for a product that only comes with Microsoft support!) We also wanted to point out that if all you're doing is debugging or reverse-engineering a basic product that uses serial (a COM port) you don't need to shell out for a analyzer box! Instead you can use a serial port monitor, a piece of software that can spy on the COM port. These can also be handy when you have to debug software you wrote - to see what's really going out on the hardware. +
- +
- +
- +
-[[http://technet.microsoft.com/en-us/​sysinternals/​bb896644|We tend to need to reverse-engineer stuff in windows so we use a nicely written piece of software ​called PortMon]]. Its a little old but it works great! +
- +
- +
- +
-For example, while reverse engineering how to use our [[http://www.adafruit.com/​products/​397|serial JPEG camera]], we had a windows software that could control the camera but we wanted to port it to Arduino (or any microcontroller really). Since the software used a serial COM port, we started up PortMon, then started up the driver software +
- +
- +
- +
-Then whenever data was sent back and forth, we'd get the data in HEX. For example here you can see the first READ (data sent out to the camera) as "76 00 31 00 00" and the WRITE (reply from the camera to the computer "56 00 31 0C 01..."​ +
- +
-{{  http://​www.ladyada.net/​images/​software/​commtool.gif?​nolink&​902x378 ​ |}} +
- +
- +
- +
-We do suggest using the filtering capability to avoid having a lot of extraneous reports like when the port is opened for reading, baud rate set, timeouts, etc. unless thats particularly what you're looking to debug. +
- +
-{{  http://​www.ladyada.net/​images/​software/​portmonfilter.gif?​nolink&​417x190 ​ |}} +
- +
-  ​+
/home/ladyada/public_html/wiki/data/attic/tutorials/library/software/serialmonitor.html.1312223886.txt.gz · Last modified: 2016/01/28 18:05 (external edit)