Basic Operations. Multi-Tech QuickCarrier USB-D MTD-H5
Pubblicità
Pubblicità
BASIC OPERATIONS
Basic Operations
Interacting with Your Device Overview
This section describes how to use AT commands to interact with your device. Using terminal software such as
Kermit, you can issue AT commands to communicate with and configure your modem. The AT commands let you establish, read and modify device parameters and help you control how the device operates. This section documents basic interactions with your device, such as verifying signal strength and network registrations, sending and reading SMS text messages, and sending and receiving data.
Generally, USB modems are used as unintelligent bit pipes. In Windows, this means you create a dial-up network connection that uses the Windows IP stack to use the modem to create a PPP connection to the cellular network.
The modem is assigned an IP address from the cellular carrier. This connection provides Internet access and is the basis for TCP/IP communication for sending and receiving email, creating TCP/UDP Sockets, or putting and getting files from an FTP server.
In Linux, PPPD is used to dial the modem and create the connection to the cellular TCP/IP network. This provides
Internet access for sending and receiving email, creating TCP/UDP Sockets, or putting and getting files from an FTP server.
Related Documentation
Related documentation for using HSPA+ H5 devices:
■ HSPA-H5 AT Commands Reference Guide (S000528) provides for additional information on AT commands available for your device. The Introduction chapter describes command formatting, syntax, and other basic information.
■
Configuring Devices: Using AT RUN, Setting up Digital Voice Interface, and Configuring Ports Reference
Guide (S000552).
Before You Begin
Before you begin:
■ If you have not done so, install any drivers. Refer to the separate driver installation guide for your device.
■
Power up your device and ensure it is connected to the computer that you use to issue AT commands.
■
Install terminal software that can communicate with the device, such as HyperTerminal, Tera Term, Kermit, or Putty.
Preparing the Modem for a Data Connection
Set the APN by issuing the following command where <APN Name> is the APN assigned by the carrier.
■
AT+CGDCONT=1,"IP","<APN Name>
Check for registration by issuing AT+CREG?<cr> and wait for the response. If the second value of the response (for example, +CREG:x,y) is 1, then the modem is registered on the home network. If y=5, then the modem is registered but roaming. See the AT Command reference guide for other possible responses. If the second value is not 1 or 5, then do not attempt to dial. Wait ~5 seconds for the modem to finish registration and check +CREG again.
18 QuickCarrier
TM
USB-D MTD-H5 User Guide
BASIC OPERATIONS
Using the Radio IP Stack to Make a Data Connection
Connect by issuing the command: AT#SGACT=1,1 (using PDP context #1).
Using the Host System IP Stack to Make a Data Connection
This device only supports packet data connections, such as dial-up networking. To make a data connection, you must use a PPP dialer. If your carrier requires a username and password for the Internet connection, be sure to enter that information into the PPP dialer. Dial up using ATD*99***1# (using PDP context #1).
Disconnect a Data Connection Using an Internal IP Stack
Issue the following command to disconnect: AT#SGACT=1,0
How to Disconnect a Data Connection Using Host IP Stack
Issue the following command to disconnect: AT#SGACT-1,0.
Using Command Mode and Online Data Mode
Modems have two operation modes, command and online data. When you power up the modem it is in command mode and ready to accept AT commands.
Use AT commands to communicate with and configure your modem. They allow you to establish, read, and modify device parameters and control how the modem works. The device can also generate responses to AT commands that help determine the modem’s current state.
If the modem is in online data mode, it only accepts the Escape command (+++).
To send the modem AT Commands from terminal emulation software, set the software to match the modem’s default data format, which is:
■
Speed: 115,200 bps
■ Data bits: 8
■
Parity: none
■
Stop bit: 1
■ Flow control: hardware
To confirm you are communicating with the device:
■ Type AT and press Enter.
If the device responds with OK, you are communicating with the device.
Verifying Signal Strength
To verify the device signal strength, enter:
AT+CSQ
The command indicates signal quality, in the form:
QuickCarrier
TM
USB-D MTD-H5 User Guide 19
BASIC OPERATIONS
+CSQ: <rssi>,<ber>
Where:
<rssi>
0
1
2-30
31
99
<ber>
2
3
4
0
1
5
6
7
99
Received signal strength indication.
(-113) dBm or less
(-111) dBm
(-109) dBm - (-53) dBm / 2 dBm per step
(-51) dBm or greater
Not known or not detectable
Bit error rate, in percent
Less than 0.2%
0.2% to 0.4%
0.4% to 0.8%
0.8% to 1.6%
1.6% to 3.2%
3.2% to 6.4%
6.4% to 12.8%
More than 12.8%
Not known or not detectable
Note:
Signal strength of 10 or higher is needed for successful packet data sessions.
Example
A example response to AT+CSQ:
+CSQ: 15,1
Checking Network Registration
Before establishing a packet data connection, verify the is device registered on the network. To do this enter the network registration report read command:
AT+CREG?
If the device returns:
+CREG: 0,1
20 QuickCarrier
TM
USB-D MTD-H5 User Guide
BASIC OPERATIONS
or
+CREG: 0,5
The device is registered.
If the device returns:
+CREG: 0,2
The device is in a network searching state.
Verify that Device Detects a Valid SIM Card
If your device uses a SIM card, use the query SIM status command to verify if the device detects the SIM card. To do this, enter:
AT#QSS?
If the device detects that SIM card, it responds with one of the following:
Response
#QSS: 2, 1
#QSS: 2, 2
#QSS: 2, 3
Description
SIM inserted
SIM inserted and PIN unlocked.
SIM inserted and ready.
If your device does not reply with one of those responses, verify that the SIM card is properly inserted.
When your device fails to connect
Work through the steps below until your device connects.
1.
Wait 30 seconds and try again.
2.
Wait 1 minute and try again.
3.
Wait 2 minutes and try again.
4.
Wait 8 minutes and try again.
5.
Make one attempt every 15 minutes for an hour.
6.
Make one attempt every 90 minutes.
When a call drops
If a connected call drops for any reason:
■
Wait 30 seconds and restart the sequence again.
Reading, Writing, and Deleting Messages
Reading Text Messages
To read a text message in text mode:
QuickCarrier
TM
USB-D MTD-H5 User Guide 21
BASIC OPERATIONS
1.
Put the device in text mode.
Enter: AT+CMGF=1
2.
Read message.
Enter: AT+CMGR=1
Example response:
+CMGR: "REC UNREAD","+10001112222z`z","","13/09/05,13:39:40-20"
How are you?
OK
Where 0001112222 is the phone number.
Writing Text Messages
To send a text message in text mode:
1.
Put the device in text mode.
Enter:
AT+CMGF=1
The device responds.
OK
2.
Enter the recipient's number and your message.
Enter:
AT+CMGS="##########"
>Your message here where ########## is the recipient's number.
3.
Send the message.
Enter CTRL+Z.
The device responds:
+CMGS: #
OK where # is the reference number of the sent message.
For example:
AT+CMGF=1
OK
AT+CMGS="0001112222"
> How are you?
<CTRL+Z to send>
+CMGS: 255
OK
Where 0001112222 is the phone number.
Deleting Messages
To delete one text message, enter:
AT+CMGD=I,#
22 QuickCarrier
TM
USB-D MTD-H5 User Guide
where I is the index in the select storage and # is the delflag option. Enter:
0 Deletes message in the specified index.
1
2
Deletes all read messages. Leaves unread messages and stored deviceoriginated messages.
Deletes all read and sent device-originated messages. Leaves unread messages and unsent device-originated messages.
3
4
Deletes all read messages and sent and unsent device-orginated messages.
Leaves unread messages.
Deletes all messages.
For example:
AT+CMGD=1 (delete message at index 1)
AT+CMGD=2 (delete message at index 2 )
AT+CMGD=1,0
AT+CMGD=1,1
AT+CMGD=1,2
AT+CMGD=1,3
AT+CMGD=1,4
BASIC OPERATIONS
QuickCarrier
TM
USB-D MTD-H5 User Guide 23
Scarica
Pubblicità