BlueVPN +, connect your Android device to the Internet with a GPRS modem phone

3:46:00 PM
BlueVPN +, connect your Android device to the Internet with a GPRS modem phone - In the previous post, we saw how to couple two Android devices and share the Internet connection with them BlueDUN installed on the master and BlueVPN installed on the slave. In particular, we described how to install and configure BlueVPN: This application implements a Bluetooth dial up client, also called reverse DUN function.
However, there are situations where you need to connect an Android device such as a tablet, and you do not have a second Android device (usually a phone), but you only have a GPRS [General Packet Radio Service] phone (like many towns BlackBerry, Nokia, Samsung phones ...) with a built-in modem capacity.
Until now, you were able to use this phone as an external modem to connect a laptop to the Internet, but not to connect the Android device.
the latest version of Android ICS for BlueVPN (4.0.x) allows the Internet connection of Android devices through a modem line to phones and thus circumvents this limitation.

to set up the connection you can follow the same steps described above: bluetooth enabled on Android without Android device and create the BT pairing. For some Android limitation, it is highly recomended to remove any space in the Bluetooth device names before pairing (eg rename "Nokia E65" to "NokiaE65")



the main differences are in the control parameters:

compatibility Modem : some modems do not allow no more lines to AT commands; if you enable this option, the AT commands are not prefixed by ( "carriage return" and "line feed")
For example: the disabled compatibility: AT enabled compatibility: AT

newline Modem : If you disable this option aT commands will only use the character "carriage return" () if thery will use both the "carriage return" and "line feed" ( )
for example: compatibility disabled: AT enabled compatibility: AT

AT Initialization : it is the modem initialization string, the default is E0V1 & C1 & D2 but you can modify it to your specifications modern

Login timeout is the time after which the application will send the same data if it does not receive the replay for the first AT command or the first LCP / NCP initialization packet

character delay . some devices are slow in processing characters so we have to wait a few milliseconds between each of them (for example, send AT equals send 'A', wait a few milliseconds, send 'T', wait a few milliseconds, etc .)

LCP compatibility : it is an option to force the PPP LCP negotiation, you must enable this option only in extremely rare cases

Blackberry compatibility : enable this option if you connect a Blackberry phone as a modem

Bluetooth Insecure Socket : switch this option only if you get problems with the Bluetooth connection

DUN service channel represents the channel for Bluetooth DUN profile; change the value and define a number like 2, 3, 4 or 6 if the connection does not work with the default value of 0 (self-assigned)

Access Point then BlueDUN needs no special configuration because it routes data packets to / from the mobile existing connections 3G or Wi-Fi to your phone to connect via GPRS, you will need to tell the phone that APN ( Access Point Name ) to use.
GPRS is a service provided by the mobile network operators and the NPC is used to determine where to route data requests. Most operators have different access points for different services, and you will need to choose the right or things do not work; usually the Internet access point is used for web browsing, email and instant messaging, etc. Here is the List GPRS APN world .
For CDMA (Code Division Multiple Access) connections keep the value of the white point of access.

phone number GPRS not use a dial-up number (such as GSM data calls do), but a conventional dial up phone number (* 99 #, * 99 *** 1 # or something similar) should be set for the negotiation of modem.
for CDMA in general the number is # 777



Authentication : the authentication step is usually necessary, even if the username and password are not defined, so you can select the authentication type = PAP (default) or CHAP. UserName and Password are sometimes required by some mobile operators and you have to insert the right for user authentication (otherwise leave them blank).

DNS Finally, you may need to adjust the primary and other addresses (secondary) DNS; they are used to resolve domain names and are usually awarded automatically when the connection configuration when equal to 0.0.0.0 . If you force these settings, it is possible that the service provider can not resolve Internet URL and the connection does not work.


Note :. The numbering and the connection is supported by the wireless service provider, and additional charges or additional charges may apply as it goes through the carrier's network


BlueVPN tested BlackBerry 9300, Nokia (E65, E66, N8-00 Belle, C60-01), Samsung SGH-L760.


Log reports

You can help the 'application development in these terms:
1. Open BlueVPN settings and activate the options " activate Logger " + " Log to File "
2. return and press on GPRS phone name on the list of paired devices (starting new connection)
3. If the connection fails or after a while, open BlueVPN settings again and click on the last item [ Send files for Debug ] to send all generated log files ( application.log appointed) by e-mail


known problems

a) BlueVPN the application seems stuck on or modem negotiation messages LCP

1. Pair the GPRS phone with a Windows PC and create a bluetooth modem connection
2. Open a command prompt window on the PC (cmd) and type in the order the following commands:
  • netsh
  • ras
  • tracing PPP enable set
3. Connect Internet -you PC with your phone GPRS
4. Email this file / Windows /tracing/PPP.log and application.log (generated as described -Dessus)


B) app BlueVPN shows the logged messages (and the stop button) but will suddenly return to the list of paired devices

Some manufacturers of Android devices (eg Sony) do not understand the
VPN TUN module in Android version 4.0.x is installed on the device. This module is similar to a device driver. Without the module installed, a VPN tunnel can not be established from the device
To check if your device supports VPN you can install the CatLog -. Logcat player! app;
If no VPN support, an error message appears similar to the following is written in the report CatLog when you press the BlueVPN application on connect button:

E / VpnJni (189): Unable to allocate TUN: Bad file number
E / F5EdgeClient (1391): Unable to establish VPN
E / F5EdgeClient (1391): java.lang.IllegalStateException: Unable to create the interface

You can install the TUN module installing the application "install TUN.ko "

https://play.google?. .com / store / apps / details? id = com.aed.tun.installer

Please contact the manufacturer's support for more information

Best Practices: Use only letters and numbers for the Bluetooth device name (no tanks or special spaces)


C) After the update to Android 4.1 or 4.2 (Jelly Bean ) BlueVPN does not connect when clicking the remote device name

Solution :.
- delete the pairing with the remote device to Android Settings and create new
- click the icon to the right of the name of the associated device
- activate the "Use for access to internet "(do not worry if one remains unchecked)



Previous
Next Post »

1 comment