

If you want to use grabserial with minicom on the same serial port without conflict, for example to temporarily set a boot parameter or specify a different kernel image without changing the parameters in flash, you could follow this procedure: The '-v' makes grabserial verbose (printing some extra messages before starting. Received, and restarting the timestamp at 0 when a line containing "Kernel start" is seen. This will capture and display data for 30 seconds, putting a timestamp on each line This opens /dev/ttyUSB0, at baud rate 115200, and 8-bit chars, No parity and 1 stop bit. This will echo data seen on device /dev/ttyS0, until the user presses ctrl-C. The start time for the time measurements, to make it easier to see the Printed out will be relative to this base. Pattern is seen, it sets a "base time", and all subsequent time values To match against the lines read from the serial port. With grabserial, you can specify a pattern

A common thing to measure onĪ target running embedded Linux is bootup time. This is useful to measure the time it takes for events Useful for including the script in automated test scenarios.Īlso, you can tell the program to provide timing information for each However, youĬan tell the program to stop after a certain amount of time. Interrupted by the user (usually by typing control-C). Reading from the serial port and writing to standard out until it is Normally, the program runs in an infinite loop, If no options are specified, grabserial uses serial port You can specify the serial configuration options, including the Linuxĭevice node to use, and the port speed settings on the grabserialĬommand line. Use 'grabserial -h' to see online usage for the program. The grabserial program is very simple, but it provides some usefulĮxtra features that make it more than a mere 'cat' program. The current version as of November 2011 is 2.6, which is newer than what I've The latest Pyserial can be obtained from:
#Python serial library reset install
To install this, download the archive, unzip it, and following the installation 'python', then "import serial" in the interactive python interpreter. (You can check if you already have it by typing: Here's a copy you can install if you don't have it. The BeagleBoard with Angstrom needs a 'opkg install python-pyserial'. For example, to install it on Fedora 12,ĭo this (as root): 'yum -y install pyserial'. Grabserial requires the python "serial" module. Note: You should not have to do this by hand, you should uses the setup.py script to install 'grabserial' This will place 'grabserial' in your path and will also download and install the dependencies of 'grabserial' (only pyserial for 1.5.1).įile:Grabserial-1.0.0 pyserial (required python library) To install, you must have the python-setuptools package installed (It comes bundled with a lot of distribution) and then do: Please rename to lowercase on download (e.g. Note: Due to MediaWiki stupidity, this file downloads with a leading upper-case letter, and a txt extension. (See File:Grabserial for file information) Right click on the link and select "Save Link as" to download. I don't know why you'd want these, but here are some older versions of 'grabserial':Īn older version (1.5.0) is available here: Media:grabserial-1.5.0 The latest released version is available here: (currently 2.0.2) Linux, and save the messages on a host machine. Messages written to the serial console from a target board running The main purpose of this tool is to collect Grabserial is a small program which reads a serial port and writes theĭata to standard output.
