×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    2

    WLAN Connection from Emulator

    Hi,

    ENV: S60 3.0 SDK.
    Anybody knows, How to connect WLAN from emulator?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: WLAN Connection from Emulator

    Hi capri,

    This information u can find in ur 3rd sdk help

    S60 3rd Edition SDK for Symbian OS
    Tools and Utilities >> Command Line Interface

    SDK Command Line Interface
    This command line interface enables web content developers to easily test their content on the emulator or on a device. This interface can be used to:

    Launch the emulator, view particular content in an already running emulator (for example an image) or launch a URL in the emulator.

    Send a URL to a mobile device and launch the browser with the URL. This command line interface relies on the Device Connectivity Tool for S60 SDK to provide connectivity between the PC and the mobile device.

    sdk.exe will automatically launch the Device Connectivity Tool for S60 SDK tool - if it is not already running - for all the operation is in the device.

    Syntax

    Arguments

    Limitations

    Examples





    --------------------------------------------------------------------------------

    Syntax
    sdk.exe [-target:<target>] [-browser:<browser>] [-com:<com_port>] [[-url:]<url/pathname>]

    Invoking sdk.exe without arguments is equivalent to invoking epoc.exe, that is, it will start the emulator.





    --------------------------------------------------------------------------------

    Arguments
    -target:<target>

    Defines the target for the operation. Valid target arguments are emulator and device. The default value for this argument is emulator (that is, if no target is defined the operation will be executed in the emulator). sdk.exe will attach to an already running emulator executable and attempt to load the content in it.

    -browser:<browser>

    Defines the browser for the operation if the operation requires a browser. Valid browser arguments are services and web. The default value for this argument is services, so if no browser argument is specified the browser with the Services icon name will be invoked.

    -com:<com_port>

    This option defines the communication port (serial port) to communicate with a device. This option is only used when the target is the device. The value for the <com_port> argument value is a positive integer representing the port number. If the Device Connectivity Tool for S60 SDK application is already running, this option will reconfigure the application and it will force the Device Connectivity Tool for S60 SDK application to use the newly defined port. This option is optional if the Device Connectivity Tool for S60 SDK application is already running and configured.

    [-url:]<url/pathname>

    This option specifies the URL or a path for a content. The URL can be of the http://, https:// or file:// schema. The -url: prefix for this argument is optional and it is only supported for backward compatibility with some 3rd party applications which use this interface to pass content to the SDK. A file path or a file schema is always relative to the hardware (PC or mobile device) where the content is rendered (launched). If the target is the emulator, file references are relative to the PC. If the target is a device, file references are relative to the device.





    --------------------------------------------------------------------------------

    Limitations
    The command line interface does not support invoking the Web browser on the emulator with a file:// schema or pathname. URLs with the http:// schema be launched with the Web browser.

    This command line interface will not transfer files to the device. To open a local file on the device from the PC using this CLI, the content should be transferred to the device using other tools.





    --------------------------------------------------------------------------------

    Examples
    sdk.exe http://www.google.com

    Launch the default browser (Services) on the emulator with the http://www.google.com URL. This will start the emulator if the emulator is not running, or it will attach to an already running emulator.

    sdk.exe http://127.0.0.1/index.html

    On emulator, loads the index.html page in the default browser (Services) from the HTTP server running on the local PC. Make sure that the emulator is not configured to use an HTTP proxy for this use case.

    sdk.exe -target:device -com:2 http://www.google.com

    Commands the Services browser in the device to fetch the url http://www.google.com. The url is fetched using the access point configured in the device.

    sdk.exe -browser:web -target:device -com:2 http://www.google.com

    Commands the Web browser in the device to fetch the url http://www.google.com. The url is fetched using the access point configured in the device.

    sdk.exe http://my.pc.ip.address/index.html

    Loads the index.html page in the default browser (Services) from the HTTP server running on the PC (with the my.pc.ip.address IP address). This configuration requires that the handset is configured so that it has direct (local) IP connectivity to the PC, for example using a WLAN connection.

    sdk.exe C:\mypage.html

    Loads the C:\mypage.html page to the default browser on the emulator from the root directory of the PC's C: drive.

    sdk.exe -target:device -com:2 C:\mypage.html

    Loads the C:\mypage.html page to the default browser on the device from the root directory of C: drive of the device. Notice, that on the device some directories are protected and the browser application does not have access rights to those directories (the C:\ directory is not protected).


    --------------------------------------------------------------------------------
    © Nokia 2006


    ----------

    Make use of it to connect to the WLAN .

    Regards,
    Mateen Maldar

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    2

    Re: WLAN Connection from Emulator

    Thanks a lot. i will test it and get back to you if some problems.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    3

    Re: WLAN Connection from Emulator

    I'm a beginner with Symbian and mobiles emulators and I have the same problem capri07 had...
    I've read your post (Mateen Maldar) and i've browsed the SDK help too, but i still don't understand how to let my emulator connect by its WLAN and use my pc interent connection.
    Which command should i use to do what i need to do?

  5. #5
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: WLAN Connection from Emulator

    Hi ,


    Quote Originally Posted by dubrox View Post
    I'm a beginner with Symbian and mobiles emulators and I have the same problem capri07 had...
    I've read your post (Mateen Maldar) and i've browsed the SDK help too, but i still don't understand how to let my emulator connect by its WLAN and use my pc interent connection.
    Which command should i use to do what i need to do?
    The emualtor for 3rd edition uses WINSOCK to connect to emulator thus there is no furthur access to other access points avaliable. so overriding the winsock and using traditional way of get all access points avalible to the PC will give an option for WLAN access point settings enabling to it..provides another way of using it on emulator..


    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

Similar Threads

  1. cannot establish socket connection on emulator
    By parag27879 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2006-04-11, 16:35
  2. Slow UDP connection on emulator?
    By jperala in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-05-11, 13:11
  3. http Connection in Serie 60 emulator
    By rabert in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-12-19, 01:05
  4. HTTP connection in Series 60 MIDP SDK 2.0 Beta Emulator
    By basad in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-03-26, 15:39
  5. 7650/3650 Emulator and GPRS Connection problem
    By joller in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-11, 00:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×