Airdrive Rs-232 Recorder Airdrive Rs-232 Recorder TS: User'S Guide
Airdrive Rs-232 Recorder Airdrive Rs-232 Recorder TS: User'S Guide
User’s Guide
1 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Table of contents
Table of contents ...................................................................................................................... 2
Getting started .......................................................................................................................... 2
Introduction .............................................................................................................................. 3
About the product ................................................................................................................. 3
Features ............................................................................................................................... 3
Requirements ....................................................................................................................... 3
Quick Start ............................................................................................................................... 4
Configuration ............................................................................................................................ 7
Recording data ....................................................................................................................... 10
Viewing recorded data ............................................................................................................ 11
Clock configuration ................................................................................................................. 13
Configuration files................................................................................................................... 15
CONFIG.TXT ...................................................................................................................... 15
TIME.TXT ........................................................................................................................... 17
Virtual COM mode .................................................................................................................. 18
Specifications ......................................................................................................................... 19
Troubleshooting...................................................................................................................... 20
Legal disclaimer ..................................................................................................................... 22
Getting started
Already familiar with AirDrive RS-232 Recorder data loggers?
Configure your device and start logging in 5 simple steps: section Quick Start
Questions or problems?
2 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Introduction
The AirDrive RS-232 Recorder is a compact RS-232 and serial bus logger with high-capacity
internal memory, which may be accessed as a USB flash drive. Bidirectional data flowing
through the serial bus will be captured and stored on the internal flash drive in a special file.
This data may be retrieved by switching to flash drive mode. The logger will pop up as a
removable drive, giving instant access to all captured data. The AirDrive RS-232 Recorder
does not require any dedicated software or drivers.
The AirDrive RS-232 Recorder TS has an additional built-in time-stamping module and
battery. This enables adding time and date information to the log file. Thanks to the internal
battery, the time and date persist even when the device is not powered.
Features
Requirements
3 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Quick Start
This section contains concise information on basic operation of the AirDrive RS-232 Recorder
and AirDrive RS-232 Recorder TS. If you need detailed instructions, please refer to sections
Configuration, Recording data, and Viewing recorded data.
Before you start, make sure you have the following information about the serial bus you want
to log data from:
Step 1. Open a text editor (such as Notepad) and create a file named CONFIG.TXT. This file
will later be used to configure the device. Use the following template:
Baudrate=9600
Bits=8
Parity=No
StopBits=1
Replace Baudrate with the actual baud rate in bits per second of the serial bus you want to
log data from. Replace Bits with the number of bits per transfer (5…8). Provide the parity
check using one of the following strings: No, Even, Odd, Space, or Mark. Replace StopBits
with the number of stop bits per transfer (1, 1.5, or 2).
4 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Step 2. Connect the device to a computer or laptop using the USB connector and press the
external push button.
After a few seconds, the device will automatically get detected as a mass storage device, and
pop up as a removable drive.
Step 3. Copy the configuration file CONFIG.TXT to the logger’s flash drive.
Then, safely remove the device, and press the button again to exit flash drive mode.
5 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Step 4. To start logging, connect the logger in-line on a serial bus, powering the device
through the USB port.
The device may be powered from a standard USB port. Alternatively, an external +5V DC
(min. 200 mA) power supply may be used to power the device through the USB port (cell
phone chargers with USB connectors are well suited for this).
Step 5. To retrieve the logged data, enable flash drive mode pressing the button, just like in
step 2. A removable drive will pop-up, containing the file LOG.TXT with recorded data.
The upstream data (TX) and downstream data (RX) will be differentiated by the channel
headers interleaved in the log file.
6 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Configuration
The AirDrive RS-232 Recorder and AirDrive RS-232 Recorder TS may be configured through
the file CONFIG.TXT, placed in the flash drive root folder. Use any text editor to prepare such
a configuration file, containing the following text:
Baudrate=9600
Bits=8
Parity=No
StopBits=1
Copy this file to the root folder in flash drive mode. The new configuration will be loaded on
next power-up.
The following list presents the most common configuration options. All parameter and value
strings are case insensitive.
Baudrate sets the baud rate in bits per second of the monitored serial bus. Range is 300 bps
to 230400 bps. Default value is 9600.
Bits sets the number of bits per transfer of the monitored serial bus. Possible values are 5, 6,
7, 8. Default value is 8.
Parity sets the parity bit type of the monitored serial bus. Possible values are No, Even, Odd,
Space, Mark. Default value is No.
StopBits sets the number of stop bits per transfer of the monitored serial bus. Possible
values are 1, 1.5, 2. Default is 1.
DualPort sets whether both input ports use different serial bus configurations. Possible
values are No (both ports use common configuration defined by Baudrate, Bits, Parity,
StopBits) and Yes (first port uses configuration defined by Baudrate, Bits, Parity, StopBits,
7 Copyright © www.keelog.com
AirDrive RS-232 Recorder
while second port uses configuration defined by Baudrate2, Bits2, Parity2, StopBits2). Default
is No.
Baudrate2 sets the baud rate in bits per second of the monitored serial bus for the second
port (used only when DualPort is set to Yes). Range is 300 bps to 230400 bps. Default value
is 9600.
Bits2 sets the number of bits per transfer of the monitored serial bus for the second port
(used only when DualPort is set to Yes). Possible values are 5, 6, 7, 8. Default value is 8.
Parity2 sets the parity bit type of the monitored serial bus for the second port (used only
when DualPort is set to Yes). Possible values are No, Even, Odd, Space, Mark. Default value
is No.
StopBits2 sets the number of stop bits per transfer of the monitored serial bus for the second
port (used only when DualPort is set to Yes). Possible values are 1, 1.5, 2. Default is 1.
DisableLogging allows to disable data logging. Allowed values are Yes (logging disabled)
and No (logging enabled). Default value is No.
LogMode sets the logging mode. Possible values are Bin (data is logged as binary data), Hex
(data is logged as hexadecimal numbers), Dec (data is logged as decimal numbers). Default
value is Bin.
Separator sets the separator character between data values in logging mode Dec/Hex.
Possible values are None, Space, Comma, Tab, Newline. Default is Space.
Separator2 sets the separator character used when a header is inserted into the stream
(upon active stream change and before a time-stamp). Possible values are None, Space,
Comma, Tab, NewLine. Default is NewLine.
EnablePort configures which input ports are enabled and which serial streams are to be
logged. Possible values are Both (both input ports are enabled), Port0 (only the first input port
is enabled), Port1 (only the second input port is enabled). Default is Both.
Header defines a string value for the main device header, which is included in each header
inserted into the log file. No default value.
HeaderInterval sets an inactivity interval in seconds, after which a header is inserted into the
log file. A header will be inserted only if there has been no bus activity for a period exceeding
the HeaderInterval value, or if the active serial stream has changed. Default value is 5.0.
Channel0Header defines a string value for the header for the first input port, which is
included in each header inserted into the log file. Default value is 0.
8 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Channel1Header defines a string value for the header for the second input port, which is
included in each header inserted into the log file. Default value is 1.
TimeStamping configures the built-in time- and date-stamping module (AirDrive RS-232
Recorder TS only). Allowed values are Yes (timestamping enabled) and No (timestamping
disabled). Default is Yes.
TimeFormat configures how time-stamps are formatted in the data log (AirDrive RS-232
Recorder TS only). Allowed values are 24 (24h format) and AM or PM (both values will select
the 12h format). Default is 24.
UsbMode configures mode of USB operation. Allowed values are Flash (the device switches
between capture and USB flash mode) and Com (the device operates as a Virtual COM
device). Default is Flash.
Target configures where to store or send acquired data. Allowed values are Flash (data
stored to internal memory) and Com (data sent over Virtual COM device). Default is Flash.
9 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Recording data
Record mode is the default mode of operation for the AirDrive RS-232 Recorder (AirDrive RS-
232 Recorder TS) data logger. In record mode, the device will silently monitor the bidirectional
data flow on the serial bus and store the captured data on the internal flash drive in file
LOG.TXT.
The AirDrive RS-232 Recorder (AirDrive RS-232 Recorder TS) must first be configured to the
appropriate serial bus parameters, such as baud rate. Refer to section Configuration for
detailed instructions.
Installation of the AirDrive RS-232 Recorder in record mode is quick and easy, no software or
drivers are required. Simply plug it in-line on the serial bus, using the DB-9 connector. The
device may be powered from a standard USB port, using the supplied cable. Alternatively, an
external +5V DC (min. 200 mA) power supply may be used to power the device through the
USB port (cell phone chargers with USB connectors are well suited for this).
10 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Depending on the drive letters available, the device will be visible as a new drive, for example
F:. Use the systems file manager to browse this disk (for example Explorer).
The removable disk will contain the file LOG.TXT with a text log of all captured data. The data
is stored in the same format as appearing on the serial bus, without any encoding. The
upstream data (TX) and downstream data (RX) will be differentiated by the channel headers
interleaved in the log file. The AirDrive RS-232 Recorder will also interleave time-stamps. The
file LOG.TXT can be viewed and searched with any text editor, such as Notepad or MS Word.
11 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Switching back to record mode can be achieved by a safe software removal of the flash disk.
Use the systems standard disk removal procedure. For MS Windows, left-click on the Safe
Removal icon in the system tray and select the appropriate drive. Then press the push-button
again to return to record mode.
12 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Clock configuration
It is necessary to configure the built-in clock module for getting correct date and time-stamps.
To do this, a text file named TIME.TXT should be prepared with the following format:
Year=2020
Month=4
Day=1
Hour=12
Minute=34
Second=56
Format=PM
The fields should contain the current time and date. The field Format allows distinguishing
between A.M., P.M., and 24-hour time (use the value AM, PM, or 24). After the file has been
prepared, switch to flash drive mode and copy the file TIME.TXT to the root folder of the flash
disk.
After copying the file, safely remove the flash drive and press the button to switch back to
record mode. The new clock configuration will be loaded during the next power-up.
13 Copyright © www.keelog.com
AirDrive RS-232 Recorder
The clock configuration file must be named TIME.TXT and must be placed in the root folder.
Variable and value strings are case insensitive, however they must match the options listed
below.
• Year sets the clock year value. Valid range is from 2000 to 2099.
• Month sets the clock month value. Valid range is from 1 (January) to 12 (December).
• Day sets the clock day value. Valid range is from 1 to 31. If the specified day exceeds
the maximum number of days in the specified month, the next valid day value will be
chosen.
• Hour sets the clock hour value. Valid range is from 1 to 12 for 12-hour time
(A.M./P.M.), and 0 to 23 for 24-hour time.
• Minute sets the clock minute value. Valid range is from 0 to 59.
• Second sets the clock second value. Valid range is from 0 to 59.
• Format sets the time format. Valid values are AM, PM, and 24. If AM is chosen, the 12-
hour format is selected and the specified hour is treated as before noon. If PM is
chosen, the 12-hour format is selected and the specified hour is treated as afternoon. If
24 is chosen, the 24-hour format is selected and the specified hour is treated as 24-
hour format.
Sample TIME.TXT for 12-hour time: Sample TIME.TXT for 24-hour time:
Year=2020 Year=2020
Month=10 Month=10
Day=25 Day=25
Hour=5 Hour=17
Minute=51 Minute=51
Second=43 Second=43
Format=PM Format=24
14 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Configuration files
The AirDrive RS-232 Recorder (AirDrive RS-232 Recorder TS) is configured via two text files
placed on the internal flash drive:
• CONFIG.TXT (configures serial bus parameters)
• TIME.TXT (configures the internal clock for time-stamping)
These files should contain configuration parameters, placed in successive lines in the
following format:
Parameter1=Value
Parameter2=Value
Parameter3=Value
…
These configuration files must be placed in the device internal memory using flash drive
mode.
CONFIG.TXT
The file CONFIG.TXT is responsible for configuring the main operation of the device.
15 Copyright © www.keelog.com
AirDrive RS-232 Recorder
TIME.TXT
The file TIME.TXT is responsible for configuring the built-in real-time clock (TS version only).
17 Copyright © www.keelog.com
AirDrive RS-232 Recorder
UsbMode=Com
Target=Com
Make sure the CONFIG.TXT file is properly saved in the flash drive root folder. Upon next
power-up, the device will connect as a Virtual COM port.
Virtual COM mode allows live data streaming of acquired data, and communication with the
device using a proprietary command set. Any serial terminal software may be used to display
the data sent by the AirDrive RS-232 Recorder.
18 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Specifications
19 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Troubleshooting
The AirDrive RS-232 Recorder (AirDrive RS-232 Recorder TS) will not work with the following
hardware configurations:
The AirDrive RS-232 Recorder does not switch to flash drive mode
Set the correct time by creating a clock configuration file TIME.TXT. Make sure you have not
disabled time-stamping. Refer to the Clock configuration section for detailed instructions.
1. Check if the problem appears with a different baud rate and serial bus configuration.
2. Check if the problem appears with a different serial bus driver.
3. Check if the problem appears using a different USB port.
20 Copyright © www.keelog.com
AirDrive RS-232 Recorder
4. Contact the dealer you have purchased the device from. Please supply all necessary
information (hardware type, model and manufacturer, OS type and version, and a short
description of the problem).
21 Copyright © www.keelog.com
AirDrive RS-232 Recorder
Legal disclaimer
No responsibility is taken for any damage, harm or legal actions caused by misuse of this
product. The user should follow the guidelines contained in this document, otherwise no
liability will be assumed. It is the user's responsibility to obey all effective laws in his/her
country, which may prohibit usage of this product.
http://www.keelog.com/
http://www.airdrivewifi.com/
22 Copyright © www.keelog.com