Part 6 Troubleshooting; Scenarios - Dovado pro tinyac Reference Manual

Universal broadband router
Table of Contents

Advertisement

/* Create a TCP/IP socket. */
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if ($socket === false) {
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
} else {
echo "OK.\n";
}
echo "Attempting to connect to '$ipaddress' on port '$api_port'...";
$result = socket_connect($socket, $ipaddress, $api_port);
if ($result === false) {
echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) .
} else {
echo "\nConnected to router\n";
}
respons_wait($socket);
/* Sending username to the API */
echo "Sending User Name...\n";
socket_write($socket, "user $username \r\n", strlen($username)+8);
echo "OK.\n";
respons_wait($socket);
/* Sending password to the API */
echo "Sending password...\n";
socket_write($socket, "pass $password \r\n", strlen($password)+8);
echo "OK.\n";
respons_wait($socket);
/* Setting up destination SMS number */
echo "Sending SMS number...\n";
socket_write($socket, "sms sendtxt $smsnr \r\n", strlen($smsnr)+15);
/* Sending text */
socket_write($socket, "$smstxt \r\n", strlen($smstxt)+3);
/* Sending end of message */
socket_write($socket, ".\r\n",3);
respons_wait($socket);
echo "Closing socket...";
socket_write($socket, "bye \r\n",6);
socket_close($socket);
echo "OK.\n\n";
?>
6
Troubleshooting
Dovado routers are designed with simplicity in mind. If you are experiencing difficulties with certain
features or unable to get online via the router, then kindly check the hints on the Troubleshooting
page within the router menu. If those hints do not help, then proceed to http://www.dovado.com/
support for further details. If you still cannot find the answer, then take contact with us via http://
www.dovado.com/support/support-form
6.1

Scenarios

The following scenarios should assist you in enabling your router for Internet access, depending on
which type of USB modem you have inserted into the router.
If your scenario is not available in this guide, then please visit http://www.dovado.com/support for
latest update. Once the information has been inserted, the unit will automatically try to establish a
connection to the operator's network. A solid green light on the Internet LED indicates a successful
connection.
T h e M o b il e C h o ic e f o r y o u r B r o a d b a n d I n t e r n e t
© 2015 Dovado FZ-LLC
API
31

Advertisement

Table of Contents
loading

Table of Contents