This article demonstrates how to connect Toradex module with a GPRS modem through dial-up connection for internet connectivity.
There are 2 ways to connect to a GPRS modem, one by dial-up connection and other by CellCore function which provides basic set of connection oriented services.
The CellCore module uses Radio Interface Layer (RIL) for communication with radio hardware. As most GPRS modems are not available with support for RIL, therefore dial-up connection is often used.
If you want to establish dial-up connection from application then you can refer RAS APIs from here.
Connect GPRS modem to UART CoM1 port which is a FF UART (lower RS-232 on X25 connector of Evaluation Board V3.1A). You can also use other UART ports according to your requirement, for more information on serial ports, please refer this article.
Edit the following registry keys at HKLM\Drivers\Unimodem.
[HKLM\Drivers\Unimodem\Init] "1"="AT<cr>" "2"="ATE0V1&C1&D2<cr>" [HKLM\Drivers\Unimodem\Settings] "Prefix"="AT" "Terminator"="<cr>" "DialPrefix"="D" "DialSuffix"=";" "Pulse"="P" "Tone"="T" "Blind_Off"="X4" "Blind_On"="X3" "CmdSendDelay"="500" "CallSetupFailTimeout"="ATS7=<#><cr>" "Reset"="AT<cr>" [HKLM\Drivers\Unimodem\Config] "CallSetupFailTimer"=dword:B4
When establishing a dial-up connection you must take care that the registry keys at HKCU\ControlPanel\Dial are set with correct country and area code. You can refer this article for more information.
[HKCU\ControlPanel\Dial] "CurrentLoc"=dword: 0 "HighLocID"=dword: 2 [HKCU\ControlPanel\Dial\Locations] "0"=multi_sz:"Work", "G", "G", "G", "425", " ", "1", "0" "1"=multi_sz:"Home", "G", "1FG", "011, EFG", "425", " ", "1", "0"
Save the registry settings after editing.
Once the registry settings are done follow the steps mention below to connect GPRS modem with Toradex module through dial-up connection.
You can also set this parameter in registry as shown below.
[HKLM\Drivers\Unimodem\Config] "DialModifier"="+CGDCONT=1,"IP","APN""
You can use the following command:
ping -w 3000 www.toradex.com