0
|
1 |
#
|
|
2 |
# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# USE-CASE 100£º
|
|
16 |
# Standard PPP session from SymbianOS device to the Test Network.
|
|
17 |
#
|
|
18 |
|
|
19 |
|
|
20 |
#######################################################################################
|
|
21 |
#
|
|
22 |
# MOBSTER: Create a mobster device on the MN and the PDSN and link them together
|
|
23 |
#
|
|
24 |
#######################################################################################
|
|
25 |
runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0
|
|
26 |
assign mt0=RESULT
|
|
27 |
runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=2 FILTERCONFIG=0
|
|
28 |
assign mt1=RESULT
|
|
29 |
|
|
30 |
runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=mt0
|
|
31 |
assign local_uu_port0=AIR_INPORT
|
|
32 |
runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=mt1
|
|
33 |
assign local_uu_port1=AIR_INPORT
|
|
34 |
runcmd svcid=5 svchost="penmn" methodid=10 DEVICEID=mt0 REMOTE_ADDRESS="192.169.10.11" REMOTE_PORT=local_uu_port1
|
|
35 |
check RESULT=0
|
|
36 |
runcmd svcid=5 svchost="penpdsn" methodid=10 DEVICEID=mt1 REMOTE_ADDRESS="10.22.1.6" REMOTE_PORT=local_uu_port0
|
|
37 |
check RESULT=0
|
|
38 |
|
|
39 |
showenvironment
|
|
40 |
|
|
41 |
|
|
42 |
#######################################################################################
|
|
43 |
#
|
|
44 |
# PPP: Create a PPP session on the PDSN
|
|
45 |
#
|
|
46 |
#######################################################################################
|
|
47 |
runcmd svcid=7 svchost="penpdsn" methodid=31 MADDR="localhost" MPORT=7000 MTID=mt1 CONFIG="defaultroute noauth 192.168.200.20:192.168.200.10 debug nodetach"
|
|
48 |
assign sid1=RESULT
|
|
49 |
|
|
50 |
|
|
51 |
#######################################################################################
|
|
52 |
#
|
|
53 |
# Signal the device that we are waiting for a connection, and wait for the
|
|
54 |
# connection to be made.
|
|
55 |
#
|
|
56 |
#######################################################################################
|
|
57 |
signal
|
|
58 |
runcmd svcid=7 svchost="penpdsn" methodid=7 SID=sid1
|
|
59 |
waitfor SESSION_STATUS=2
|
|
60 |
|
|
61 |
|
|
62 |
#######################################################################################
|
|
63 |
#
|
|
64 |
# Wait for a signal from the device to close the connection
|
|
65 |
#
|
|
66 |
#######################################################################################
|
|
67 |
waitforsignal
|
|
68 |
|
|
69 |
runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1
|
|
70 |
check RESULT=0
|
|
71 |
runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1
|
|
72 |
runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1
|
|
73 |
runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=mt1
|
|
74 |
runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=mt1
|
|
75 |
|
|
76 |
|
|
77 |
#######################################################################################
|
|
78 |
#
|
|
79 |
# Synchronise with the device to end the use-case
|
|
80 |
#
|
|
81 |
#######################################################################################
|
|
82 |
rendezvous
|