|
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 communication settings listed below. This should work for most standard modems.
Getting started
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:
3/8/2009 15:00:44.034 [TX] - ATQ0V1E0<CR><LF>
3/8/2009 15:00:44.040 [RX] - <CR><LF> OK<CR><LF>
3/8/2009 15:00:44.608 [TX] - AT+GMM<CR><LF>
3/8/2009 15:00:44.610 [RX] - <CR><LF> H.324 video-ready rev. 1.0<CR><LF> <CR><LF> OK<CR><LF>
3/8/2009 15:00:45.049 [TX] - AT+FCLASS=?<CR><LF>
3/8/2009 15:00:45.060 [RX] - <CR><LF> 0,1,8<CR><LF> ...
Further Information
The Send Sequences list includes the following standard AT modem commands:
The \Samples folder also contains a log file ModemDiagnostics_Logfile_asc.txt. It shows a test run where the above Send Sequences were sent to a real modem. |