Multitech E Spécifications Page 30

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 34
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 29
CONFIGURING AND COMMUNICATING WITH YOUR DEVICE
Configuring Device as UDP Listener to Accept UDP Client Connections
To configure the device as a UDP client:
1. Check signal strength.
Enter:
AT+CSQ
2. If using a SIM card, configure the APN.
Enter:
AT+CGDCONT=1,IP,"XXX.APN.com" where XXX.APN.com is the APN your cellular provider assigned to
your SIM card.
3. Verify device is registered on the cellular network.
Enter:
AT+CREG?
4. Configure socket parameters
Enter:
AT#SCFG=1,1,300,240,600,50
5. Activate context one
Enter:
AT#SGACT=1,1
6. Set firewall rule to accept connections:
AT#FRWL=1,"###.##.###.#","###.##.###.#" where ###.##.###.# represents the IP range. For example:
AT#FRWL=1,"204.26.122.1","204.26.122.255"
7. Set connection ID 1 for UDP listening mode on port 7000.
Enter:
AT#SLUDP=1,1,7000
The device responds with and unsolicited indication that a host is trying to connect to connection ID 1 on
port 7000.
SRING: 1
8. Accept incoming connection ID 1
Enter:
AT#SA=1
The device indicates a client successfully established a listener connection.
CONNECT
You can send and receive data.
Exit Data Mode and Close Connection
To exit data mode and close the socket:
Enter the escape sequence: +++
To close Socket 1, enter: AT#SH=1
The device responds with OK.
To close the data connection, enter:AT#SGACT=1,0
30 QuickCarrier™ USB-E MT100UCC-C2 Developer Guide
Vue de la page 29
1 2 ... 25 26 27 28 29 30 31 32 33 34

Commentaires sur ces manuels

Pas de commentaire