chjae.blogg.se

Vodafone usb modem setup
Vodafone usb modem setup










vodafone usb modem setup vodafone usb modem setup

(char *number, char *message, size_t maxLength) (const char *number, const char *message) (const char *apn=NULL, const char *user=NULL, const char *password=NULL) (PinName powerGatingPin=NC, bool powerGatingOnWhenPinHigh=true)Ĭreate Vodafone USB Modem (K3770/K3772-Z) dongle API instance.

vodafone usb modem setup

You'll notice that this "Hello World" program is a little more complex that others, as we're using the mbed RTOS to manage the memory and processing resources/requirement of the USB Modem driver and the TCP/IP stack.Ġ0001 #include "mbed.h" 00002 #include "VodafoneUSBModem.h" 00003 #include "HTTPClient.h" 00004 00005 void test( void const*)Ġ0010 00011 int ret = nnect( "pp.uk") Ġ0017 00018 //GET data 00019 printf( "Trying to fetch page.\n") Ġ0023 printf( "Page fetched successfully - read %d characters\n", strlen(str)) Ġ0028 printf( "Error - ret = %d - HTTP return code = %d\n", ret, http.getHTTPResponseCode()) Ġ0030 00031 //POST data 00032 HTTPMap map Ġ0036 printf( "Trying to post data.\n") Ġ0040 printf( "Executed POST successfully - read %d characters\n", strlen(str)) Ġ0045 printf( "Error - ret = %d - HTTP return code = %d\n", ret, http.getHTTPResponseCode()) Ġ0057 Thread testTask(test, NULL, osPriorityNormal, 1024 * 4) There are various other "hello world" programs that demonstrate SMS, NTP, Socket and Websocket interfaces, as well as management commands (check balance, link status, etc). This example application uses the VodafoneUSBModem and the HTTPClient interface, enabling the mbed to fetch a URL over HTTP, and print the contents. In the example show, an external linear regulator board has been used to provide a high current regulated 5v supply from a 9v wall adaptor. Hardware Setup ¶īecause of the high current that the USB dongle requires, it is not possible to power it from the Vu pin on the mbed.

vodafone usb modem setup

Many supermarkets and independent phone stores also sell these modems. The K3770/K3772-Z modems can be purchased directly from : The Vodafone K3770 and K3772-Z modems allow you to connect your mbed to the internet from (almost) any location in the world.












Vodafone usb modem setup