5 troubleshooting, 1 scenarios, Part 5 – Dovado PRO User Manual
Page 29: Troubleshooting, Scenarios, 5troubleshooting

T h e M o b i l e C h o i c 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
API
29
© 2014 Dovado FZ-LLC
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)) . "\n";
} 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";
?>
5
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
support
www.dovado.com/support/support-form
5.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
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.
Note: Mobile operators typically have an Access Point Name (APN) as the key relevant point of
entry towards the mobile broadband network. Make sure to have the name of your APN in advance
of configuring your USB modem. If you are using any other technology besides 2G/3G or 4G, you
might not require an APN.