42
Docklight V2.2 User Manual 07/2016 Copyright 2016 Flachmann und Heggelbacher GbR
Examples and Tutorials
7
Examples and Tutorials
This chapter describes two sample projects that demonstrate some of Docklight's basic
functions. The corresponding Docklight project files (
.ptp
files) can be found in the
\Samples
folder within the Docklight installation directory (e.g.
C:\Program Files\FuH
\Docklight V2.1\Samples
).
NOTE: If you are logged on with a restricted user account, you will not have permission
to make any changes in the program files directory. In this case, saving a project file or
any other data into the
\Samples
folder will produce an error.
NOTE: For additional sample projects and Application Notes, see our online resources
at
www.docklight.de/examples_en.htm
7.1
Testing a Modem - Sample Project: ModemDiagnostics.ptp
The Docklight project
ModemDiagnostics.ptp
can be used to perform a modem check.
A set of modem diagnostic commands are defined in the Send Sequences list.
This is a simple example for
Testing a serial device or a protocol implementation
. The
sample project uses the
listed below. This should work for most
standard modems.
Communication Mode
Send/Receive
COM Port Settings
9600 Baud, No parity, 8 Data Bits, 1 Stop Bit
Getting started
·
Use the
Windows
Device Manager
to find out which
COM Port
is a modem device.
This demo project may be used with any AT-compatible modem available on your PC,
e.g. a built-in notebook modem, or a GSM or Bluetooth modem driver than can be
accessed through a virtual COM port.
TIP: For a simple test without specialized hardware, add your mobile phone as
Bluetooth Device
on your
Windows
PC. Then find your phone in the
Windows
Devices and Printers
list. Right-click on it, choose
Properties
and go to the
Hardware
tab. In the
Device Functions
list it should mention the modem related
COM Ports.
·
Go to the
Project Settings...
dialog and make sure you have selected the same
COM Port for
Send/Receive on comm. channel
.
·
Press the
Start Communication
button in the toolbar.
·
Try sending any of the predefined modem commands by pressing the
Send
button
You should now receive a response from your modem, e.g. "OK" if your command was
accepted, a model identification number, etc. The response will vary with the modem
model.
After sending several sequences, the Docklight communication window could look like
this:
07.02.2013 18:17:54.083 [TX] -
ATQ0V1E0
<CR><LF>
Содержание Docklight V2.2
Страница 1: ...Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR...
Страница 5: ...Copyright...
Страница 7: ...Introduction...
Страница 11: ...User Interface...
Страница 14: ...Features and Functions...
Страница 17: ...Working with Docklight...
Страница 28: ...Working with Docklight Advanced...
Страница 41: ...Examples and Tutorials...
Страница 46: ...Reference...
Страница 62: ...Support...
Страница 64: ...Appendix...
Страница 76: ...76 Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR Appendix...
Страница 77: ...Glossary Terms Used...